From c06bb409cfd69d41b36def48036d3c157feefa56 Mon Sep 17 00:00:00 2001 From: Nicolas Gruber Date: Tue, 9 May 2023 23:06:54 +0200 Subject: [PATCH] firebase on mac os --- android/app/build.gradle | 3 +++ android/app/google-services.json | 4 ++-- android/build.gradle | 3 +++ ios/Runner.xcodeproj/project.pbxproj | 4 ++++ ios/Runner/Info.plist | 2 +- lib/firebase_options.dart | 6 +++--- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index fcc5e8a..67e80f8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -22,6 +22,9 @@ if (flutterVersionName == null) { } apply plugin: 'com.android.application' +// START: FlutterFire Configuration +apply plugin: 'com.google.gms.google-services' +// END: FlutterFire Configuration apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" diff --git a/android/app/google-services.json b/android/app/google-services.json index 25ba270..b85e0c3 100644 --- a/android/app/google-services.json +++ b/android/app/google-services.json @@ -31,10 +31,10 @@ "client_type": 3 }, { - "client_id": "576683162451-vf1g0qoge66lb3bmpsg4neckv4opovub.apps.googleusercontent.com", + "client_id": "576683162451-fsmb243l472p04mgcmg2lcg7cjreftu4.apps.googleusercontent.com", "client_type": 2, "ios_info": { - "bundle_id": "com.oggauergemeindetrommler.app" + "bundle_id": "oggauergemeindetrommler" } } ] diff --git a/android/build.gradle b/android/build.gradle index 83ae220..9192654 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -7,6 +7,9 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:7.1.2' + // START: FlutterFire Configuration + classpath 'com.google.gms:google-services:4.3.10' + // END: FlutterFire Configuration classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 8c1f4cc..edf9ba2 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -8,6 +8,7 @@ /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 335E1333279280BEA950191C /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 817A48A49CA32E3D71CFA726 /* GoogleService-Info.plist */; }; 377FBEEE2A057DE400BDBE04 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0778EBD9773343F4B378D8C4 /* Pods_Runner.framework */; }; 377FBEEF2A057DE400BDBE04 /* Pods_Runner.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0778EBD9773343F4B378D8C4 /* Pods_Runner.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; @@ -40,6 +41,7 @@ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 817A48A49CA32E3D71CFA726 /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; 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 = ""; }; 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -92,6 +94,7 @@ 97C146EF1CF9000F007C117D /* Products */, 5A116B5BBD44F1A66157C1CD /* Pods */, C75FFA350C09C2E69E6FF84C /* Frameworks */, + 817A48A49CA32E3D71CFA726 /* GoogleService-Info.plist */, ); sourceTree = ""; }; @@ -193,6 +196,7 @@ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + 335E1333279280BEA950191C /* GoogleService-Info.plist in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index ecc9b68..c91f03f 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -15,7 +15,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - oggauer_gemeindetrommler + gemeinde-trommler.appspot.com CFBundlePackageType APPL CFBundleShortVersionString diff --git a/lib/firebase_options.dart b/lib/firebase_options.dart index f69afde..284bfb8 100644 --- a/lib/firebase_options.dart +++ b/lib/firebase_options.dart @@ -59,11 +59,11 @@ class DefaultFirebaseOptions { static const FirebaseOptions ios = FirebaseOptions( apiKey: 'AIzaSyDV441PhkPEC7igZmYMpJ_axLMc2bKQ5fY', - appId: '1:576683162451:ios:f3e9140edfc4c945083fa6', + appId: '1:576683162451:ios:bfd658742514a7d2083fa6', messagingSenderId: '576683162451', projectId: 'gemeinde-trommler', storageBucket: 'gemeinde-trommler.appspot.com', - iosClientId: '576683162451-vf1g0qoge66lb3bmpsg4neckv4opovub.apps.googleusercontent.com', - iosBundleId: 'com.example.demoapp', + iosClientId: '576683162451-fsmb243l472p04mgcmg2lcg7cjreftu4.apps.googleusercontent.com', + iosBundleId: 'oggauergemeindetrommler', ); }