From 9e3c11ea08767f82b10457ed24d15d50cf1f6bef Mon Sep 17 00:00:00 2001 From: zhongweiguang Date: Wed, 26 Jul 2023 20:34:12 +0800 Subject: [PATCH] =?UTF-8?q?initSDK=E6=96=B0=E5=A2=9EenableJ2V8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/build.gradle | 4 ++-- .../main/java/com/finogeeks/mop/api/mop/InitSDKModule.java | 1 + lib/mop.dart | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index e8df547..3c1b43e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -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' } \ No newline at end of file diff --git a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java index 1a644b3..8b35523 100644 --- a/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java +++ b/android/src/main/java/com/finogeeks/mop/api/mop/InitSDKModule.java @@ -184,6 +184,7 @@ public class InitSDKModule extends BaseApi { if (tbsCoreUrl != null) { configBuilder.setTbsCoreUrl(tbsCoreUrl); } + configBuilder.setEnableJ2V8((Boolean) configMap.get("enableJ2V8")); Map uiConfigMap = (Map) param.get("uiConfig"); String appendingCustomUserAgent = (String) uiConfigMap.get("appendingCustomUserAgent"); if (appendingCustomUserAgent != null) { diff --git a/lib/mop.dart b/lib/mop.dart index a12636e..073ea19 100644 --- a/lib/mop.dart +++ b/lib/mop.dart @@ -218,6 +218,10 @@ class Config { /// tbs内核的下载地址,不包含文件名 String? tbsCoreUrl; + /// Android属性 + /// 是否开启j2v8 + bool enableJ2V8 = false; + Config(this.finStoreConfigs); Map toMap() { @@ -262,6 +266,7 @@ class Config { "language":language.index, "useLocalTbsCore": useLocalTbsCore, "tbsCoreUrl": tbsCoreUrl, + "enableJ2V8": enableJ2V8, }; } }