From e70e2aee426226448ebbdbff30992b0aa4c9ff12 Mon Sep 17 00:00:00 2001 From: emkartal1 Date: Fri, 24 Nov 2023 23:03:37 +0100 Subject: [PATCH] Fix error Google sign in for ios :bug: --- Sources/justMUSIC/ios/Podfile | 2 +- Sources/justMUSIC/ios/Podfile.lock | 2 +- .../ios/Runner.xcodeproj/project.pbxproj | 16 +++++---- .../justMUSIC/ios/Runner/AppDelegate.swift | 1 - .../ios/Runner/GoogleService-Info.plist | 36 +++++++++++++++++++ Sources/justMUSIC/ios/Runner/Info.plist | 11 ++++++ 6 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 Sources/justMUSIC/ios/Runner/GoogleService-Info.plist diff --git a/Sources/justMUSIC/ios/Podfile b/Sources/justMUSIC/ios/Podfile index fdcc671..2c6a9b8 100644 --- a/Sources/justMUSIC/ios/Podfile +++ b/Sources/justMUSIC/ios/Podfile @@ -1,5 +1,5 @@ # Uncomment this line to define a global platform for your project -# platform :ios, '11.0' +platform :ios, '11.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/Sources/justMUSIC/ios/Podfile.lock b/Sources/justMUSIC/ios/Podfile.lock index 5ef4664..5315664 100644 --- a/Sources/justMUSIC/ios/Podfile.lock +++ b/Sources/justMUSIC/ios/Podfile.lock @@ -953,6 +953,6 @@ SPEC CHECKSUMS: PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a -PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189 +PODFILE CHECKSUM: 6b9eb94e9f98a329f2ef624b852a6e42d090af2b COCOAPODS: 1.14.3 diff --git a/Sources/justMUSIC/ios/Runner.xcodeproj/project.pbxproj b/Sources/justMUSIC/ios/Runner.xcodeproj/project.pbxproj index 588e710..1eac039 100644 --- a/Sources/justMUSIC/ios/Runner.xcodeproj/project.pbxproj +++ b/Sources/justMUSIC/ios/Runner.xcodeproj/project.pbxproj @@ -15,6 +15,7 @@ 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 */; }; + C95EC3D52B114F7D00A316A2 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C95EC3D42B114F7D00A316A2 /* GoogleService-Info.plist */; }; DE887488687930BD9A821E09 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 895D1BE06AED43E6E7367693 /* Pods_Runner.framework */; }; /* End PBXBuildFile section */ @@ -64,6 +65,7 @@ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C7930A860EC8743E6A941D8D /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C95EC3D42B114F7D00A316A2 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; F782B307897A4B77B59D0897 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -130,6 +132,7 @@ 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( + C95EC3D42B114F7D00A316A2 /* GoogleService-Info.plist */, 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, @@ -263,6 +266,7 @@ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + C95EC3D52B114F7D00A316A2 /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -472,7 +476,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 35KQ5BDC64; + DEVELOPMENT_TEAM = P39ZK4GA2T; ENABLE_BITCODE = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -481,7 +485,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.justdev.justmusic; + PRODUCT_BUNDLE_IDENTIFIER = com.just.justmusic; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -660,7 +664,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 35KQ5BDC64; + DEVELOPMENT_TEAM = P39ZK4GA2T; ENABLE_BITCODE = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -669,7 +673,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.justdev.justmusic; + PRODUCT_BUNDLE_IDENTIFIER = com.just.justmusic; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; @@ -688,7 +692,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; - DEVELOPMENT_TEAM = 35KQ5BDC64; + DEVELOPMENT_TEAM = P39ZK4GA2T; ENABLE_BITCODE = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO; INFOPLIST_FILE = Runner/Info.plist; @@ -697,7 +701,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.justdev.justmusic; + PRODUCT_BUNDLE_IDENTIFIER = com.just.justmusic; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; diff --git a/Sources/justMUSIC/ios/Runner/AppDelegate.swift b/Sources/justMUSIC/ios/Runner/AppDelegate.swift index 51bcfe1..70693e4 100644 --- a/Sources/justMUSIC/ios/Runner/AppDelegate.swift +++ b/Sources/justMUSIC/ios/Runner/AppDelegate.swift @@ -1,6 +1,5 @@ import UIKit import Flutter -import FirebaseCore @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { diff --git a/Sources/justMUSIC/ios/Runner/GoogleService-Info.plist b/Sources/justMUSIC/ios/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..661063e --- /dev/null +++ b/Sources/justMUSIC/ios/Runner/GoogleService-Info.plist @@ -0,0 +1,36 @@ + + + + + CLIENT_ID + 994903990520-n6jd98ena56kb1tvtrd67tvb5et3nfbf.apps.googleusercontent.com + REVERSED_CLIENT_ID + com.googleusercontent.apps.994903990520-n6jd98ena56kb1tvtrd67tvb5et3nfbf + ANDROID_CLIENT_ID + 994903990520-073l30b0afj0uq7apsvc8p8ukantpu6q.apps.googleusercontent.com + API_KEY + AIzaSyBbYqsR6t7JTi8_XFNEHd43IRuKlYGeI3U + GCM_SENDER_ID + 994903990520 + PLIST_VERSION + 1 + BUNDLE_ID + com.example.justmusic + PROJECT_ID + justmusic-435d5 + STORAGE_BUCKET + justmusic-435d5.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:994903990520:ios:93188f32e320babe0a9b0d + + \ No newline at end of file diff --git a/Sources/justMUSIC/ios/Runner/Info.plist b/Sources/justMUSIC/ios/Runner/Info.plist index 65192e5..6139f47 100644 --- a/Sources/justMUSIC/ios/Runner/Info.plist +++ b/Sources/justMUSIC/ios/Runner/Info.plist @@ -22,6 +22,17 @@ $(FLUTTER_BUILD_NAME) CFBundleSignature ???? + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLSchemes + + com.googleusercontent.apps.994903990520-n6jd98ena56kb1tvtrd67tvb5et3nfbf + + + CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS