initSDK新增enableJ2V8配置项
parent
f5b2ae9ca7
commit
9e3c11ea08
|
@ -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.41.3'
|
implementation 'com.finogeeks.lib:finapplet:2.41.4-dev20230726v06'
|
||||||
implementation 'com.finogeeks.mop:plugins:2.41.3'
|
implementation 'com.finogeeks.mop:plugins:2.41.4-dev20230726v06'
|
||||||
}
|
}
|
|
@ -184,6 +184,7 @@ public class InitSDKModule extends BaseApi {
|
||||||
if (tbsCoreUrl != null) {
|
if (tbsCoreUrl != null) {
|
||||||
configBuilder.setTbsCoreUrl(tbsCoreUrl);
|
configBuilder.setTbsCoreUrl(tbsCoreUrl);
|
||||||
}
|
}
|
||||||
|
configBuilder.setEnableJ2V8((Boolean) configMap.get("enableJ2V8"));
|
||||||
Map<Object, Object> uiConfigMap = (Map<Object, Object>) param.get("uiConfig");
|
Map<Object, Object> uiConfigMap = (Map<Object, Object>) param.get("uiConfig");
|
||||||
String appendingCustomUserAgent = (String) uiConfigMap.get("appendingCustomUserAgent");
|
String appendingCustomUserAgent = (String) uiConfigMap.get("appendingCustomUserAgent");
|
||||||
if (appendingCustomUserAgent != null) {
|
if (appendingCustomUserAgent != null) {
|
||||||
|
|
|
@ -218,6 +218,10 @@ class Config {
|
||||||
/// tbs内核的下载地址,不包含文件名
|
/// tbs内核的下载地址,不包含文件名
|
||||||
String? tbsCoreUrl;
|
String? tbsCoreUrl;
|
||||||
|
|
||||||
|
/// Android属性
|
||||||
|
/// 是否开启j2v8
|
||||||
|
bool enableJ2V8 = false;
|
||||||
|
|
||||||
Config(this.finStoreConfigs);
|
Config(this.finStoreConfigs);
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, dynamic> toMap() {
|
||||||
|
@ -262,6 +266,7 @@ class Config {
|
||||||
"language":language.index,
|
"language":language.index,
|
||||||
"useLocalTbsCore": useLocalTbsCore,
|
"useLocalTbsCore": useLocalTbsCore,
|
||||||
"tbsCoreUrl": tbsCoreUrl,
|
"tbsCoreUrl": tbsCoreUrl,
|
||||||
|
"enableJ2V8": enableJ2V8,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue