diff --git a/ios/mop.podspec b/ios/mop.podspec index 8bf5d64..91a0dba 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.30.0-alpha20210618v06' - s.dependency 'FinAppletExt' , '2.30.0-alpha20210618v06' + s.dependency 'FinApplet' , '2.30.0-alpha20210619v02' + s.dependency 'FinAppletExt' , '2.30.0-alpha20210619v02' end diff --git a/lib/mop.dart b/lib/mop.dart index 30fbd31..0b30f08 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -9,19 +9,6 @@ typedef MopEventErrorCallback = void Function(dynamic event); typedef ExtensionApiHandler = Future Function(dynamic params); -class ServerConfig { - String appkey; - String secret; - String apiServer; - String apiPrefix; - String cryptType; - - ServerConfig(this.appkey, this.secret, this.apiServer, this.apiPrefix, this.cryptType); - - Map toJson() => - {'appkey': appkey, 'secret': secret, 'apiServer': apiServer, 'apiPrefix': apiPrefix, 'cryptType':cryptType}; -} - class Mop { static final Mop _instance = new Mop._internal(); MethodChannel _channel; @@ -87,8 +74,7 @@ class Mop { String apiPrefix, String cryptType, bool disablePermission, - String userId, - List serverConfigs}) async { + String userId}) async { final Map ret = await _channel.invokeMethod('initialize', { 'appkey': appkey, 'secret': secret, @@ -96,8 +82,7 @@ class Mop { 'apiPrefix': apiPrefix, 'cryptType': cryptType, 'disablePermission': disablePermission, - 'userId': userId, - 'serverConfigs',serverConfigs.map((e) => e.toJson()) + 'userId': userId }); return ret; }