Skip to content

synonymdev/bitkit-android

Repository files navigation

Bitkit Android (Native)

Caution

⚠️This is NOT the repository of the Bitkit app from the app stores!
⚠️Work-in-progress
The Bitkit app repository is here: github.com/synonymdev/bitkit


About

This repository contains a new native Android app which is not ready for production.

Development

Prerequisites

  1. Download google-services.json to app/ from FCM Console.

References

Linting

This project uses detekt with default ktlint and compose-rules for android code linting.

Recommended Android Studio plugins:

  • EditorConfig
  • Detekt

Commands

./gradlew detekt # run analysis + formatting check
./gradlew detekt --auto-correct # auto-fix formatting issues

Reports are generated in: app/build/reports/detekt/.

Localization

See repo: https://github.com/synonymdev/bitkit-transifex-sync

Build

Bitcoin Networks

The build config supports building 3 different apps for the 3 bitcoin networks (mainnet, testnet, regtest) via the 3 build flavors:

  • dev flavour = regtest
  • mainnet flavour = mainnet
  • tnet flavour = testnet

Build for E2E Testing

Simply pass E2E=true as environment variable and build any flavor.

E2E=true ./gradlew assembleDevRelease

Build for Release

Prerequisites
Setup the signing config:

  • Add the keystore file to root dir (i.e. release.keystore)
  • Setup keystore.properties file in root dir (cp keystore.properties.template keystore.properties)

Routine

Increment versionCode and versionName in app/build.gradle.kts, then run:

./gradlew assembleDevRelease
# ./gradlew assembleRelease # for all flavors

APK is generated in app/build/outputs/apk/_flavor_/release. (_flavor_ can be any of 'dev', 'mainnet', 'tnet'). Example for dev: app/build/outputs/apk/dev/release

License

This project is licensed under the MIT License.
See the LICENSE file for more details.

About

⚠️ Not the Bitkit app source code. New Android app, not ready for production.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5