Add capacitor-firebase-auth
This commit is contained in:
parent
02fdf704c3
commit
6997e123f6
|
@ -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'
|
||||
|
|
|
@ -9,7 +9,7 @@ android {
|
|||
|
||||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||
dependencies {
|
||||
|
||||
implementation project(':capacitor-firebase-auth')
|
||||
|
||||
}
|
||||
|
||||
|
|
47
web/android/app/google-services.json
Normal file
47
web/android/app/google-services.json
Normal file
|
@ -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"
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity
|
||||
android:exported="true"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||
android:name="markets.manifold.MainActivity"
|
||||
android:label="@string/title_activity_main"
|
||||
|
|
|
@ -2,5 +2,24 @@
|
|||
"appId": "markets.manifold",
|
||||
"appName": "Manifold Markets",
|
||||
"webDir": "out",
|
||||
"bundledWebRuntime": false
|
||||
"bundledWebRuntime": false,
|
||||
"server": {
|
||||
"allowNavigation": [
|
||||
"oneword-cf74a.firebaseapp.com",
|
||||
"accounts.google.com"
|
||||
]
|
||||
},
|
||||
"plugins": {
|
||||
"CapacitorFirebaseAuth": {
|
||||
"providers": [
|
||||
"google.com"
|
||||
],
|
||||
"languageCode": "en",
|
||||
"permissions": {
|
||||
"google": [
|
||||
"profile"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
[]
|
||||
[
|
||||
{
|
||||
"pkg": "capacitor-firebase-auth",
|
||||
"classpath": "com.baumblatt.capacitor.firebase.auth.CapacitorFirebaseAuth"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
package markets.manifold;
|
||||
|
||||
import android.os.Bundle;
|
||||
import com.getcapacitor.BridgeActivity;
|
||||
import com.baumblatt.capacitor.firebase.auth.CapacitorFirebaseAuth;
|
||||
|
||||
public class MainActivity extends BridgeActivity {}
|
||||
public class MainActivity extends BridgeActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
registerPlugin(CapacitorFirebaseAuth.class);
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ buildscript {
|
|||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||
classpath 'com.google.gms:google-services:4.3.10'
|
||||
classpath 'com.google.gms:google-services:4.3.12'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||
include ':capacitor-android'
|
||||
project(':capacitor-android').projectDir = new File('../../node_modules/@capacitor/android/capacitor')
|
||||
|
||||
include ':capacitor-firebase-auth'
|
||||
project(':capacitor-firebase-auth').projectDir = new File('../../node_modules/capacitor-firebase-auth/android')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
minSdkVersion = 21
|
||||
compileSdkVersion = 30
|
||||
targetSdkVersion = 30
|
||||
compileSdkVersion = 31
|
||||
targetSdkVersion = 31
|
||||
androidxActivityVersion = '1.2.0'
|
||||
androidxAppCompatVersion = '1.2.0'
|
||||
androidxCoordinatorLayoutVersion = '1.1.0'
|
||||
|
|
|
@ -5,6 +5,19 @@ const config: CapacitorConfig = {
|
|||
appName: 'Manifold Markets',
|
||||
webDir: 'out',
|
||||
bundledWebRuntime: false,
|
||||
// TODO: Do we need this?
|
||||
// server: {
|
||||
// allowNavigation: ['oneword-cf74a.firebaseapp.com', 'accounts.google.com'],
|
||||
// },
|
||||
plugins: {
|
||||
CapacitorFirebaseAuth: {
|
||||
providers: ['google.com'],
|
||||
languageCode: 'en',
|
||||
permissions: {
|
||||
google: ['profile'],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
"@nivo/line": "0.74.0",
|
||||
"@react-query-firebase/firestore": "0.4.2",
|
||||
"algoliasearch": "4.13.0",
|
||||
"capacitor-firebase-auth": "^3.0.0",
|
||||
"clsx": "1.1.1",
|
||||
"cors": "2.8.5",
|
||||
"daisyui": "1.16.4",
|
||||
|
|
14
yarn.lock
14
yarn.lock
|
@ -1377,6 +1377,13 @@
|
|||
dependencies:
|
||||
tslib "^2.1.0"
|
||||
|
||||
"@capacitor/core@next":
|
||||
version "4.0.0-beta.0"
|
||||
resolved "https://registry.yarnpkg.com/@capacitor/core/-/core-4.0.0-beta.0.tgz#60661d3dc7c8c81dcc641335bf5910c09454b7a8"
|
||||
integrity sha512-JNX8wMU5jtwJEywyzSXWhD7Eooh9aM7KS//cDMyFcSA/gk0yBfAXMsOkNx+UOghOXF3jbr1kdafy2ArBEwAIrw==
|
||||
dependencies:
|
||||
tslib "^2.1.0"
|
||||
|
||||
"@colors/colors@1.5.0":
|
||||
version "1.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
|
||||
|
@ -4219,6 +4226,13 @@ caniuse-lite@^1.0.30001230, caniuse-lite@^1.0.30001283, caniuse-lite@^1.0.300013
|
|||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001341.tgz#59590c8ffa8b5939cf4161f00827b8873ad72498"
|
||||
integrity sha512-2SodVrFFtvGENGCv0ChVJIDQ0KPaS1cg7/qtfMaICgeMolDdo/Z2OD32F0Aq9yl6F4YFwGPBS5AaPqNYiW4PoA==
|
||||
|
||||
capacitor-firebase-auth@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/capacitor-firebase-auth/-/capacitor-firebase-auth-3.0.0.tgz#6c3ecf1753606f065e7e75a45da6bbb8c808880e"
|
||||
integrity sha512-90O9FJ/cuc3LvObDiI8Ycl0ZBCqMlAiDxCoxMEXC3mDJPi/yYd87VVB3FUb/LWYGXQV8/39jHvJhPzpJSRY7zA==
|
||||
dependencies:
|
||||
"@capacitor/core" next
|
||||
|
||||
ccount@^1.0.0, ccount@^1.0.3:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043"
|
||||
|
|
Loading…
Reference in New Issue
Block a user