-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathjustfile
68 lines (48 loc) · 1.59 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export WALLET_CORE_VERSION := "4.1.19"
list:
just --list
bootstrap: install-rust install-toolchains install-ndk install-wallet-core
install-rust:
@echo Install Rust
just core install-rust
install-toolchains:
@echo Install toolchains for uniffi
just core gemstone install-android-targets
install-typeshare:
@echo "==> Install typeshare-cli"
just core install-typeshare
install-ndk:
just core gemstone install-ndk
install-wallet-core:
@echo "==> Download wallet-core"
@./scripts/download-wallet-core.sh {{WALLET_CORE_VERSION}}
build-test:
@./gradlew assembleGoogleDebugAndroidTest --build-cache
test:
@./gradlew connectedGoogleDebugAndroidTest
unsigned-release:
SKIP_SIGN=true ./gradlew :app:bundleGoogleRelease
extract-universal-apk:
@./scripts/extract_aab_apk.sh
release:
@./gradlew clean :app:bundleGoogleRelease assembleUniversalRelease assembleHuaweiRelease assembleSolanaRelease
localize:
@scripts/localize.sh android
generate: generate-models
generate-models: install-typeshare
@echo "==> Generate typeshare for Android"
@cd core && cargo run --package generate --bin generate android ../gemcore/src/main/java/com/wallet/core
build-base-image:
docker build -t gem-android-base -f Dockerfile.base . &> build.base.log
TAG := env("TAG", "main")
BUILD_MODE := env("BUILD_MODE", "")
build-app:
docker build --build-arg TAG={{TAG}} \
--build-arg BUILD_MODE={{BUILD_MODE}} \
--progress=plain \
-m 16g \
-t gem-android-app \
-f Dockerfile.app . &> build.app.log
core-upgrade:
@git submodule update --recursive --remote
mod core