Add bindAppletWithMainProcess config
parent
0d3f959475
commit
7314fad151
|
@ -71,6 +71,8 @@ public class BaseModule extends BaseApi {
|
||||||
if (encryptServerData == null) encryptServerData = false;
|
if (encryptServerData == null) encryptServerData = false;
|
||||||
Boolean debug = (Boolean) param.get("debug");
|
Boolean debug = (Boolean) param.get("debug");
|
||||||
if (debug == null) debug = false;
|
if (debug == null) debug = false;
|
||||||
|
Boolean bindAppletWithMainProcess = (Boolean) param.get("bindAppletWithMainProcess");
|
||||||
|
if (bindAppletWithMainProcess == null) bindAppletWithMainProcess = false;
|
||||||
|
|
||||||
FinAppConfig config = new FinAppConfig.Builder()
|
FinAppConfig config = new FinAppConfig.Builder()
|
||||||
.setSdkKey(appkey)
|
.setSdkKey(appkey)
|
||||||
|
@ -82,6 +84,7 @@ public class BaseModule extends BaseApi {
|
||||||
.setUserId(userId)
|
.setUserId(userId)
|
||||||
.setDebugMode(debug)
|
.setDebugMode(debug)
|
||||||
.setDisableRequestPermissions(disablePermission)
|
.setDisableRequestPermissions(disablePermission)
|
||||||
|
.setBindAppletWithMainProcess(bindAppletWithMainProcess)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
final Application application = MopPluginService.getInstance().getActivity().getApplication();
|
final Application application = MopPluginService.getInstance().getActivity().getApplication();
|
||||||
|
|
|
@ -76,7 +76,8 @@ class Mop {
|
||||||
bool disablePermission,
|
bool disablePermission,
|
||||||
String userId,
|
String userId,
|
||||||
bool encryptServerData = false,
|
bool encryptServerData = false,
|
||||||
bool debug = false}) async {
|
bool debug = false,
|
||||||
|
bool bindAppletWithMainProcess = false}) async {
|
||||||
final Map ret = await _channel.invokeMethod('initialize', {
|
final Map ret = await _channel.invokeMethod('initialize', {
|
||||||
'appkey': appkey,
|
'appkey': appkey,
|
||||||
'secret': secret,
|
'secret': secret,
|
||||||
|
@ -86,7 +87,8 @@ class Mop {
|
||||||
'disablePermission': disablePermission,
|
'disablePermission': disablePermission,
|
||||||
'userId': userId,
|
'userId': userId,
|
||||||
"encryptServerData": encryptServerData,
|
"encryptServerData": encryptServerData,
|
||||||
"debug": debug
|
"debug": debug,
|
||||||
|
"bindAppletWithMainProcess": bindAppletWithMainProcess
|
||||||
});
|
});
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue