Enhance: Add gradle.properties for keystore configuration and update .gitignore to include gradle.properties and hprof files

This commit is contained in:
cmclark00 2025-04-01 16:12:08 -04:00
parent 2edac3138c
commit c1da5ba20f
4 changed files with 24 additions and 2 deletions

5
.gitignore vendored
View file

@ -56,4 +56,7 @@ vcs.xml
google-services.json google-services.json
# Android Profiling # Android Profiling
*.hprof *.hprof
# Gradle properties file (contains sensitive credentials)
gradle.properties

View file

@ -17,10 +17,22 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
signingConfigs {
release {
if (project.hasProperty('RELEASE_STORE_FILE')) {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_STORE_PASSWORD
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
}
buildTypes { buildTypes {
release { release {
minifyEnabled true minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
} }
} }

View file

@ -20,4 +20,11 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the # Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies, # resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library # thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true android.nonTransitiveRClass=true
# Keystore Properties
# WARNING: Make sure this file is added to .gitignore
RELEASE_STORE_FILE=../../pixelmint-release-key.jks
RELEASE_STORE_PASSWORD=Star.Bucks1505
RELEASE_KEY_ALIAS=dropkey
RELEASE_KEY_PASSWORD=Star.Bucks1505