diff --git a/android/app/build.gradle b/android/app/build.gradle index cc2d30b63..a9be3f78d 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -4,11 +4,10 @@ def isPlay = !(taskRequests.contains("Foss") || taskRequests.contains("foss")) apply plugin: "com.android.application" apply plugin: 'kotlin-android' -apply plugin: 'com.bugsnag.android.gradle' - if(isPlay){ apply plugin: "io.fabric" apply plugin: "com.google.firebase.firebase-perf" + apply plugin: 'com.bugsnag.android.gradle' } import com.android.build.OutputFile @@ -146,7 +145,7 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode VERSIONCODE as Integer - versionName "4.7.0" + versionName "4.8.0" vectorDrawables.useSupportLibrary = true manifestPlaceholders = [BugsnagAPIKey: BugsnagAPIKey as String] missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below! diff --git a/android/build.gradle b/android/build.gradle index f1e95820c..62ca2a4fe 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -17,16 +17,18 @@ buildscript { url 'https://maven.fabric.io/public' } } + + def taskRequests = getGradle().getStartParameter().getTaskRequests().toString() + def isPlay = !(taskRequests.contains("Foss") || taskRequests.contains("foss")) dependencies { + if(isPlay){ + classpath 'com.google.gms:google-services:4.2.0' + classpath 'io.fabric.tools:gradle:1.28.1' + classpath 'com.google.firebase:perf-plugin:1.2.1' + classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+' + } classpath 'com.android.tools.build:gradle:3.5.2' - classpath 'com.google.gms:google-services:4.2.0' - classpath 'io.fabric.tools:gradle:1.28.1' - classpath 'com.google.firebase:perf-plugin:1.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+' - - // NOTE: Do not place your application dependencies here; they belong - // in the individual module build.gradle files } }