修复finishRunningApplet接口问题

master
kangxuyao 2022-05-24 11:12:25 +08:00
parent fb010ab623
commit 2e899edb51
4 changed files with 8 additions and 22 deletions

View File

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

View File

@ -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()

View File

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

View File

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