move sdk version configs to gradle.properties (#1685)

This commit is contained in:
cn 2020-08-04 20:36:14 +08:00 committed by GitHub
parent 6f24628fd2
commit 04268f4c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 11 deletions

View File

@ -3,8 +3,8 @@ plugins {
}
android {
compileSdkVersion 28
ndkVersion '21.3.6528147'
compileSdkVersion project.properties.compileSdkVersion.toInteger()
ndkVersion project.properties.ndkVersion
dependencies {
implementation "androidx.annotation:annotation:1.1.0"
@ -15,8 +15,8 @@ android {
defaultConfig {
applicationId "com.termux"
minSdkVersion 24
targetSdkVersion 28
minSdkVersion project.properties.minSdkVersion.toInteger()
targetSdkVersion project.properties.targetSdkVersion.toInteger()
versionCode 96
versionName "0.96"

View File

@ -14,3 +14,8 @@
# org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048M
android.useAndroidX=true
minSdkVersion=24
targetSdkVersion=28
ndkVersion=21.3.6528147
compileSdkVersion=28

View File

@ -17,12 +17,12 @@ ext {
}
android {
compileSdkVersion 28
ndkVersion '21.3.6528147'
compileSdkVersion project.properties.compileSdkVersion.toInteger()
ndkVersion project.properties.ndkVersion
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
minSdkVersion project.properties.minSdkVersion.toInteger()
targetSdkVersion project.properties.targetSdkVersion.toInteger()
externalNativeBuild {
ndkBuild {

View File

@ -17,7 +17,7 @@ ext {
}
android {
compileSdkVersion 28
compileSdkVersion project.properties.compileSdkVersion.toInteger()
dependencies {
implementation "androidx.annotation:annotation:1.1.0"
@ -25,8 +25,8 @@ android {
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
minSdkVersion project.properties.minSdkVersion.toInteger()
targetSdkVersion project.properties.targetSdkVersion.toInteger()
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}