initSDK新增enableJ2V8配置项

master
zhongweiguang 2023-07-26 20:34:12 +08:00
parent f5b2ae9ca7
commit 9e3c11ea08
3 changed files with 8 additions and 2 deletions

View File

@ -91,6 +91,6 @@ kapt {
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.finogeeks.lib:finapplet:2.41.3'
implementation 'com.finogeeks.mop:plugins:2.41.3'
implementation 'com.finogeeks.lib:finapplet:2.41.4-dev20230726v06'
implementation 'com.finogeeks.mop:plugins:2.41.4-dev20230726v06'
}

View File

@ -184,6 +184,7 @@ public class InitSDKModule extends BaseApi {
if (tbsCoreUrl != null) {
configBuilder.setTbsCoreUrl(tbsCoreUrl);
}
configBuilder.setEnableJ2V8((Boolean) configMap.get("enableJ2V8"));
Map<Object, Object> uiConfigMap = (Map<Object, Object>) param.get("uiConfig");
String appendingCustomUserAgent = (String) uiConfigMap.get("appendingCustomUserAgent");
if (appendingCustomUserAgent != null) {

View File

@ -218,6 +218,10 @@ class Config {
/// tbs
String? tbsCoreUrl;
/// Android
/// j2v8
bool enableJ2V8 = false;
Config(this.finStoreConfigs);
Map<String, dynamic> toMap() {
@ -262,6 +266,7 @@ class Config {
"language":language.index,
"useLocalTbsCore": useLocalTbsCore,
"tbsCoreUrl": tbsCoreUrl,
"enableJ2V8": enableJ2V8,
};
}
}