diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/AppletManageModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/AppletManageModule.java index 98219ec..5d77784 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/AppletManageModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/AppletManageModule.java @@ -72,16 +72,16 @@ public class AppletManageModule extends BaseApi { FinAppClient.INSTANCE.getAppletApiManager().closeApplets(); callback.onSuccess(null); } else if (event.equals("finishRunningApplet")) { - if (param.containsKey("appId") && param.get("appId") instanceof String) { - String appId = (String) param.get("appId"); + if (param.containsKey("appletId") && param.get("appletId") instanceof String) { + String appId = (String) param.get("appletId"); FinAppClient.INSTANCE.getAppletApiManager().finishRunningApplet(appId); callback.onSuccess(null); } else { callback.onFail(null); } } else if (event.equals("closeApplet")) { - if (param.containsKey("appId") && param.get("appId") instanceof String) { - String appId = (String) param.get("appId"); + if (param.containsKey("appletId") && param.get("appletId") instanceof String) { + String appId = (String) param.get("appletId"); FinAppClient.INSTANCE.getAppletApiManager().closeApplet(appId); callback.onSuccess(null); } else { diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index d6d0a81..2b00e8a 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -34,7 +34,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.finogeeks.mop_example" + applicationId "com.finogeeks.finclip.demo" minSdkVersion 21 targetSdkVersion 30 versionCode flutterVersionCode.toInteger() diff --git a/example/pubspec.lock b/example/pubspec.lock index 90ce4dd..e42970e 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -95,13 +95,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "0.12.11" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.flutter-io.cn" - source: hosted - version: "0.1.3" meta: dependency: transitive description: @@ -115,7 +108,7 @@ packages: path: ".." relative: true source: path - version: "2.36.5" + version: "2.36.3" path: dependency: transitive description: @@ -169,7 +162,7 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.8" + version: "0.4.3" typed_data: dependency: transitive description: diff --git a/pubspec.lock b/pubspec.lock index 29a507d..f39f99b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -88,13 +88,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "0.12.11" - material_color_utilities: - dependency: transitive - description: - name: material_color_utilities - url: "https://pub.flutter-io.cn" - source: hosted - version: "0.1.3" meta: dependency: transitive description: @@ -155,7 +148,7 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.4.8" + version: "0.4.3" typed_data: dependency: transitive description: