1- # Bitkit Android
1+ # Bitkit Android (Native)
22
3- Bitkit Android Native app.
3+ > [ !CAUTION]
4+ > ⚠️This ** NOT** the repository of the Bitkit app from the app stores!
5+ > The Bitkit app repository is here: ** [ github.com/synonymdev/bitkit] ( https://github.com/synonymdev/bitkit ) **
6+
7+ ---
8+
9+ ## About
10+
11+ This repository contains a ** new native Android app** which is ** not ready for production** .
412
513## Prerequisites
614
7151 . Download ` google-services.json ` to ` ./app ` from FCM Console
8- 2 . Run Polar with the default initial network
916
10- ## Dev Tips
17+ ## Development
1118
12- - To communicate from host to emulator use:
13- ` 127.0.0.1 ` and setup port forwarding via ADB, eg. ` adb forward tcp:9777 tcp:9777 `
14- - To communicate from emulator to host use:
15- ` 10.0.2.2 ` instead of ` localhost `
19+ ### References
20+
21+ - For LNURL dev testing see [ bitkit-docker] ( https://github.com/ovitrif/bitkit-docker )
1622
1723### Linting
1824
19- This project uses detekt with default ktlint and compose-rules for linting Kotlin and Compose code.
25+ This project uses detekt with default ktlint and compose-rules for android code linting .
2026
2127Recommended Android Studio plugins:
2228- EditorConfig
@@ -28,29 +34,32 @@ Recommended Android Studio plugins:
2834./gradlew detekt # run analysis + formatting check
2935./gradlew detekt --auto-correct # auto-fix formatting issues
3036```
31- Lint reports are generated in: ` app/build/reports/detekt/ ` .
37+ Reports are generated in: ` app/build/reports/detekt/ ` .
3238
3339## Localization
3440See repo: https://github.com/synonymdev/bitkit-transifex-sync
3541
36- ## Bitcoin Networks
42+ ## Build
43+
44+ ### Bitcoin Networks
3745The build config supports building 3 different apps for the 3 bitcoin networks (mainnet, testnet, regtest) via the 3 build flavors:
38- - dev flavour = regtest
39- - mainnet flavour = mainnet
40- - tnet flavour = testnet
46+ - ` dev ` flavour = regtest
47+ - ` mainnet ` flavour = mainnet
48+ - ` tnet ` flavour = testnet
4149
42- ## Build for Release
50+ ### Build for Release
4351
4452** Prerequisite** : setup the signing config:
45- - Add the keystore file to root, eg. ` ./release.keystore `
46- - Add ` keystore.properties ` to root of the project (see ` keystore.properties.template ` )
53+ - Add the keystore file to root dir (i.e. ` ./release.keystore ` )
54+ - Setup ` keystore.properties ` file in root dir (` cp keystore.properties.template keystore.properties ` )
55+
56+ #### Routine:
4757
48- ### Routine:
4958Increment ` versionCode ` and ` versionName ` in ` app/build.gradle.kts ` , then run:
5059``` sh
5160./gradlew assembleDevRelease
5261# ./gradlew assembleRelease # for all flavors
5362```
5463
55- APK is generated in ` app/build/outputs/apk/_flavor_/release ` . (_ flavor_ can be any of 'dev', 'mainnet', 'tnet').
64+ APK is generated in ` app/build/outputs/apk/_flavor_/release ` . (` _flavor_ ` can be any of 'dev', 'mainnet', 'tnet').
5665Example for dev: ` app/build/outputs/apk/dev/release `
0 commit comments