From f25888e5f676fd8235e2112b6669becb42f77b79 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 17 Jun 2021 11:05:18 +0300 Subject: [PATCH] Fix ios build --- ios/Podfile.lock | 8 +++++++- ios/Runner.xcodeproj/project.pbxproj | 4 ++++ ios/Runner/AppDelegate.swift | 4 ++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index bf6ef50..b29b2c7 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -17,6 +17,8 @@ PODS: - Flutter - MTBBarcodeScanner (5.0.11) - OrderedSet (5.0.0) + - package_info (0.0.1): + - Flutter - qr_code_scanner (0.2.0): - Flutter - MTBBarcodeScanner @@ -30,6 +32,7 @@ DEPENDENCIES: - flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`) - geolocator (from `.symlinks/plugins/geolocator/ios`) - image_picker (from `.symlinks/plugins/image_picker/ios`) + - package_info (from `.symlinks/plugins/package_info/ios`) - qr_code_scanner (from `.symlinks/plugins/qr_code_scanner/ios`) - url_launcher (from `.symlinks/plugins/url_launcher/ios`) @@ -51,6 +54,8 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/geolocator/ios" image_picker: :path: ".symlinks/plugins/image_picker/ios" + package_info: + :path: ".symlinks/plugins/package_info/ios" qr_code_scanner: :path: ".symlinks/plugins/qr_code_scanner/ios" url_launcher: @@ -62,9 +67,10 @@ SPEC CHECKSUMS: flutter_inappwebview: bfd58618f49dc62f2676de690fc6dcda1d6c3721 flutter_secure_storage: 7953c38a04c3fdbb00571bcd87d8e3b5ceb9daec geolocator: f5e3de65e241caba7ce3e8a618803387bda73384 - image_picker: 50e7c7ff960e5f58faa4d1f4af84a771c671bc4a + image_picker: e06f7a68f000bd36f552c1847e33cda96ed31f1f MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c + package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62 qr_code_scanner: bb67d64904c3b9658ada8c402e8b4d406d5d796e url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index d4db5de..d6d1d04 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ 1A3A7C54B6B124085AC42869 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 480E36E4AA6C74C251FAC1AC /* Pods_Runner.framework */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 7814FBD9267B343300D19461 /* TbWebAuthHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7814FBD8267B343200D19461 /* TbWebAuthHandler.swift */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; @@ -39,6 +40,7 @@ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 78018924264ABC4000ABF911 /* Info-Release.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Release.plist"; sourceTree = ""; }; 78018925264ABC4000ABF911 /* Info-Debug.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Info-Debug.plist"; sourceTree = ""; }; + 7814FBD8267B343200D19461 /* TbWebAuthHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TbWebAuthHandler.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; @@ -105,6 +107,7 @@ 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( + 7814FBD8267B343200D19461 /* TbWebAuthHandler.swift */, 78018925264ABC4000ABF911 /* Info-Debug.plist */, 78018924264ABC4000ABF911 /* Info-Release.plist */, 97C146FA1CF9000F007C117D /* Main.storyboard */, @@ -275,6 +278,7 @@ files = ( 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + 7814FBD9267B343300D19461 /* TbWebAuthHandler.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/ios/Runner/AppDelegate.swift b/ios/Runner/AppDelegate.swift index a403daf..09de63a 100644 --- a/ios/Runner/AppDelegate.swift +++ b/ios/Runner/AppDelegate.swift @@ -8,7 +8,7 @@ import Flutter didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - self?.registerTbWebAuth() + self.registerTbWebAuth() GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) @@ -20,7 +20,7 @@ import Flutter let instance = TbWebAuthHandler() channel.setMethodCallHandler({ (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in - instance.handle(call: call, result: result) + instance.handle(call, result: result) }) } }