Skip to content

compscidr/hello-kotlin-android

Repository files navigation

hello-kotlin-android

Build Status  codecov  ktlint  License

When starting a new project, I always find getting the tools up and running quickly is a pain, so I wanted something for Kotlin which already had everything setup and working.

This aims to be a starter repo with all of the following tooling setup:

Codecov notes

Coverage is provided for:

  • Instrumented on-device android tests
  • JVM unit tests from the android app
  • JVM unit tests from the library They are each uploaded separately, as I had issues with the code cov action providing more than a single report at once. Codecov can handle the multiple uploads and merge them together anyhow.

Secrets

Secrets are passed in via local.properties or .env or via environment variables. There is an example in the GH workflows which shows how to pass in via local.properties and via environment variables. It will also work with a .env in the app directory.

Note about squashing

Do not do squash merges to the staging or production branches, or in the mergebacks to main, or there will be nothing but trouble. See the following for more details: https://github.com/orgs/community/discussions/10809

Staging release

https://github.com/compscidr/hello-kotlin-android/compare/staging...main

Production release

https://github.com/compscidr/hello-kotlin-android/compare/production...staging

Merge-backs

NOTE: the mergeback should be a merge commit, not a squash commit or will result in a diff when comparing branches later on.

Ideally you find no diff: https://github.com/compscidr/hello-kotlin-android/compare/main...production https://github.com/compscidr/hello-kotlin-android/compare/main...staging https://github.com/compscidr/hello-kotlin-android/compare/staging...production

TODO: