Merge branch 'master' into feat/add_config
# Conflicts: # android/build.gradle # lib/mop.dartmaster
commit
864d79e79a
|
@ -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'
|
||||||
}
|
}
|
|
@ -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];
|
||||||
|
|
49
lib/mop.dart
49
lib/mop.dart
|
@ -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"],
|
||||||
|
|
49
pubspec.lock
49
pubspec.lock
|
@ -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"
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue