Skip to content

Commit

Permalink
re-run flutterfire configure
Browse files Browse the repository at this point in the history
add back google-services.json
for firestore the firebase/flutterfire#8501 is still present
  • Loading branch information
X-Wei committed Apr 21, 2024
1 parent d0bf35f commit 4513c36
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 6 deletions.
13 changes: 13 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
plugins {
id "com.android.application"
// START: FlutterFire Configuration
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
// END: FlutterFire Configuration
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
Expand Down Expand Up @@ -75,4 +79,13 @@ flutter {
source '../..'
}

// ! 🚧 temp solution for firestore bug.
// see https://github.com/firebase/flutterfire/issues/8501#issuecomment-1107883048
configurations.all {
resolutionStrategy {
force 'com.squareup.okhttp:okhttp:2.7.5'
force 'com.squareup.okio:okio:1.17.5'
}
}

dependencies {}
79 changes: 79 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"project_info": {
"project_number": "785184947614",
"firebase_url": "https://flutter-catalog.firebaseio.com",
"project_id": "flutter-catalog",
"storage_bucket": "flutter-catalog.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:785184947614:android:5457502553a9ce1b",
"android_client_info": {
"package_name": "io.github.x_wei.flutter_catalog"
}
},
"oauth_client": [
{
"client_id": "785184947614-jvcu7agpj6n6vvr5poal14otu8mjdl61.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "io.github.x_wei.flutter_catalog",
"certificate_hash": "00e9ff895bc4ed0b203396da5639ce3385753eff"
}
},
{
"client_id": "785184947614-lp3o8ek63cfj842pa197gbs2s8lh5e6q.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "io.github.x_wei.flutter_catalog",
"certificate_hash": "8ce1c9f33fbdd1c5ffaf05aa5bc1630afe707c10"
}
},
{
"client_id": "785184947614-pan9uvvld12b6s7k190orl6v7v1p68c9.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "io.github.x_wei.flutter_catalog",
"certificate_hash": "2fa93db8ea63f952a0cf73bf6d4c4947b53b7160"
}
},
{
"client_id": "785184947614-rtg325ip2u8jno81hdekdcu8t18qh1ic.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "io.github.x_wei.flutter_catalog",
"certificate_hash": "5fcdcf722c1b9e7deb0bb02902622d0a37d435ec"
}
},
{
"client_id": "785184947614-k4q21aq3rmasodkrj5gjs9qtqtkp89tt.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBcYi_dsaxhGZV1KTn5FObuGEPezTup9As"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "785184947614-k4q21aq3rmasodkrj5gjs9qtqtkp89tt.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "785184947614-70ii5qm94fe28nmasjc9g864nh25l4m7.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "io.github.x-wei.flutter-catalog"
}
}
]
}
}
}
],
"configuration_version": "1"
}
4 changes: 4 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
// START: FlutterFire Configuration
id "com.google.gms.google-services" version "4.3.15" apply false
id "com.google.firebase.crashlytics" version "2.8.1" apply false
// END: FlutterFire Configuration
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}

Expand Down
23 changes: 22 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,26 @@
"destination": "/index.html"
}
]
},
"flutter": {
"platforms": {
"android": {
"default": {
"projectId": "flutter-catalog",
"appId": "1:785184947614:android:5457502553a9ce1b",
"fileOutput": "android/app/google-services.json"
}
},
"dart": {
"lib/firebase_options.dart": {
"projectId": "flutter-catalog",
"configurations": {
"android": "1:785184947614:android:5457502553a9ce1b",
"ios": "1:785184947614:ios:e7733ee4559d7b91f3aa8f",
"web": "1:785184947614:web:4d5471b36872c2dbf3aa8f"
}
}
}
}
}
}
}
9 changes: 4 additions & 5 deletions lib/firebase_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ class DefaultFirebaseOptions {
projectId: 'flutter-catalog',
databaseURL: 'https://flutter-catalog.firebaseio.com',
storageBucket: 'flutter-catalog.appspot.com',
androidClientId:
'785184947614-jvcu7agpj6n6vvr5poal14otu8mjdl61.apps.googleusercontent.com',
iosClientId:
'785184947614-70ii5qm94fe28nmasjc9g864nh25l4m7.apps.googleusercontent.com',
androidClientId: '785184947614-jvcu7agpj6n6vvr5poal14otu8mjdl61.apps.googleusercontent.com',
iosClientId: '785184947614-70ii5qm94fe28nmasjc9g864nh25l4m7.apps.googleusercontent.com',
iosBundleId: 'io.github.x-wei.flutter-catalog',
);
}

}

0 comments on commit 4513c36

Please sign in to comment.