forked from gemwalletcom/gem-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
126 lines (98 loc) · 3.18 KB
/
justfile
File metadata and controls
126 lines (98 loc) · 3.18 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
XCBEAUTIFY_ARGS := ""
SIMULATOR_DEST := "platform=iOS Simulator,name=iPhone 16"
xcbeautify:
@xcbeautify {{XCBEAUTIFY_ARGS}}
list:
just --list
bootstrap: install generate-stone
@echo "<== Bootstrap done."
install: install-rust install-typeshare install-toolchains install-swifttools
install-rust:
just core install-rust
install-typeshare:
@echo "==> Install typeshare-cli"
just core install-typeshare
install-toolchains:
@echo "==> Install toolchains for uniffi"
@cd core && just gemstone install-ios-targets
install-swifttools:
@echo "==> Install SwiftGen and SwiftFormat"
@brew install swiftgen swiftformat
download-wallet-core VERSION:
@echo "==> Install wallet-core {{VERSION}}"
curl -L https://github.com/trustwallet/wallet-core/releases/download/{{VERSION}}/Package.swift -o Packages/WalletCore/Package.swift
setup-git:
@echo "==> Setup git submodules"
@git submodule update --init --recursive
@git config submodule.recurse true
core-upgrade:
git submodule update --recursive --remote
spm-resolve-all:
sh scripts/spm-resolve-all.sh
build:
@set -o pipefail && xcodebuild -project Gem.xcodeproj \
-scheme Gem \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=YES \
-destination "{{SIMULATOR_DEST}}" \
build | xcbeautify
build-package PACKAGE:
@set -o pipefail && xcodebuild -project Gem.xcodeproj \
-scheme {{PACKAGE}} \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=YES \
-destination "{{SIMULATOR_DEST}}" \
build | xcbeautify
test_all:
@set -o pipefail && xcodebuild -project Gem.xcodeproj \
-scheme Gem \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=YES \
-destination "{{SIMULATOR_DEST}}" \
-parallel-testing-enabled YES \
test | xcbeautify
test_ui:
@set -o pipefail && xcodebuild -project Gem.xcodeproj \
-scheme GemUITests \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=YES \
-destination "{{SIMULATOR_DEST}}" \
-allowProvisioningUpdates \
-allowProvisioningDeviceRegistration \
test | xcbeautify
test TARGET:
@set -o pipefail && xcodebuild -project Gem.xcodeproj \
-scheme Gem \
-sdk iphonesimulator \
ONLY_ACTIVE_ARCH=YES \
-destination "{{SIMULATOR_DEST}}" \
-only-testing {{TARGET}} \
-parallel-testing-enabled YES \
test | xcbeautify
localize:
@sh core/scripts/localize.sh ios Packages/Localization/Sources/Resources
just generate-model
just generate-swiftgen
generate: generate-model generate-swiftgen
generate-model:
@echo "==> Generate typeshare for iOS"
@cd core && cargo run --package generate --bin generate ios ../Packages
generate-swiftgen:
@echo "==> SwiftGen assets and Localizable.strings"
@swiftgen config run --quiet
export BUILD_MODE := env_var_or_default("BUILD_MODE","")
generate-stone:
@./scripts/generate-stone.sh $BUILD_MODE
install-uml-tools:
brew install swiftplantuml plantuml
uml-app:
just uml .
uml PATH:
#!/usr/bin/env bash
cd {{ PATH }}
swiftplantuml --output consoleOnly > sources.txt
PLANTUML_LIMIT_SIZE=16384 plantuml sources.txt && open sources.png
rm sources.cmapx
bump-version:
@sh ./scripts/bump-version-and-commit.sh patch
mod core