Skip to content

Commit 1aab41f

Browse files
authored
Merge pull request #26 from CodeLanka/feature/firebase-analytics-performance-monitoring-crash-reporting
[Feature] Firebase Analytics, Performance monitoring and Crash reporting
2 parents 7848b0f + 99fe8c8 commit 1aab41f

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

android/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "com.google.firebase.firebase-perf"
3+
24

35
import com.android.build.OutputFile
46

@@ -136,6 +138,8 @@ dependencies {
136138
transitive = false
137139
}
138140
compile "com.google.firebase:firebase-core:11.0.0"
141+
compile "com.google.firebase:firebase-analytics:11.0.0"
142+
compile "com.google.firebase:firebase-perf:11.0.0"
139143

140144
// If you are receiving Google Play API availability issues, add the following dependency
141145
// compile "com.google.android.gms:play-services-base:11.0.0"

android/app/src/main/java/org/gdgsrilanka/codelanka/eznet/MainApplication.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
import java.util.List;
1515

1616
import io.invertase.firebase.RNFirebasePackage;
17+
import io.invertase.firebase.analytics.RNFirebaseAnalyticsPackage;
18+
import io.invertase.firebase.crash.RNFirebaseCrashPackage;
19+
import io.invertase.firebase.perf.RNFirebasePerformancePackage;
1720

1821
public class MainApplication extends Application implements ReactApplication {
1922

@@ -28,6 +31,9 @@ protected List<ReactPackage> getPackages() {
2831
return Arrays.<ReactPackage>asList(
2932
new MainReactPackage(),
3033
new RNFirebasePackage(),
34+
new RNFirebaseAnalyticsPackage(),
35+
new RNFirebaseCrashPackage(),
36+
new RNFirebasePerformancePackage(),
3137
new VectorIconsPackage()
3238
);
3339
}

android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ buildscript {
88
classpath 'com.android.tools.build:gradle:2.2.3'
99
classpath 'com.google.gms:google-services:3.0.0'
1010

11+
classpath 'com.google.firebase:firebase-plugins:1.1.0'
12+
1113
// NOTE: Do not place your application dependencies here; they belong
1214
// in the individual module build.gradle files
1315
}

0 commit comments

Comments
 (0)