- on your first build, gradle will add
githook
pre-commit
so when you commit it will run./gradlew ktlintCheck
to check the stage files - you can manual run ktlint by
./gradlew ktlintCheck
- you can use auto-format by
./gradlew ktlintFormat
- (Temporary) we will only have 2 flavors for this project (Develop, Production)
- Everytime we
push
the code by mergingPull Request
tomain
branch, the workflow will triggered and createDevelop
build then distribute toFirebase
- Everytime we
push
the code by create a newtag
withv*
name pattern the workflow will triggered and createProduction
build then distribute toFirebase
This project is using https://github.com/klaxit/hidden-secrets-gradle-plugin plugin to keep secret
keys safe and accessible from ${Develop|uat|Production}.properties
,
- Update the keys in
${Develop|uat|Production}.properties
- Run below script to generate the keys as an NDK library or run
script/build-secrets-develop.sh
./gradlew hideSecretFromPropertiesFile -PpropertiesFileName=${Develop|uat|Production}.properties -Ppackage=com.kbank.dafund
- Now you can use the updated key using
Secrets().getNewSecretKey("com.kbank.dafund")
class that generated inside common module.
- Copy
${Develop|uat|Production}.properties
into the root of the folder - Run below command to generate all the required secret keys in the NDK library or
run
script/build-secrets-develop.sh
./gradlew hideSecretFromPropertiesFile -PpropertiesFileName=${Develop|uat|Production}.properties -Ppackage=com.kbank.dafund
- Run the project