Browse Source

FIX | Add firebase support to android devices | Firebase files

merge-requests/7/head
JetUp 2 years ago
parent
commit
11533a0120
  1. 3
      android/app/build.gradle
  2. 47
      android/app/google-services.json
  3. 1
      android/build.gradle
  4. 3
      src/module/root/navigations-groups/on-boardings-group.tsx

3
android/app/build.gradle

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply plugin: 'com.google.gms.google-services'
import com.android.build.OutputFile
@ -136,6 +137,7 @@ android { @@ -136,6 +137,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
}
splits {
abi {
@ -196,6 +198,7 @@ dependencies { @@ -196,6 +198,7 @@ dependencies {
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
implementation project(':react-native-svg')
implementation project(':react-native-vector-icons')
implementation 'com.android.support:multidex:2.0.1'
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
exclude group:'com.facebook.fbjni'

47
android/app/google-services.json

@ -0,0 +1,47 @@ @@ -0,0 +1,47 @@
{
"project_info": {
"project_number": "180425292880",
"firebase_url": "https://truthordare-6493e-default-rtdb.europe-west1.firebasedatabase.app",
"project_id": "truthordare-6493e",
"storage_bucket": "truthordare-6493e.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:180425292880:android:8690e5274abb413c7da555",
"android_client_info": {
"package_name": "com.truth"
}
},
"oauth_client": [
{
"client_id": "180425292880-1pfj1drhgqc9j19jit1ahfu7jouodjej.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyBXoidUFjbE84RZ8PqIP0IGAsTYU28PEO8"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "180425292880-1pfj1drhgqc9j19jit1ahfu7jouodjej.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "180425292880-bfueoq3p0oq0b0lf2qviebio2q338eu8.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "org.reactjs.native.example.Truth"
}
}
]
}
}
}
],
"configuration_version": "1"
}

1
android/build.gradle

@ -14,6 +14,7 @@ buildscript { @@ -14,6 +14,7 @@ buildscript {
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
classpath 'com.google.gms:google-services:4.3.14'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

3
src/module/root/navigations-groups/on-boardings-group.tsx

@ -9,7 +9,6 @@ import {Questions} from '../screens/questions'; @@ -9,7 +9,6 @@ import {Questions} from '../screens/questions';
import {PrivacyPolicy} from '../../privacy-policy/screens/privacy-policy';
import {UseOfTerms} from '../../terms-of-use/screens/use-of-terms';
import firestore from '@react-native-firebase/firestore';
import AsyncStorage from '@react-native-async-storage/async-storage';
const Stack = createNativeStackNavigator();
export const OnboardingGroup: FC = () => {
@ -66,6 +65,8 @@ export const OnboardingGroup: FC = () => { @@ -66,6 +65,8 @@ export const OnboardingGroup: FC = () => {
<Stack.Navigator
screenOptions={{
headerShown: false,
animation: 'slide_from_left',
}}
initialRouteName={RouteKey.Loading}>
<Stack.Screen name={RouteKey.Questions} component={Questions} />

Loading…
Cancel
Save