[#261] Add property for NDK version

This commit is contained in:
Carter Jernigan 2021-08-31 12:33:25 -04:00
parent f8ed6023c7
commit 2471389906
4 changed files with 16 additions and 14 deletions

View File

@ -5,12 +5,12 @@ apply plugin: 'kotlin-kapt'
apply plugin: 'androidx.navigation.safeargs'
android {
ndkVersion "21.1.6352462"
compileSdkVersion 29
ndkVersion project.property("ndkVersion")
compileSdkVersion Integer.parseInt(project.property("compileSdkVersion"))
defaultConfig {
applicationId "cash.z.ecc.android.sdk.demoapp"
minSdkVersion 21
targetSdkVersion 29
minSdkVersion 21 // Different from the SDK min
targetSdkVersion Integer.parseInt(project.property("targetSdkVersion"))
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

View File

@ -37,4 +37,11 @@ POM_LICENCE_URL=http://opensource.org/licenses/MIT
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=gmale
POM_DEVELOPER_NAME=Kevin Gorham
POM_DEVELOPER_URL=https://github.com/gmale/
POM_DEVELOPER_URL=https://github.com/gmale/
# Versions
# Note: When updating the NDK version here, be sure to update the version on the CI server as well
ndkVersion=21.1.6352462
minSdkVersion=16
targetSdkVersion=29
compileSdkVersion=29

View File

@ -17,15 +17,15 @@ apply plugin: 'org.mozilla.rust-android-gradle.rust-android'
apply plugin: 'com.vanniktech.maven.publish'
android {
compileSdkVersion config.compileSdkVersion
compileSdkVersion Integer.parseInt(project.property("compileSdkVersion"))
useLibrary 'android.test.runner'
ndkVersion "21.1.6352462"
ndkVersion project.property("ndkVersion")
defaultConfig {
minSdkVersion config.minSdkVersion
targetSdkVersion config.targetSdkVersion
minSdkVersion Integer.parseInt(project.property("minSdkVersion"))
targetSdkVersion Integer.parseInt(project.property("targetSdkVersion"))
versionCode = config.publish.versionCode
versionName = config.publish.versionName
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

View File

@ -2,11 +2,6 @@
// Publishing
/////////////////////////////////////////
// general
compileSdkVersion = 30
minSdkVersion = 16
targetSdkVersion = 30
publish {
group = 'cash.z.ecc.android'
versionName = '1.3.0-beta18'