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 {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.finogeeks.lib:finapplet:2.39.12-alpha20230322v02'
implementation 'com.finogeeks.mop:plugins:2.39.11'
implementation 'com.finogeeks.lib:finapplet:2.40.0-dev20230323v02'
implementation 'com.finogeeks.mop:plugins:2.40.0-dev20230323v02'
}

View File

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

View File

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

View File

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

View File

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