Skip to content

Commit 230ad3f

Browse files
authored
Merge pull request #1 from reactnativekit/FAnalytics
FAnalytics implemented
2 parents 73a641e + c51a9e1 commit 230ad3f

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

android/app/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ dependencies {
262262
implementation "com.facebook.react:react-native:+" // From node_modules
263263

264264
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
265+
implementation 'com.google.firebase:firebase-analytics:17.2.2'
265266

266267
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
267268
exclude group:'com.facebook.fbjni'
@@ -309,7 +310,8 @@ task copyDownloadableDepsToLibs(type: Copy) {
309310
into 'libs'
310311
}
311312

312-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
313+
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")
314+
apply plugin: 'com.google.gms.google-services'; applyNativeModulesAppBuildGradle(project)
313315

314316
def isNewArchitectureEnabled() {
315317
// To opt-in for the New Architecture, you can either:

android/app/google-services.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"project_info": {
3+
"project_number": "24083507219",
4+
"project_id": "myfirstapp-72f08",
5+
"storage_bucket": "myfirstapp-72f08.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:24083507219:android:54485f5451ed18edcef7e6",
11+
"android_client_info": {
12+
"package_name": "com.myfirstapp"
13+
}
14+
},
15+
"oauth_client": [
16+
{
17+
"client_id": "24083507219-s9ca2acl239njqoa548gu3pdp2ip2mad.apps.googleusercontent.com",
18+
"client_type": 3
19+
}
20+
],
21+
"api_key": [
22+
{
23+
"current_key": "AIzaSyAaK1dLoP61SxzxIjUlLCtIXaVDBHwJnhY"
24+
}
25+
],
26+
"services": {
27+
"appinvite_service": {
28+
"other_platform_oauth_client": [
29+
{
30+
"client_id": "24083507219-s9ca2acl239njqoa548gu3pdp2ip2mad.apps.googleusercontent.com",
31+
"client_type": 3
32+
}
33+
]
34+
}
35+
}
36+
}
37+
],
38+
"configuration_version": "1"
39+
}

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ buildscript {
2525
classpath("com.android.tools.build:gradle:7.1.1")
2626
classpath("com.facebook.react:react-native-gradle-plugin")
2727
classpath("de.undercouch:gradle-download-task:5.0.1")
28+
classpath 'com.google.gms:google-services:4.3.3'
2829
// NOTE: Do not place your application dependencies here; they belong
2930
// in the individual module build.gradle files
3031
}

0 commit comments

Comments
 (0)