From aa2b885529c9c06237c3f425222beb738ffa8e90 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Thu, 12 Nov 2020 09:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BA=94=E7=94=A8ID=E3=80=81?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8FID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 5 +++-- lib/main.dart | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 61d4069..6cef46c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -33,7 +33,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.finogeeks.mopDemo" + applicationId "com.finogeeks.finclip.demo" minSdkVersion 21 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() @@ -49,12 +49,13 @@ android { } } packagingOptions { + // libsdkcore.so是被加固过的,不能被压缩,否则加载动态库时会报错 doNotStrip "*/x86/libsdkcore.so" + doNotStrip "*/x86_64/libsdkcore.so" doNotStrip "*/armeabi/libsdkcore.so" doNotStrip "*/armeabi-v7a/libsdkcore.so" doNotStrip "*/arm64-v8a/libsdkcore.so" } - } flutter { diff --git a/lib/main.dart b/lib/main.dart index 1898494..5269300 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -21,12 +21,12 @@ class _MyAppState extends State { Future init() async { if (Platform.isIOS) { final res = await Mop.instance.initialize( - '22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c', + '22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM=', 'bdfd76cae24d4313', apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop'); print(res); } else if (Platform.isAndroid) { final res = await Mop.instance.initialize( - '22LyZEib0gLTQdU3MUauAZ0pZVbKTWGmNN6Lx8hXhIkA', '74bde5fad53a817c', + '22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM=', 'bdfd76cae24d4313', apiServer: 'https://mp.finogeeks.com', apiPrefix: '/api/v1/mop'); print(res); } @@ -84,7 +84,7 @@ class _MyAppState extends State { ), child: FlatButton( onPressed: () { - Mop.instance.openApplet('5ea0401463cb900001d73865'); + Mop.instance.openApplet('5fa214a29a6a7900019b5cc1'); }, child: Text( '打开官方小程序', @@ -106,7 +106,7 @@ class _MyAppState extends State { ), child: FlatButton( onPressed: () { - Mop.instance.openApplet('5ea0412663cb900001d73867'); + Mop.instance.openApplet('5fa215459a6a7900019b5cc3'); }, child: Text( '我的对账单',