diff --git a/android/app/build.gradle b/android/app/build.gradle index b01498b..b784aff 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -134,6 +134,7 @@ dependencies { compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:+" // From node_modules + compile 'com.google.firebase:firebase-core:9.2.1' } // Run this once to be able to run the application with BUCK @@ -142,3 +143,5 @@ task copyDownloadableDepsToLibs(type: Copy) { from configurations.compile into 'libs' } + +apply plugin: 'com.google.gms.google-services' diff --git a/android/app/google-services.json b/android/app/google-services.json new file mode 100644 index 0000000..1c8454e --- /dev/null +++ b/android/app/google-services.json @@ -0,0 +1,42 @@ +{ + "project_info": { + "project_number": "210256304232", + "firebase_url": "https://reading-challenge.firebaseio.com", + "project_id": "firebase-reading-challenge", + "storage_bucket": "firebase-reading-challenge.appspot.com" + }, + "client": [ + { + "client_info": { + "mobilesdk_app_id": "1:210256304232:android:f877e877388c3631", + "android_client_info": { + "package_name": "com.reactnativesource" + } + }, + "oauth_client": [ + { + "client_id": "210256304232-g4d1oq5kcqg99lmq1ji7idsvhhi363l2.apps.googleusercontent.com", + "client_type": 3 + } + ], + "api_key": [ + { + "current_key": "AIzaSyBnf11FSPqc14tDUwLWzKilueFHZRPfhE8" + } + ], + "services": { + "analytics_service": { + "status": 1 + }, + "appinvite_service": { + "status": 1, + "other_platform_oauth_client": [] + }, + "ads_service": { + "status": 2 + } + } + } + ], + "configuration_version": "1" +} diff --git a/android/build.gradle b/android/build.gradle index 1fc8f95..fe12d2b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,6 +6,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:1.3.1' + classpath 'com.google.gms:google-services:3.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/package.json b/package.json index b9d0305..4ab57bd 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "react-dom": "^0.14.7", "react-hot-loader": "^1.3.0", "react-native": "0.25.1", + "react-native-firebase-analytics": "^1.0.4", "react-native-icons": "^0.7.1", "react-native-navbar": "^1.5.0", "react-native-overlay": "^0.4.2",