Merge branch 'master' of ssh://gitlab.finogeeks.club:2233/finclipsdk/finclip-flutter-sdk
# Conflicts: # android/build.gradle # example/.flutter-plugins-dependencies # example/pubspec.lock # pubspec.yamlmaster
commit
85684605b5
|
@ -91,6 +91,6 @@ kapt {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
implementation 'com.finogeeks.lib:finapplet:2.26.1'
|
implementation 'com.finogeeks.lib:finapplet:2.27.0-alpha20210602v03'
|
||||||
implementation 'com.finogeeks.mop:plugins:2.26.1'
|
implementation 'com.finogeeks.mop:plugins:2.27.0-alpha20210601v05'
|
||||||
}
|
}
|
|
@ -59,12 +59,17 @@ public class BaseModule extends BaseApi {
|
||||||
if (disablePermission == null) {
|
if (disablePermission == null) {
|
||||||
disablePermission = false;
|
disablePermission = false;
|
||||||
}
|
}
|
||||||
|
String userId = null;
|
||||||
|
if (param.get("userId") != null) {
|
||||||
|
userId = (String) param.get("userId");
|
||||||
|
}
|
||||||
FinAppConfig config = new FinAppConfig.Builder()
|
FinAppConfig config = new FinAppConfig.Builder()
|
||||||
.setSdkKey(appkey)
|
.setSdkKey(appkey)
|
||||||
.setSdkSecret(secret)
|
.setSdkSecret(secret)
|
||||||
.setApiUrl(apiServer)
|
.setApiUrl(apiServer)
|
||||||
.setApiPrefix(apiPrefix)
|
.setApiPrefix(apiPrefix)
|
||||||
.setEncryptionType(cryptType)
|
.setEncryptionType(cryptType)
|
||||||
|
.setUserId(userId)
|
||||||
.setDebugMode(BuildConfig.DEBUG)
|
.setDebugMode(BuildConfig.DEBUG)
|
||||||
.setDisableRequestPermissions(disablePermission)
|
.setDisableRequestPermissions(disablePermission)
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/beetle/Desktop/finogeeks/gitlab/finosprite/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-05-18 16:05:30.201864","version":"2.0.3"}
|
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"mop","path":"/Users/kangxuyao/StudioProjects/finclip-flutter-sdk/","dependencies":[]}],"android":[{"name":"mop","path":"/Users/kangxuyao/StudioProjects/finclip-flutter-sdk/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"mop","dependencies":[]}],"date_created":"2021-06-02 11:08:31.029967","version":"2.3.0-2.0.pre.105"}
|
|
@ -7,7 +7,7 @@ packages:
|
||||||
name: async
|
name: async
|
||||||
url: "https://pub.flutter-io.cn"
|
url: "https://pub.flutter-io.cn"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.5.0"
|
version: "2.6.0"
|
||||||
boolean_selector:
|
boolean_selector:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -87,7 +87,7 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "2.25.1"
|
version: "2.27.1"
|
||||||
path:
|
path:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -106,7 +106,7 @@ packages:
|
||||||
name: source_span
|
name: source_span
|
||||||
url: "https://pub.flutter-io.cn"
|
url: "https://pub.flutter-io.cn"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.8.0"
|
version: "1.8.1"
|
||||||
stack_trace:
|
stack_trace:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -141,7 +141,7 @@ packages:
|
||||||
name: test_api
|
name: test_api
|
||||||
url: "https://pub.flutter-io.cn"
|
url: "https://pub.flutter-io.cn"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.19"
|
version: "0.3.0"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -157,5 +157,5 @@ packages:
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.0"
|
version: "2.1.0"
|
||||||
sdks:
|
sdks:
|
||||||
dart: ">=2.12.0-0.0 <3.0.0"
|
dart: ">=2.12.0 <3.0.0"
|
||||||
flutter: ">=1.10.0"
|
flutter: ">=1.10.0"
|
||||||
|
|
|
@ -11,12 +11,14 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
|
|
||||||
@interface MOP_initialize : MOPBaseApi
|
@interface MOP_initialize : MOPBaseApi
|
||||||
|
|
||||||
@property(nonatomic,copy)NSString* appkey;
|
@property (nonatomic, copy) NSString *appkey;
|
||||||
@property(nonatomic,copy)NSString* secret;
|
@property (nonatomic, copy) NSString *secret;
|
||||||
@property(nonatomic,copy)NSString* apiServer;
|
@property (nonatomic, copy) NSString *apiServer;
|
||||||
@property(nonatomic,copy)NSString* apiPrefix;
|
@property (nonatomic, copy) NSString *apiPrefix;
|
||||||
@property(nonatomic,copy)NSString* cryptType;
|
@property (nonatomic, copy) NSString *cryptType;
|
||||||
|
@property (nonatomic, copy) NSString *userId;
|
||||||
@property (nonatomic, assign) BOOL disablePermission;
|
@property (nonatomic, assign) BOOL disablePermission;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
{
|
{
|
||||||
config.cryptType = FATApiCryptTypeMD5;
|
config.cryptType = FATApiCryptTypeMD5;
|
||||||
}
|
}
|
||||||
|
config.currentUserId = [self.userId copy];
|
||||||
|
|
||||||
NSLog(@"disablePermission:%d",self.disablePermission);
|
NSLog(@"disablePermission:%d",self.disablePermission);
|
||||||
config.disableAuthorize = self.disablePermission;
|
config.disableAuthorize = self.disablePermission;
|
||||||
|
|
|
@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk.
|
||||||
s.dependency 'Flutter'
|
s.dependency 'Flutter'
|
||||||
s.ios.deployment_target = '9.0'
|
s.ios.deployment_target = '9.0'
|
||||||
|
|
||||||
s.dependency 'FinApplet' , '2.25.0-alpha20210429v03'
|
s.dependency 'FinApplet' , '2.28.1'
|
||||||
s.dependency 'FinAppletExt' , '2.25.0-alpha20210429v03'
|
s.dependency 'FinAppletExt' , '2.28.1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -73,14 +73,16 @@ class Mop {
|
||||||
{String apiServer,
|
{String apiServer,
|
||||||
String apiPrefix,
|
String apiPrefix,
|
||||||
String cryptType,
|
String cryptType,
|
||||||
bool disablePermission}) async {
|
bool disablePermission,
|
||||||
|
String userId}) async {
|
||||||
final Map ret = await _channel.invokeMethod('initialize', {
|
final Map ret = await _channel.invokeMethod('initialize', {
|
||||||
'appkey': appkey,
|
'appkey': appkey,
|
||||||
'secret': secret,
|
'secret': secret,
|
||||||
'apiServer': apiServer,
|
'apiServer': apiServer,
|
||||||
'apiPrefix': apiPrefix,
|
'apiPrefix': apiPrefix,
|
||||||
'cryptType': cryptType,
|
'cryptType': cryptType,
|
||||||
'disablePermission': disablePermission
|
'disablePermission': disablePermission,
|
||||||
|
'userId': userId
|
||||||
});
|
});
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: mop
|
name: mop
|
||||||
description: A Finogeeks MiniProgram Flutter SDK.
|
description: A Finogeeks MiniProgram Flutter SDK.
|
||||||
version: '2.27.1'
|
version: '2.28.1'
|
||||||
homepage: https://github.com/finogeeks/mop-flutter-sdk
|
homepage: https://github.com/finogeeks/mop-flutter-sdk
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue