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( '我的对账单',