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

3
.gitignore vendored
View file

@ -57,3 +57,6 @@ google-services.json
# Android Profiling
*.hprof
# Gradle properties file (contains sensitive credentials)
gradle.properties

View file

@ -17,10 +17,22 @@ android {
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 {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}

View file

@ -21,3 +21,10 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
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