Skip to content

Instantly share code, notes, and snippets.

@gabrielbmoro
Created May 29, 2022 20:27
Show Gist options
  • Save gabrielbmoro/c2c696a877ceab120f8daf3170ce29ed to your computer and use it in GitHub Desktop.
Save gabrielbmoro/c2c696a877ceab120f8daf3170ce29ed to your computer and use it in GitHub Desktop.
Exposing Gradle properties
android {
compileSdk 31
defaultConfig {
applicationId "com.matematicasimples"
minSdk 23
targetSdk 30
versionCode getVersionCode()
versionName getVersionName()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
Properties keystoreProperties = loadProperties(rootProject)
resValue "string", "security_key", keystoreProperties['securityKey']
resValue "string", "security_transformation", keystoreProperties['securityTransformation']
resValue "string", "security_algorithm", keystoreProperties['securityAlgorithm']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment