Merge branch 'master' into feat/add_config

# Conflicts:
#	android/build.gradle
#	lib/mop.dart
master
zhongweiguang 2023-03-24 10:39:29 +08:00
commit 864d79e79a
5 changed files with 53 additions and 53 deletions

View File

@ -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.39.12-alpha20230322v02' implementation 'com.finogeeks.lib:finapplet:2.40.0-dev20230323v02'
implementation 'com.finogeeks.mop:plugins:2.39.11' implementation 'com.finogeeks.mop:plugins:2.40.0-dev20230323v02'
} }

View File

@ -87,7 +87,7 @@
uiconfig.hideFeedbackMenu = [_uiConfig[@"isHideFeedbackAndComplaints"] boolValue]; uiconfig.hideFeedbackMenu = [_uiConfig[@"isHideFeedbackAndComplaints"] boolValue];
uiconfig.hideForwardMenu = [_uiConfig[@"isHideForwardMenu"] boolValue]; uiconfig.hideForwardMenu = [_uiConfig[@"isHideForwardMenu"] boolValue];
uiconfig.autoAdaptDarkMode = [_uiConfig[@"autoAdaptDarkMode"] boolValue]; uiconfig.autoAdaptDarkMode = [_uiConfig[@"autoAdaptDarkMode"] boolValue];
uiconfig.hideShareAppletMenu = [_uiConfig[@"isHideShareAppletMenu"] boolValue];
uiconfig.appletText = _uiConfig[@"appletText"]; uiconfig.appletText = _uiConfig[@"appletText"];
uiconfig.hideTransitionCloseButton = [_uiConfig[@"hideTransitionCloseButton"] boolValue]; uiconfig.hideTransitionCloseButton = [_uiConfig[@"hideTransitionCloseButton"] boolValue];
uiconfig.disableSlideCloseAppletGesture = [_uiConfig[@"disableSlideCloseAppletGesture"] boolValue]; uiconfig.disableSlideCloseAppletGesture = [_uiConfig[@"disableSlideCloseAppletGesture"] boolValue];

View File

@ -279,22 +279,28 @@ class UIConfig {
/// ios /// ios
bool isClearNavigationBarNavButtonBackground = false; bool isClearNavigationBarNavButtonBackground = false;
/// "更多""反馈与投诉" /// ...
bool isHideFeedbackAndComplaints = false; bool isHideFeedbackAndComplaints = false;
/// "更多""返回首页" /// ...
bool isHideBackHome = false; bool isHideBackHome = false;
// ... false /// ... false
bool isHideForwardMenu = false; bool isHideForwardMenu = false;
// ... true /// ... true
bool isHideShareAppletMenu = true; bool isHideShareAppletMenu = true;
// ... false /// ...
bool isHideAddToDesktopMenu = true;
/// ...
bool isHideFavoriteMenu = true;
// ... false
bool isHideRefreshMenu = false; bool isHideRefreshMenu = false;
// ... false // ... false
bool isHideSettingMenu = false; bool isHideSettingMenu = false;
/// ///
@ -364,6 +370,8 @@ class UIConfig {
"isHideRefreshMenu": isHideRefreshMenu, "isHideRefreshMenu": isHideRefreshMenu,
"isHideShareAppletMenu": isHideShareAppletMenu, "isHideShareAppletMenu": isHideShareAppletMenu,
"isHideSettingMenu": isHideSettingMenu, "isHideSettingMenu": isHideSettingMenu,
"isHideAddToDesktopMenu": isHideAddToDesktopMenu,
"isHideFavoriteMenu": isHideFavoriteMenu,
"hideTransitionCloseButton": hideTransitionCloseButton, "hideTransitionCloseButton": hideTransitionCloseButton,
"capsuleConfig": capsuleConfig?.toMap(), "capsuleConfig": capsuleConfig?.toMap(),
"navHomeConfig": navHomeConfig?.toMap(), "navHomeConfig": navHomeConfig?.toMap(),
@ -932,7 +940,6 @@ class Mop {
/// [userId] id /// [userId] id
/// [finStoreConfigs] /// [finStoreConfigs]
/// [uiConfig] UI /// [uiConfig] UI
/// [config]
/// [debug] debug /// [debug] debug
/// [customWebViewUserAgent] webview ua /// [customWebViewUserAgent] webview ua
/// [appletIntervalUpdateLimit] /// [appletIntervalUpdateLimit]
@ -1106,20 +1113,20 @@ class Mop {
_appletHandlerApis["getUserInfo"] = (params) { _appletHandlerApis["getUserInfo"] = (params) {
return handler.getUserInfo(); return handler.getUserInfo();
}; };
_appletHandlerApis["getCustomMenus"] = (params) async { // _appletHandlerApis["getCustomMenus"] = (params) async {
final res = await handler.getCustomMenus(params["appId"]); // final res = await handler.getCustomMenus(params["appId"]);
List<Map<String, dynamic>> list = []; // List<Map<String, dynamic>> list = [];
res.forEach((element) { // res.forEach((element) {
Map<String, dynamic> map = Map(); // Map<String, dynamic> map = Map();
map["menuId"] = element.menuId; // map["menuId"] = element.menuId;
map["image"] = element.image; // map["image"] = element.image;
map["title"] = element.title; // map["title"] = element.title;
map["type"] = element.type; // map["type"] = element.type;
list.add(map); // list.add(map);
}); // });
debugPrint("registerAppletHandler getCustomMenus list $list"); // debugPrint("registerAppletHandler getCustomMenus list $list");
return list; // return list;
}; // };
_appletHandlerApis["onCustomMenuClick"] = (params) async { _appletHandlerApis["onCustomMenuClick"] = (params) async {
return handler.onCustomMenuClick( return handler.onCustomMenuClick(
params["appId"], params["appId"],

View File

@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "2.8.2" version: "2.9.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -21,35 +21,28 @@ packages:
name: characters name: characters
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.2.0" version: "1.2.1"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.3.1"
clock: clock:
dependency: transitive dependency: transitive
description: description:
name: clock name: clock
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.1.0" version: "1.1.1"
collection: collection:
dependency: transitive dependency: transitive
description: description:
name: collection name: collection
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.15.0" version: "1.16.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.2.0" version: "1.3.1"
flutter: flutter:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter
@ -87,21 +80,28 @@ packages:
name: matcher name: matcher
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "0.12.11" version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.5"
meta: meta:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.7.0" version: "1.8.0"
path: path:
dependency: transitive dependency: transitive
description: description:
name: path name: path
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.8.0" version: "1.8.2"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -113,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.1" version: "1.9.0"
stack_trace: stack_trace:
dependency: transitive dependency: transitive
description: description:
@ -134,35 +134,28 @@ packages:
name: string_scanner name: string_scanner
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.1.0" version: "1.1.1"
term_glyph: term_glyph:
dependency: transitive dependency: transitive
description: description:
name: term_glyph name: term_glyph
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.2.0" version: "1.2.1"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
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.3" version: "0.4.12"
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.1" version: "2.1.2"
sdks: sdks:
dart: ">=2.14.0 <3.0.0" dart: ">=2.17.0-0 <3.0.0"
flutter: ">=2.2.3" flutter: ">=2.2.3"

View File

@ -1,6 +1,6 @@
name: mop name: mop
description: A Finogeeks MiniProgram Flutter SDK. description: A Finogeeks MiniProgram Flutter SDK.
version: '2.39.7' version: '2.39.11'
homepage: https://github.com/finogeeks/mop-flutter-sdk homepage: https://github.com/finogeeks/mop-flutter-sdk
environment: environment: