Add bindAppletWithMainProcess config

master
xiaoyu 2021-08-25 22:03:04 +08:00
parent 0d3f959475
commit 7314fad151
2 changed files with 7 additions and 2 deletions

View File

@ -71,6 +71,8 @@ public class BaseModule extends BaseApi {
if (encryptServerData == null) encryptServerData = false;
Boolean debug = (Boolean) param.get("debug");
if (debug == null) debug = false;
Boolean bindAppletWithMainProcess = (Boolean) param.get("bindAppletWithMainProcess");
if (bindAppletWithMainProcess == null) bindAppletWithMainProcess = false;
FinAppConfig config = new FinAppConfig.Builder()
.setSdkKey(appkey)
@ -82,6 +84,7 @@ public class BaseModule extends BaseApi {
.setUserId(userId)
.setDebugMode(debug)
.setDisableRequestPermissions(disablePermission)
.setBindAppletWithMainProcess(bindAppletWithMainProcess)
.build();
final Application application = MopPluginService.getInstance().getActivity().getApplication();

View File

@ -76,7 +76,8 @@ class Mop {
bool disablePermission,
String userId,
bool encryptServerData = false,
bool debug = false}) async {
bool debug = false,
bool bindAppletWithMainProcess = false}) async {
final Map ret = await _channel.invokeMethod('initialize', {
'appkey': appkey,
'secret': secret,
@ -86,7 +87,8 @@ class Mop {
'disablePermission': disablePermission,
'userId': userId,
"encryptServerData": encryptServerData,
"debug": debug
"debug": debug,
"bindAppletWithMainProcess": bindAppletWithMainProcess
});
return ret;
}