Skip to content

Commit

Permalink
Fix: Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
titi0267 committed Feb 17, 2024
1 parent bddf1df commit d176361
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ def myAppUploadStorePassword = System.getenv("MYAPP_UPLOAD_STORE_PASSWORD")
def myAppUploadKeyAlias = System.getenv("MYAPP_UPLOAD_KEY_ALIAS")
def myAppUploadKeyPassword = System.getenv("MYAPP_UPLOAD_KEY_PASSWORD")

task readPackageJson {
doLast {
def packageJson = new groovy.json.JsonSlurper().parseText(file('package.json').text)
project.ext {
versionFromPackageJson = packageJson.version
versionCodeFromPackageJson = packageJson.versionCode
}
}
}

preBuild.dependsOn readPackageJson

version = project.versionFromPackageJson
versionCode = project.versionCodeFromPackageJson

android {
ndkVersion rootProject.ext.ndkVersion

Expand All @@ -103,8 +118,8 @@ android {
applicationId "com.opticarbu"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 6
versionName "0.0.1"
versionCode versionCode
versionName version
}
aaptOptions {
cruncherEnabled = false
Expand All @@ -119,25 +134,23 @@ android {
}
}
signingConfigs {
// debug {
// storeFile file('debug.keystore')
// storePassword 'android'
// keyAlias 'androiddebugkey'
// keyPassword 'android'
// }
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
// if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(myAppUploadStoreFile)
storePassword myAppUploadStorePassword
keyAlias myAppUploadKeyAlias
keyPassword myAppUploadKeyPassword
// }
}
}
buildTypes {
// debug {
// signingConfig signingConfigs.debug
// }
debug {
signingConfig signingConfigs.debug
}
release {
ndk {
debugSymbolLevel 'FULL'
Expand Down

0 comments on commit d176361

Please sign in to comment.