remove bugsnag from foss build

This commit is contained in:
GOVINDDIXIT 2020-07-02 16:43:21 +05:30
parent ad16e34c1d
commit 00feb2f694
2 changed files with 11 additions and 10 deletions

View File

@ -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!

View File

@ -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
}
}