diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 676335e..9b65d26 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -3,20 +3,21 @@ PODS: - FMDB (2.7.5): - FMDB/standard (= 2.7.5) - FMDB/standard (2.7.5) - - path_provider_ios (0.0.1): + - path_provider_foundation (0.0.1): - Flutter + - FlutterMacOS - sqflite (0.0.2): - Flutter - FMDB (>= 2.7.5) - - tencent_kit (4.0.0): + - tencent_kit (5.0.0): - Flutter - - tencent_kit/vendor (= 4.0.0) - - tencent_kit/vendor (4.0.0): + - tencent_kit/vendor (= 5.0.0) + - tencent_kit/vendor (5.0.0): - Flutter DEPENDENCIES: - Flutter (from `Flutter`) - - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`) + - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`) - sqflite (from `.symlinks/plugins/sqflite/ios`) - tencent_kit (from `.symlinks/plugins/tencent_kit/ios`) @@ -27,19 +28,19 @@ SPEC REPOS: EXTERNAL SOURCES: Flutter: :path: Flutter - path_provider_ios: - :path: ".symlinks/plugins/path_provider_ios/ios" + path_provider_foundation: + :path: ".symlinks/plugins/path_provider_foundation/ios" sqflite: :path: ".symlinks/plugins/sqflite/ios" tencent_kit: :path: ".symlinks/plugins/tencent_kit/ios" SPEC CHECKSUMS: - Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a + Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a - path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02 + path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9 sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904 - tencent_kit: 9db7aefcc6dd501bfa258b3d385cf4422701b9cd + tencent_kit: 1bfe9e04a09e13d2327daed0ce44c55cba1d25ca PODFILE CHECKSUM: 8e679eca47255a8ca8067c4c67aab20e64cb974d diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 9bfa451..00cad01 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -31,6 +31,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0457A1931FD430088D3CF916 /* Runner.entitlements */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; @@ -124,6 +125,7 @@ 97C146F11CF9000F007C117D /* Supporting Files */, 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 0457A1931FD430088D3CF916 /* Runner.entitlements */, ); path = Runner; sourceTree = ""; @@ -347,6 +349,7 @@ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = 78W43A3TE2; ENABLE_BITCODE = NO; @@ -471,6 +474,7 @@ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = 78W43A3TE2; ENABLE_BITCODE = NO; @@ -490,6 +494,7 @@ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = 78W43A3TE2; ENABLE_BITCODE = NO; diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 5a7d07b..b596f77 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -2,6 +2,8 @@ + CADisableMinimumFrameDurationOnPhone + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName @@ -29,7 +31,7 @@ tencent CFBundleURLSchemes - tencent + tencent123456789 @@ -37,33 +39,21 @@ $(FLUTTER_BUILD_NUMBER) LSApplicationQueriesSchemes - tim mqq mqqapi - mqqbrowser - mttbrowser - mqqOpensdkSSoLogin + tim + mqqopensdknopasteboard + mqqopensdknopasteboardios16 mqqopensdkapiV2 - mqqopensdkapiV4 - mqzone - mqzoneopensdk - mqzoneopensdkapi - mqzoneopensdkapi19 - mqzoneopensdkapiV2 - mqqapiwallet - mqqopensdkfriend - mqqopensdkavatar - mqqopensdkminiapp - mqqopensdkdataline mqqgamebindinggroup - mqqopensdkgrouptribeshare + mqqopensdkavatar + mqqopensdkfriend + mqqopensdklaunchminiapp + mqzone tencentapi.qq.reqContent tencentapi.qzone.reqContent mqqthirdappgroup - mqqopensdklaunchminiapp - mqqopensdkproxylogin - mqqopensdknopasteboard - mqqopensdkcheckauth + mqqopensdkminiapp LSRequiresIPhoneOS @@ -139,7 +129,5 @@ UIViewControllerBasedStatusBarAppearance - CADisableMinimumFrameDurationOnPhone - diff --git a/example/ios/Runner/Runner.entitlements b/example/ios/Runner/Runner.entitlements new file mode 100644 index 0000000..677631a --- /dev/null +++ b/example/ios/Runner/Runner.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.developer.associated-domains + + applinks:www.yourdomain.com + + + diff --git a/ios/tencent_setup.rb b/ios/tencent_setup.rb index 20a4a5e..82f7293 100644 --- a/ios/tencent_setup.rb +++ b/ios/tencent_setup.rb @@ -118,6 +118,15 @@ project.targets.each do |target| end File.write(infoplistFile, Plist::Emit.dump(result)) end + security = result["NSAppTransportSecurity"] + if (!security) + security = {} + result["NSAppTransportSecurity"] = security + end + if (security["NSAllowsArbitraryLoads"] != true) + security["NSAllowsArbitraryLoads"] = true + File.write(infoplistFile, Plist::Emit.dump(result)) + end end sectionObject.build_configurations.each do |config| codeSignEntitlements = config.build_settings["CODE_SIGN_ENTITLEMENTS"]