-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (58 loc) · 2.05 KB
/
Makefile
File metadata and controls
80 lines (58 loc) · 2.05 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
SHELL=/bin/bash
VERSION := $(shell grep -Po '^version=\K.*' gradle.properties)
update-dependencies:
@./gradlew versionCatalogUpdate
update-gradle:
@./gradlew wrapper --gradle-version latest
# ==============
# Development
# ==============
format:
@./gradlew ktlintFormat
compose-compiler-reports:
@echo ./gradlew assembleRelease -PcomposeCompilerReports=true
generate-proto:
@./gradlew generateDebugProto
generate-module-graph:
@./gradlew generateModulesGraphvizText --no-configure-on-demand -Pmodules.graph.output.gv=all_modules
@dot -Tsvg all_modules -o module-graph.svg
@mv module-graph.svg docs/
@rm all_modules
take-screenshot:
@adb shell screencap -p /sdcard/Pictures/screenshot1.png
take-screenshot-and-expand-status-bar:
@adb shell screencap -p /sdcard/Pictures/screenshot.png
@adb shell cmd statusbar expand-notifications
download-gif:
@adb shell curl -L -o /storage/emulated/0/Download/image.gif "https://ssb.wiki.gallery/images/6/68/Reverse_aerial_rush_SSB4.gif"
run-with-navigator-start:
@./gradlew installDebug
@adb shell am force-stop com.w2sv.filenavigator
@adb shell am start -n com.w2sv.filenavigator/.ui.MainActivity -a com.w2sv.filenavigator.START_NAVIGATOR
# ==============
# Building
# ==============
baseline-profile:
@echo "Generate baseline profile"
@./gradlew :app:generateReleaseBaselineProfile --console verbose
build-aab:
@echo "Build AAB"
@./gradlew :app:bundleRelease --console verbose
build-apk:
@echo "Build APK"
@./gradlew assembleRelease --console verbose
# ==============
# Publishing
# ==============
build-and-publish-to-test-track:
@./gradlew clean # Required as 'publishBundle' publishes all .aab's in specified archive dir
@$(MAKE) build-aab
@echo "Publish Bundle"
@./gradlew publishBundle --track internal --console verbose
build-and-publish-bundle:
@./gradlew clean # Required as 'publishBundle' publishes all .aab's in specified archive dir
@$(MAKE) build-aab
@echo "Publish Bundle"
@./gradlew publishBundle --track production --console verbose
publish-listing:
@./gradlew publishListing --console verbose