From 6fe2ed0cec68dc4a9695a7fcbd0d5d15d33b1358 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Sat, 19 Jun 2021 13:39:56 +0800 Subject: [PATCH 1/6] =?UTF-8?q?update=20init=20=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mop.dart | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/mop.dart b/lib/mop.dart index 0b30f08..30fbd31 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -9,6 +9,19 @@ 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; @@ -74,7 +87,8 @@ class Mop { String apiPrefix, String cryptType, bool disablePermission, - String userId}) async { + String userId, + List serverConfigs}) async { final Map ret = await _channel.invokeMethod('initialize', { 'appkey': appkey, 'secret': secret, @@ -82,7 +96,8 @@ class Mop { 'apiPrefix': apiPrefix, 'cryptType': cryptType, 'disablePermission': disablePermission, - 'userId': userId + 'userId': userId, + 'serverConfigs',serverConfigs.map((e) => e.toJson()) }); return ret; } From b0672a0fbe292111e588934c812dde84db2d6c32 Mon Sep 17 00:00:00 2001 From: wanghualei Date: Sat, 19 Jun 2021 14:26:32 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E3=80=90update=E3=80=91=20=E8=BF=98?= =?UTF-8?q?=E5=8E=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/mop.podspec | 4 ++-- lib/mop.dart | 19 ++----------------- 2 files changed, 4 insertions(+), 19 deletions(-) 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; } From be2bf9643919afc3af62c0025b32b8413484f518 Mon Sep 17 00:00:00 2001 From: jenkins Date: Sat, 19 Jun 2021 14:32:17 +0800 Subject: [PATCH 3/6] version++ --- android/build.gradle | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 58365f9..a28ca4b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -91,6 +91,6 @@ kapt { } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation 'com.finogeeks.lib:finapplet:2.30.0-alpha20210615v05' - implementation 'com.finogeeks.mop:plugins:2.30.0-alpha20210615v02' + implementation 'com.finogeeks.lib:finapplet:2.30.1' + implementation 'com.finogeeks.mop:plugins:2.30.1' } \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 7273ec1..dc21a99 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mop description: A Finogeeks MiniProgram Flutter SDK. -version: '2.29.3' +version: '2.30.1' homepage: https://github.com/finogeeks/mop-flutter-sdk environment: From e4991f908451da18b432bab4e2d34b0a60f2593f Mon Sep 17 00:00:00 2001 From: developer Date: Sat, 19 Jun 2021 14:33:15 +0800 Subject: [PATCH 4/6] release: version:2.30.1 --- ios/mop.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/mop.podspec b/ios/mop.podspec index 91a0dba..37c9bcc 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-alpha20210619v02' - s.dependency 'FinAppletExt' , '2.30.0-alpha20210619v02' + s.dependency 'FinApplet' , '2.30.1' + s.dependency 'FinAppletExt' , '2.30.1' end From ab349d43624a6b1165dca7332b2e6be28abc79b2 Mon Sep 17 00:00:00 2001 From: developer Date: Sat, 19 Jun 2021 21:53:24 +0800 Subject: [PATCH 5/6] release: version:2.29.3 --- ios/mop.podspec | 4 ++-- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ios/mop.podspec b/ios/mop.podspec index 37c9bcc..e5963b2 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.1' - s.dependency 'FinAppletExt' , '2.30.1' + s.dependency 'FinApplet' , '2.29.3' + s.dependency 'FinAppletExt' , '2.29.3' end diff --git a/pubspec.yaml b/pubspec.yaml index dc21a99..7273ec1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mop description: A Finogeeks MiniProgram Flutter SDK. -version: '2.30.1' +version: '2.29.3' homepage: https://github.com/finogeeks/mop-flutter-sdk environment: From 73c453c94b61baf6d4d717fbe4f2733949020b04 Mon Sep 17 00:00:00 2001 From: kangxuyao Date: Sat, 19 Jun 2021 21:59:34 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8B=93=E5=B1=95sdk?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index a28ca4b..978f32a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -92,5 +92,5 @@ kapt { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.finogeeks.lib:finapplet:2.30.1' - implementation 'com.finogeeks.mop:plugins:2.30.1' + implementation 'com.finogeeks.mop:plugins:2.30.2' } \ No newline at end of file