-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
40 lines (29 loc) · 1.34 KB
/
Makefile
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
SHELL=/bin/bash
# ==============
# Publishing
# ==============
VERSION := $(shell ./gradlew properties -q | grep "version:" | cut -d " " -f2)
publish-listing:
@./gradlew publishListing --console verbose
build-and-publish-to-test-track:
@echo -e "Retrieved Version: ${VERSION}\nHit enter to continue"
@read
@echo "Clean" # Required as 'publishBundle' publishes all .aab's in specified archive dir
@./gradlew clean
@echo "Build AAB"
@./gradlew :app:bundleRelease --console verbose
@echo "Publish Bundle"
@./gradlew publishBundle --artifact-dir app/build/outputs/bundle/release --track internal --console verbose
build-and-publish:
@echo -e "Retrieved Version: ${VERSION}\n\n Hit enter if you have\n 1. Incremented the version\n 2. Updated the release notes\n 3. Pushed the latest changes\n\n Otherwise cancel target now."
@read
@echo "Clean" # Required as 'publishBundle' publishes all .aab's in specified archive dir
@./gradlew clean
@echo "Build APK"
@./gradlew assembleRelease --console verbose
@echo "Build AAB"
@./gradlew :app:bundleRelease --console verbose
@echo "Create GitHub Release"
@gh release create $(VERSION) app/build/outputs/apk/release/$(VERSION).apk -F app/src/main/play/release-notes/en-US/production.txt
@echo "Publish Bundle"
@./gradlew publishBundle --artifact-dir app/build/outputs/bundle/release --console verbose