- Acquire Lokalise credentials (you can find them in 1Password), place in the following file:
lokalise.properties
- Acquire gradle.properties which contain a token for Github Packages authentication.
Generate your own at GitHub > Settings > Developer Settings > PAT > Tokens (Classic) > Generate New Token > Give the read:packages permission
Append (or create) your global gradle.properties in:~/.gradle/gradle.properties
Look inside ci-github-packages-properties for inspiration.
- Download the schema (required to consume any changes in schema as well):
./gradlew downloadOctopusApolloSchemaFromIntrospection
- Download lokalise translations (required to consume latest translations as well):
./gradlew downloadStrings
- Build and install via Android Studio
Formatting is handled with ktlint with extra configuration defined in .editorconfig
run ./gradlew ktlintCheck
to check that the files follow the rules
run ./gradlew ktlintFormat
to make ktlint to format all files according to the rules
- Release:
com.hedvig.app
Build for the customer on Play Store. Using production backend - Staging:
com.hedvig.test.app
Build for internal testing using Firebase App Distribution. Using staging backend - Develop:
com.hedvig.dev.app
Build for development. Using staging backend
Generated from ./gradlew :generateProjectDependencyGraph
*
*Note that this requires dot
from graphviz to be on your path. Run brew install graphviz
renovate.json
is a file which Renovate looks at in order to be able to suggest upgrading private artifacts to their latest version.
The username
used in there is the result of passing our jitpack username (from 1Password) through Renovate's website to get the hashed version of it.
The android-remove-unused-resources-plugin
plugin is used to achieve this. This will run on CI using this task, but to run locally one can also just do
./gradlew :app:lintDebug -Prur.lint.onlyUnusedResources
And then
./gradlew :app:removeUnusedResourcesDebug