Skip to content

Commit

Permalink
Otp send and verify with firebase
Browse files Browse the repository at this point in the history
1.) Firebase send otp setup
2.) Firebase integration in app
3.) Send Otp
4.) Otp Verify
  • Loading branch information
jitendra committed Mar 14, 2023
1 parent ce80610 commit 33b29cf
Show file tree
Hide file tree
Showing 8 changed files with 908 additions and 70 deletions.
6 changes: 5 additions & 1 deletion gravid/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ dependencies {
implementation "com.facebook.react:react-native:+" // From node_modules

implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"

implementation platform('com.google.firebase:firebase-bom:31.2.3')
implementation 'com.google.firebase:firebase-analytics-ktx'
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'
}
Expand Down Expand Up @@ -320,3 +321,6 @@ def isNewArchitectureEnabled() {
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}


apply plugin: 'com.google.gms.google-services'
47 changes: 47 additions & 0 deletions gravid/android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"project_info": {
"project_number": "1054396465556",
"project_id": "gravid-5027b",
"storage_bucket": "gravid-5027b.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1054396465556:android:d184ac2a9188c87320cf81",
"android_client_info": {
"package_name": "com.gravid"
}
},
"oauth_client": [
{
"client_id": "1054396465556-0u94j0163g6nacn47056qo4364tjudfd.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.gravid",
"certificate_hash": "5e8f16062ea3cd2c4a0d547876baa6f38cabf625"
}
},
{
"client_id": "1054396465556-htcmdc8vlq7borg223rk8el017ib7si1.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyC0DkbGBpdlVQVC4QI1-N02ZTNqyohqVgY"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "1054396465556-htcmdc8vlq7borg223rk8el017ib7si1.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
1 change: 1 addition & 0 deletions gravid/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ buildscript {
classpath("com.android.tools.build:gradle:7.2.1")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("de.undercouch:gradle-download-task:5.0.1")
classpath 'com.google.gms:google-services:4.3.15'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
Loading

0 comments on commit 33b29cf

Please sign in to comment.