1
0
Fork 0

调整应用ID、小程序ID

master
xiaoyu 2020-11-12 09:55:45 +08:00
parent 851dd5f132
commit aa2b885529
2 changed files with 7 additions and 6 deletions

View File

@ -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 {

View File

@ -21,12 +21,12 @@ class _MyAppState extends State<MyApp> {
Future<void> 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<MyApp> {
),
child: FlatButton(
onPressed: () {
Mop.instance.openApplet('5ea0401463cb900001d73865');
Mop.instance.openApplet('5fa214a29a6a7900019b5cc1');
},
child: Text(
'打开官方小程序',
@ -106,7 +106,7 @@ class _MyAppState extends State<MyApp> {
),
child: FlatButton(
onPressed: () {
Mop.instance.openApplet('5ea0412663cb900001d73867');
Mop.instance.openApplet('5fa215459a6a7900019b5cc3');
},
child: Text(
'我的对账单',