新增removeAllUsedApplets
parent
0d820134f2
commit
22f4864708
|
@ -91,6 +91,6 @@ kapt {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
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'
|
implementation 'com.finogeeks.mop:plugins:2.36.5'
|
||||||
}
|
}
|
|
@ -31,7 +31,8 @@ public class AppletManageModule extends BaseApi {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] apis() {
|
public String[] apis() {
|
||||||
return new String[]{"currentApplet", "closeAllApplets", "clearApplets", "removeUsedApplet", "closeApplet",
|
return new String[]{"currentApplet", "closeAllApplets", "clearApplets",
|
||||||
|
"removeUsedApplet", "removeAllUsedApplets","closeApplet",
|
||||||
"setActivityTransitionAnim", "sendCustomEvent", "callJS", "finishRunningApplet"};
|
"setActivityTransitionAnim", "sendCustomEvent", "callJS", "finishRunningApplet"};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +98,10 @@ public class AppletManageModule extends BaseApi {
|
||||||
} else {
|
} else {
|
||||||
callback.onFail(null);
|
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");
|
String anim = (String) param.get("anim");
|
||||||
Log.d(TAG, "setActivityTransitionAnim:" + anim);
|
Log.d(TAG, "setActivityTransitionAnim:" + anim);
|
||||||
if ("SlideFromLeftToRightAnim".equals(anim)) {
|
if ("SlideFromLeftToRightAnim".equals(anim)) {
|
||||||
|
|
|
@ -407,6 +407,12 @@ class Mop {
|
||||||
return await _channel.invokeMethod("removeUsedApplet", params);
|
return await _channel.invokeMethod("removeUsedApplet", params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 清除所有小程序缓存
|
||||||
|
Future removeAllUsedApplets() async {
|
||||||
|
Map<String, Object> params = {};
|
||||||
|
return await _channel.invokeMethod("removeAllUsedApplets", params);
|
||||||
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
/// 获取运行时版本号
|
/// 获取运行时版本号
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue