From a80297615667d3e7d70323517f88c6afcce9fa72 Mon Sep 17 00:00:00 2001 From: anfe <448468458@qq.com> Date: Sat, 18 May 2024 14:32:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3=20ios=20=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Podfile.lock | 2 +- ios/Runner/Info.plist | 52 +++++++++++++++++++++---------- lib/mine/mall/lockMall_logic.dart | 4 +-- pubspec.yaml | 7 +++++ 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 1f76cd62..0aeb6030 100755 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -323,7 +323,7 @@ SPEC CHECKSUMS: flutter_pcm_sound: de0572ca4f99091cc2abfcc31601b8a4ddd33c0e flutter_voice_processor: 2b89b93d69b02227ae3fd58589ee0bcfa3ca2a82 fluttertoast: 9f2f8e81bb5ce18facb9748d7855bf5a756fe3db - fluwx: daa284756ce53442b3d0417ceeda66e981906811 + fluwx: c18fd6c16b03a2187cd07d6e48e32a7801962849 google_maps_flutter_ios: f135b968a67c05679e0a53538e900b5c174b0d99 GoogleMaps: 20d7b12be49a14287f797e88e0e31bc4156aaeb4 image_gallery_saver: cb43cc43141711190510e92c460eb1655cd343cb diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 4d5787d5..9cfa745c 100755 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -22,14 +22,49 @@ $(FLUTTER_BUILD_NAME) CFBundleSignature ???? + CFBundleURLTypes + + + CFBundleTypeRole + None + CFBundleURLIconFile + + CFBundleURLName + com.sky.skysmartlock + CFBundleURLSchemes + + skysmartlock + + + + + + CFBundleTypeRole + Editor + CFBundleURLName + weixin + CFBundleURLSchemes + + 123456 + + + CFBundleVersion $(FLUTTER_BUILD_NUMBER) + LSApplicationQueriesSchemes + + weixin + weixinULAPI + weixinURLParamsAPI + LSRequiresIPhoneOS NSAppTransportSecurity NSAllowsArbitraryLoads + NSAllowsArbitraryLoadsInWebContent + NSExceptionDomains jpush.cn @@ -86,23 +121,6 @@ UIViewControllerBasedStatusBarAppearance - CFBundleURLTypes - - - CFBundleURLName - com.sky.skysmartlock - CFBundleURLSchemes - - skysmartlock - - - - CFBundleURLIconFile - - CFBundleTypeRole - None - - io.flutter.embedded_views_preview diff --git a/lib/mine/mall/lockMall_logic.dart b/lib/mine/mall/lockMall_logic.dart index 9ff79012..e9daa4e9 100755 --- a/lib/mine/mall/lockMall_logic.dart +++ b/lib/mine/mall/lockMall_logic.dart @@ -66,8 +66,8 @@ class LockMallLogic extends BaseGetXController { //监听webview的调用 Future flutterBridge(JavaScriptMessage message) async { - final dynamic obj = jsonDecode(message.message); - AppLog.log(obj); + final dynamic obj = json.decode(message.message); + AppLog.log(obj.toString()); if (obj is! Map && obj['action'] is String) { return; } diff --git a/pubspec.yaml b/pubspec.yaml index a4928970..3f11c43b 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -55,6 +55,13 @@ version: 1.0.41+2024051705 environment: sdk: '>=2.12.0 <3.0.0' +fluwx: + app_id: 'wxbe340095d2b8fd51' + debug_logging: true + android: + ios: + universal_link: https://lock.skychip.top/apple-app-site-association.json + # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions # consider running `flutter pub upgrade --major-versions`. Alternatively,