* Migrate from fabric to firebase for crashlytics * Disable firebase crashlytics for purefoss flavour * Exclude all non-prod flavours * Target 29 to prevent cache data open failure in webview bug
31 lines
946 B
Groovy
31 lines
946 B
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
ext.kotlin_version = '1.3.72'
|
|
repositories {
|
|
jcenter()
|
|
// for the new android gradle plugin
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:4.0.1'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
|
|
|
ext {
|
|
sourceCompatibilityVersion = JavaVersion.VERSION_1_8
|
|
targetCompatibilityVersion = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
subprojects {
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
if ("com.android.build.gradle.AppPlugin" == plugin.class.name) {
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
} else if ("com.android.build.gradle.LibraryPlugin" == plugin.class.name) {
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
}
|
|
}
|
|
} |