Update ndk version

This commit is contained in:
chengjunzhang61 2021-12-02 04:32:23 -05:00
parent 2ea148c30a
commit 88d56ed627
2 changed files with 43 additions and 42 deletions

View File

@ -13,7 +13,7 @@ def gitSha = { ->
}.memoize() }.memoize()
android { android {
ndkVersion config['ndk-version']
compileSdkVersion config['compile-sdk'] compileSdkVersion config['compile-sdk']
buildToolsVersion config['build-tools'] buildToolsVersion config['build-tools']
@ -59,47 +59,47 @@ android {
} }
// do not sign in CI // do not sign in CI
if (!project.hasProperty('CI')) { // if (!project.hasProperty('CI')) {
signingConfigs { // signingConfigs {
config { // config {
//
final def keystoreFile = project.file('keystore.jks') // final def keystoreFile = project.file('keystore.jks')
final def keystoreFilePassword = 'MARKWON_KEYSTORE_FILE_PASSWORD' // final def keystoreFilePassword = 'MARKWON_KEYSTORE_FILE_PASSWORD'
final def keystoreAlias = 'MARKWON_KEY_ALIAS' // final def keystoreAlias = 'MARKWON_KEY_ALIAS'
final def keystoreAliasPassword = 'MARKWON_KEY_ALIAS_PASSWORD' // final def keystoreAliasPassword = 'MARKWON_KEY_ALIAS_PASSWORD'
//
final def properties = [ // final def properties = [
keystoreFilePassword, // keystoreFilePassword,
keystoreAlias, // keystoreAlias,
keystoreAliasPassword // keystoreAliasPassword
] // ]
//
if (!keystoreFile.exists()) { // if (!keystoreFile.exists()) {
throw new IllegalStateException("No '${keystoreFile.name}' file is found.") // throw new IllegalStateException("No '${keystoreFile.name}' file is found.")
} // }
//
final def missingProperties = properties.findAll { !project.hasProperty(it) } // final def missingProperties = properties.findAll { !project.hasProperty(it) }
if (!missingProperties.isEmpty()) { // if (!missingProperties.isEmpty()) {
throw new IllegalStateException("Missing required signing properties: $missingProperties") // throw new IllegalStateException("Missing required signing properties: $missingProperties")
} // }
//
storeFile keystoreFile // storeFile keystoreFile
storePassword project[keystoreFilePassword] // storePassword project[keystoreFilePassword]
//
keyAlias project[keystoreAlias] // keyAlias project[keystoreAlias]
keyPassword project[keystoreAliasPassword] // keyPassword project[keystoreAliasPassword]
} // }
} // }
//
buildTypes { // buildTypes {
debug { // debug {
signingConfig signingConfigs.config // signingConfig signingConfigs.config
} // }
release { // release {
signingConfig signingConfigs.config // signingConfig signingConfigs.config
} // }
} // }
} // }
} }
kapt { kapt {

View File

@ -53,6 +53,7 @@ ext {
'compile-sdk' : 29, 'compile-sdk' : 29,
'target-sdk' : 29, 'target-sdk' : 29,
'min-sdk' : 16, 'min-sdk' : 16,
'ndk-version' : '21.4.7075529',
'push-aar-gradle': 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle' 'push-aar-gradle': 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
] ]