fieldnotes/android/build.gradle

74 lines
2.1 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
versionMajor = 1
versionMinor = 0
versionPatch = 1
versionClassifier = System.getenv('VERSION_CLASSIFIER')
versionCodeOverride = System.getenv('VERSION_CODE_OVERRIDE') ? System.getenv('VERSION_CODE_OVERRIDE').toInteger() : null
releaseChannel = System.getenv('RELEASE_CHANNEL')
releaseAppIdSuffix = System.getenv('RELEASE_APP_ID_SUFFIX')
buildToolsVersion = "29.0.2"
minSdkVersion = 23
compileSdkVersion = 29
targetSdkVersion = 29
osmdroidVersion = '6.0.1'
supportLibVersion = "28.0.0"
}
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
}
}
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileOptions.encoding = 'utf-8'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
lintOptions {
abortOnError false
}
}
}
}
}
// task wrapper(type: Wrapper) {
// gradleVersion = '4.10'
// distributionUrl = distributionUrl.replace("bin", "all")
// }