-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 899 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 899 Bytes
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
VERSION := $(shell grep versionName app/build.gradle.kts | head -1 | sed 's/.*"\([0-9.]*\)".*/\1/')
KEYSTORE_PASSWORD ?= password
KEY_PASSWORD ?= password
.PHONY: debug release debug-rename release-rename install-debug install-release clean
debug:
./gradlew assembleDebug --no-daemon
release:
KEYSTORE_PASSWORD=$(KEYSTORE_PASSWORD) KEY_PASSWORD=$(KEY_PASSWORD) ./gradlew assembleRelease --no-daemon
release-rename: release
cp app/build/outputs/apk/release/app-release.apk yarrand-v$(VERSION).apk
@echo "✓ Release APK: yarrand-v$(VERSION).apk"
debug-rename: debug
cp app/build/outputs/apk/debug/app-debug.apk yarrand-v$(VERSION)-debug.apk
@echo "✓ Debug APK: yarrand-v$(VERSION)-debug.apk"
install-debug: debug-rename
adb install -r yarrand-v$(VERSION)-debug.apk
install-release: release-rename
adb install -r yarrand-v$(VERSION).apk
clean:
./gradlew clean
rm -f yarrand-v*.apk