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) { if (disablePermission == null) {
disablePermission = false; disablePermission = false;
} }
String userId = ""; String userId = "";
if (param.get("userId") != null) { if (param.get("userId") != null) {
userId = (String) param.get("userId"); userId = (String) param.get("userId");

View File

@ -178,7 +178,11 @@ public class InitSDKModule extends BaseApi {
configBuilder.setXLogDir(logDir); configBuilder.setXLogDir(logDir);
} }
configBuilder.setEnablePreNewProcess((Boolean) configMap.get("enablePreNewProcess")); 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"); 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) {

View File

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

View File

@ -169,7 +169,14 @@ packages:
name: test_api name: test_api
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted 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: vector_math:
dependency: transitive dependency: transitive
description: description:

View File

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

View File

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