From 6997e123f686099791c972f32f0f5ac3e964180a Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Mon, 27 Jun 2022 14:39:10 -0500 Subject: [PATCH] Add capacitor-firebase-auth --- web/android/app/build.gradle | 3 ++ web/android/app/capacitor.build.gradle | 2 +- web/android/app/google-services.json | 47 +++++++++++++++++++ web/android/app/src/main/AndroidManifest.xml | 1 + .../app/src/main/assets/capacitor.config.json | 21 ++++++++- .../src/main/assets/capacitor.plugins.json | 7 ++- .../java/markets/manifold/MainActivity.java | 10 +++- web/android/build.gradle | 2 +- web/android/capacitor.settings.gradle | 3 ++ web/android/variables.gradle | 4 +- web/capacitor.config.ts | 13 +++++ web/package.json | 1 + yarn.lock | 14 ++++++ 13 files changed, 121 insertions(+), 7 deletions(-) create mode 100644 web/android/app/google-services.json diff --git a/web/android/app/build.gradle b/web/android/app/build.gradle index 6759776e..fa7f034e 100644 --- a/web/android/app/build.gradle +++ b/web/android/app/build.gradle @@ -1,4 +1,5 @@ apply plugin: 'com.android.application' +apply plugin: 'com.google.gms.google-services' android { compileSdkVersion rootProject.ext.compileSdkVersion @@ -34,9 +35,11 @@ dependencies { implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion" implementation project(':capacitor-android') testImplementation "junit:junit:$junitVersion" + //noinspection GradleDependency androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion" androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion" implementation project(':capacitor-cordova-android-plugins') + implementation platform('com.google.firebase:firebase-bom:30.2.0') } apply from: 'capacitor.build.gradle' diff --git a/web/android/app/capacitor.build.gradle b/web/android/app/capacitor.build.gradle index 837cd452..41228d49 100644 --- a/web/android/app/capacitor.build.gradle +++ b/web/android/app/capacitor.build.gradle @@ -9,7 +9,7 @@ android { apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle" dependencies { - + implementation project(':capacitor-firebase-auth') } diff --git a/web/android/app/google-services.json b/web/android/app/google-services.json new file mode 100644 index 00000000..8c8741a4 --- /dev/null +++ b/web/android/app/google-services.json @@ -0,0 +1,47 @@ +{ + "project_info": { + "project_number": "128925704902", + "project_id": "mantic-markets", + "storage_bucket": "mantic-markets.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:128925704902:android:d7953e9f3a3fc4df642dc7", + "android_client_info": { + "package_name": "markets.manifold" + } + }, + "oauth_client": [ + { + "client_id": "128925704902-1prt50kd7uuvfasmrbmflgssd1rakvil.apps.googleusercontent.com", + "client_type": 1, + "android_info": { + "package_name": "markets.manifold", + "certificate_hash": "c490b7f924f64cff3ba3785fda44733fba64eb75" + } + }, + { + "client_id": "128925704902-bpcbnlp2gt73au3rrjjtnup6cskr89p0.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyBtBF0n3q4XgHE2DWmAsMcsk0wmB1pcNss" + } + ], + "services": { + "appinvite_service": { + "other_platform_oauth_client": [ + { + "client_id": "128925704902-bpcbnlp2gt73au3rrjjtnup6cskr89p0.apps.googleusercontent.com", + "client_type": 3 + } + ] + } + } + } + ], + "configuration_version": "1" +} \ No newline at end of file diff --git a/web/android/app/src/main/AndroidManifest.xml b/web/android/app/src/main/AndroidManifest.xml index afda4ebc..165d126e 100644 --- a/web/android/app/src/main/AndroidManifest.xml +++ b/web/android/app/src/main/AndroidManifest.xml @@ -11,6 +11,7 @@ android:theme="@style/AppTheme">