新增removeAllUsedApplets
parent
0d820134f2
commit
22f4864708
|
@ -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'
|
||||
}
|
|
@ -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,6 +98,9 @@ public class AppletManageModule extends BaseApi {
|
|||
} else {
|
||||
callback.onFail(null);
|
||||
}
|
||||
} 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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
///
|
||||
/// 获取运行时版本号
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue