Add bindAppletWithMainProcess config
parent
0d3f959475
commit
7314fad151
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue