新增removeAllUsedApplets

master
cenxiaozhong 2022-05-19 17:09:22 +08:00
parent 0d820134f2
commit 22f4864708
3 changed files with 13 additions and 3 deletions

View File

@ -91,6 +91,6 @@ kapt {
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.finogeeks.lib:finapplet:2.36.5-fix20220519v01'
implementation 'com.finogeeks.lib:finapplet:2.36.5-fix202220517v01'
implementation 'com.finogeeks.mop:plugins:2.36.5'
}

View File

@ -31,7 +31,8 @@ public class AppletManageModule extends BaseApi {
@Override
public String[] apis() {
return new String[]{"currentApplet", "closeAllApplets", "clearApplets", "removeUsedApplet", "closeApplet",
return new String[]{"currentApplet", "closeAllApplets", "clearApplets",
"removeUsedApplet", "removeAllUsedApplets","closeApplet",
"setActivityTransitionAnim", "sendCustomEvent", "callJS", "finishRunningApplet"};
}
@ -97,7 +98,10 @@ public class AppletManageModule extends BaseApi {
} else {
callback.onFail(null);
}
} else if (event.equals("setActivityTransitionAnim")) {
} else if(event.equals("removeAllUsedApplets")){
Log.e(TAG,"removeAllUsedApplets");
FinAppClient.INSTANCE.getAppletApiManager().removeAllUsedApplets();
}else if (event.equals("setActivityTransitionAnim")) {
String anim = (String) param.get("anim");
Log.d(TAG, "setActivityTransitionAnim:" + anim);
if ("SlideFromLeftToRightAnim".equals(anim)) {

View File

@ -407,6 +407,12 @@ class Mop {
return await _channel.invokeMethod("removeUsedApplet", params);
}
///
Future removeAllUsedApplets() async {
Map<String, Object> params = {};
return await _channel.invokeMethod("removeAllUsedApplets", params);
}
///
///
///