Skip to content

Commit

Permalink
Merge pull request #341 from WideChat/ear_firebase_perf_monitor
Browse files Browse the repository at this point in the history
Add firebase performance monitor to play builds.
  • Loading branch information
ear-dev authored May 8, 2019
2 parents dc6e47d + ea1901c commit 33de750
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ def taskRequests = getGradle().getStartParameter().getTaskRequests().toString()
def isPlay = !(taskRequests.contains("Foss") || taskRequests.contains("foss"))

apply plugin: 'com.android.application'
if (isPlay) {
apply plugin: 'io.fabric'
}
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
Expand Down Expand Up @@ -182,8 +179,9 @@ dependencies {
playImplementation libraries.firebaseAnalytics
playImplementation libraries.playServicesAuth
playImplementation libraries.dynamiclinks
playImplementation('com.google.firebase:firebase-core:16.0.8@aar') { transitive = true}
playImplementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') { transitive = true }
playImplementation libraries.firebaseCore
playImplementation libraries.firebaseCrashlytics
playImplementation libraries.firebasePerf

testImplementation libraries.junit
testImplementation libraries.truth
Expand All @@ -209,4 +207,6 @@ task compileSdk(type: Exec) {
preBuild.dependsOn compileSdk
if (isPlay) {
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
apply plugin: 'com.google.firebase.firebase-perf'
}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ buildscript {
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.26.1'
classpath "com.github.ben-manes:gradle-versions-plugin:0.20.0"
classpath 'com.google.firebase:perf-plugin:1.2.1'
}
}

Expand Down
6 changes: 6 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ ext {
dynamiclinks : '16.1.5',
playServices : '16.0.1',
playServicesAuth : '16.0.1',
firebaseCore : '16.0.8',
firebaseCrashlytics : '2.9.9',
firebasePerf : '16.2.5',
exoPlayer : '2.8.2',
flexbox : '1.1.0',
material : '1.0.0',
Expand Down Expand Up @@ -138,6 +141,9 @@ ext {

dynamiclinks : "com.google.firebase:firebase-dynamic-links:${versions.dynamiclinks}",
playServicesAuth : "com.google.android.gms:play-services-auth:${versions.playServicesAuth}",
firebaseCore : "com.google.firebase:firebase-core:${versions.firebaseCore}",
firebaseCrashlytics : "com.crashlytics.sdk.android:crashlytics:${versions.firebaseCrashlytics}",
firebasePerf : "com.google.firebase:firebase-perf:${versions.firebasePerf}",

// For testing
junit : "junit:junit:${versions.junit}",
Expand Down

0 comments on commit 33de750

Please sign in to comment.