-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (56 loc) · 2.56 KB
/
Makefile
File metadata and controls
65 lines (56 loc) · 2.56 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
TMP:=$(shell mktemp -d)
increment-version:
./scripts/increment-version.sh
increment-test-version:
./scripts/increment-version.sh --build
tx-push:
tx push -s -r andbible.play-store-main-description
tx push -s -r andbible.and-bible-stringsxml
tx push -s -r andbible.bibleview-js
tx-pull:
tx pull --force --all
cp app/src/main/res/values-zh/strings.xml app/src/main/res/values-zh-rTW/strings.xml
# Download language corrections to english (en_GB in transifex, mapped to en via transifex config)
tx pull -l en_GB --force --minimum-perc 1 -r andbible.and-bible-stringsxml
tx pull -l en_GB --force --minimum-perc 1 -r andbible.bibleview-js
tx pull -l en_GB --force --minimum-perc 1 -r andbible.play-store-main-description
rm play/description-translations/sr@latin.yml
python3 app/bibleview-js/src/lang/check.py
python3 play/compile_description.py
fastlane-supply:
# Remove languages unsupported by Google Play
mv fastlane/metadata/android/eo $(TMP)/
mv fastlane/metadata/android/yue $(TMP)/
mv fastlane/metadata/android/my-MM $(TMP)/ # description too long, update manually
#mv fastlane/metadata/android/uz $(TMP)/
fastlane supply || true
mv $(TMP)/* fastlane/metadata/android/
rmdir $(TMP)
test:
ls $(TMP)
echo $(TMP)
echo $(TMP)
ls $(TMP)
instrumented-tests:
./gradlew emulatorStandardGoogleplayDebugAndroidTest
fdroid-release:
@VERSION_NAME=$$(grep -o 'android:versionName="[^"]*"' app/src/main/AndroidManifest.xml | grep -o '"[^"]*"' | tr -d '"'); \
TAG="v$$VERSION_NAME-fdroid"; \
echo "Creating F-Droid tag: $$TAG"; \
git tag -s "$$TAG" -m "F-Droid release $$VERSION_NAME"; \
echo "Pushing tag to GitHub..."; \
git push origin "$$TAG"; \
echo "Done: $$TAG"
accrescent:
@echo "Building Accrescent APK set (signing via keystore.properties.gpg)..."
./gradlew buildApksStandardAccrescentRelease
@mkdir -p app/standardAccrescent/release
@cp app/build/outputs/apkset/standardAccrescentRelease/app-standardAccrescentRelease.apks app/standardAccrescent/release/
@echo "✓ APK set: app/standardAccrescent/release/app-standardAccrescentRelease.apks"
accrescent-debug:
@echo "Building Accrescent Debug APK set (signing via keystore.properties.gpg)..."
./gradlew buildApksStandardAccrescentDebug
@mkdir -p app/standardAccrescent/debug
@cp app/build/outputs/apkset/standardAccrescentDebug/app-standardAccrescentDebug.apks app/standardAccrescent/debug/
@echo "✓ APK set: app/standardAccrescent/debug/app-standardAccrescentDebug.apks"
.PHONY: increment-version increment-test-version tx-push tx-pull fastlane-supply test instrumented-tests fdroid-release accrescent accrescent-debug