Merge branch 'major' into master

# Conflicts:
#	android/build.gradle
master
wangyong 2023-07-01 13:00:05 +08:00
commit 025371c199
6 changed files with 43 additions and 19 deletions

View File

@ -67,6 +67,7 @@ public class BaseModule extends BaseApi {
if (disablePermission == null) {
disablePermission = false;
}
String userId = "";
if (param.get("userId") != null) {
userId = (String) param.get("userId");

View File

@ -178,7 +178,11 @@ public class InitSDKModule extends BaseApi {
configBuilder.setXLogDir(logDir);
}
configBuilder.setEnablePreNewProcess((Boolean) configMap.get("enablePreNewProcess"));
configBuilder.setUseLocalTbsCore((Boolean) configMap.get("useLocalTbsCore"));
String tbsCoreUrl = (String) configMap.get("tbsCoreUrl");
if (tbsCoreUrl != null) {
configBuilder.setTbsCoreUrl(tbsCoreUrl);
}
Map<Object, Object> uiConfigMap = (Map<Object, Object>) param.get("uiConfig");
String appendingCustomUserAgent = (String) uiConfigMap.get("appendingCustomUserAgent");
if (appendingCustomUserAgent != null) {

View File

@ -41,6 +41,7 @@ public class InitUtils {
uiConfig.setHideFavoriteMenu((Boolean) map.get("isHideFavoriteMenu"));
uiConfig.setHideSettingMenu((Boolean) map.get("isHideSettingMenu"));
uiConfig.setHideTransitionCloseButton((Boolean) map.get("hideTransitionCloseButton"));
uiConfig.setUseNativeLiveComponent((Boolean) map.get("useNativeLiveComponent"));
Map<Object, Object> capsuleConfigMap = (Map<Object, Object>) map.get("capsuleConfig");
if (capsuleConfigMap != null) {
FinAppConfig.UIConfig.CapsuleConfig capsuleConfig = new FinAppConfig.UIConfig.CapsuleConfig();

View File

@ -169,7 +169,14 @@ packages:
name: test_api
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.4.9"
version: "0.4.3"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0"
vector_math:
dependency: transitive
description:

View File

@ -210,6 +210,14 @@ class Config {
/// SDK
LanguageType language = LanguageType.Chinese;
/// Android
/// 使tbs
bool useLocalTbsCore = false;
/// Android
/// tbs
String? tbsCoreUrl;
Config(this.finStoreConfigs);
Map<String, dynamic> toMap() {
@ -252,6 +260,8 @@ class Config {
"logDir": logDir,
"enablePreNewProcess": enablePreNewProcess,
"language":language.index,
"useLocalTbsCore": useLocalTbsCore,
"tbsCoreUrl": tbsCoreUrl,
};
}
}
@ -356,7 +366,7 @@ class UIConfig {
///
bool disableSlideCloseAppletGesture = false;
// appletText
/// appletText
String? appletText;
/// Android
@ -401,6 +411,7 @@ class UIConfig {
"disableSlideCloseAppletGesture": disableSlideCloseAppletGesture,
"appletText": appletText,
"loadingLayoutCls": loadingLayoutCls,
"useNativeLiveComponent": useNativeLiveComponent,
};
}
}
@ -990,7 +1001,7 @@ class Mop {
UIConfig? uiConfig,
String? customWebViewUserAgent,
int? appletIntervalUpdateLimit,
int? maxRunningApplet,
int? maxRunningApplet
}) async {
List<Map<String, dynamic>>? storeConfigs =
finStoreConfigs?.map((e) => e.toMap()).toList();
@ -1011,7 +1022,7 @@ class Mop {
"uiConfig": uiConfig?.toMap(),
"customWebViewUserAgent": customWebViewUserAgent,
"appletIntervalUpdateLimit": appletIntervalUpdateLimit,
"maxRunningApplet": maxRunningApplet
"maxRunningApplet": maxRunningApplet,
});
return ret;
}

View File

@ -42,14 +42,14 @@ packages:
name: collection
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.16.0"
version: "1.15.0"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0"
version: "1.2.0"
flutter:
dependency: "direct main"
description: flutter
@ -88,13 +88,6 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.4"
meta:
dependency: transitive
description:
@ -108,7 +101,7 @@ packages:
name: path
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.1"
version: "1.8.0"
sky_engine:
dependency: transitive
description: flutter
@ -120,7 +113,7 @@ packages:
name: source_span
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.8.2"
version: "1.8.1"
stack_trace:
dependency: transitive
description:
@ -155,14 +148,21 @@ packages:
name: test_api
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.4.9"
version: "0.4.3"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.0"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.2"
version: "2.1.1"
sdks:
dart: ">=2.17.0-0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.2.3"