forked from mapbox/mapbox-navigation-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
134 lines (109 loc) · 4.57 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
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
127
128
129
130
131
132
133
134
CORE_MODULES = \
libdirections-offboard \
libdirections-hybrid \
libdirections-onboard \
libnavigation-base \
libnavigation-metrics \
libnavigation-util \
libnavigator \
libtrip-notification \
libnavigation-core \
UI_MODULES = \
libnavigation-ui \
define run-gradle-tasks
for module in $(1) ; do \
./gradlew $$module:$(2) ; \
done
endef
.PHONY: check
check:
$(call run-gradle-tasks,$(CORE_MODULES),ktlint) \
&& $(call run-gradle-tasks,$(CORE_MODULES),checkstyle)
.PHONY: license-verification
license-verification:
python ./scripts/validate-license.py
.PHONY: license
license:
./gradlew licenseReleaseReport
python ./scripts/generate-license.py
.PHONY: javadoc-dokka
javadoc-dokka:
$(call run-gradle-tasks,$(CORE_MODULES),dokka)
$(call run-gradle-tasks,$(UI_MODULES),dokka)
.PHONY: dependency-graphs
dependency-graphs:
$(call run-gradle-tasks,$(CORE_MODULES),generateDependencyGraphMapboxLibraries) \
&& $(call run-gradle-tasks,$(UI_MODULES),generateDependencyGraphMapboxLibraries)
.PHONY: dependency-updates
dependency-updates:
$(call run-gradle-tasks,$(CORE_MODULES),dependencyUpdates) \
&& $(call run-gradle-tasks,$(UI_MODULES),dependencyUpdates)
.PHONY: dex-count
dex-count:
./gradlew countDebugDexMethods
./gradlew countReleaseDexMethods
.PHONY: core-publish-local
core-publish-local:
$(call run-gradle-tasks,$(CORE_MODULES),publishToMavenLocal)
.PHONY: ui-publish-local
ui-publish-local:
$(call run-gradle-tasks,$(UI_MODULES),publishToMavenLocal)
.PHONY: build-core-debug
build-core-debug:
$(call run-gradle-tasks,$(CORE_MODULES),assembleDebug)
.PHONY: build-core-release
build-core-release:
$(call run-gradle-tasks,$(CORE_MODULES),assembleRelease)
.PHONY: core-unit-tests
core-unit-tests:
$(call run-gradle-tasks,$(CORE_MODULES),test)
.PHONY: core-publish-to-sdk-registry
core-publish-to-sdk-registry:
$(call run-gradle-tasks,$(CORE_MODULES),mapboxSDKRegistryUpload)
.PHONY: core-dependency-graph
core-dependency-graph:
$(call run-gradle-tasks,$(CORE_MODULES),generateDependencyGraphMapboxLibraries)
.PHONY: core-check-api
core-check-api:
./gradlew :libdirections-offboard:checkApi -PhidePackage=com.mapbox.navigation.route.offboard.internal
./gradlew :libdirections-hybrid:checkApi -PhidePackage=com.mapbox.navigation.route.hybrid.internal
./gradlew :libdirections-onboard:checkApi -PhidePackage=com.mapbox.navigation.route.onboard.internal
./gradlew :libnavigation-base:checkApi -PhidePackage=com.mapbox.navigation.base.internal
./gradlew :libnavigation-metrics:checkApi -PhidePackage=com.mapbox.navigation.metrics.internal
./gradlew :libnavigation-util:checkApi -PhidePackage=com.mapbox.navigation.utils.internal
./gradlew :libnavigator:checkApi -PhidePackage=com.mapbox.navigation.navigator.internal
./gradlew :libtrip-notification:checkApi -PhidePackage=com.mapbox.navigation.trip.notification.internal
./gradlew :libnavigation-core:checkApi -PhidePackage=com.mapbox.navigation.core.internal
.PHONY: core-update-api
core-update-api:
./gradlew :libdirections-offboard:updateApi -PhidePackage=com.mapbox.navigation.route.offboard.internal
./gradlew :libdirections-hybrid:updateApi -PhidePackage=com.mapbox.navigation.route.hybrid.internal
./gradlew :libdirections-onboard:updateApi -PhidePackage=com.mapbox.navigation.route.onboard.internal
./gradlew :libnavigation-base:updateApi -PhidePackage=com.mapbox.navigation.base.internal
./gradlew :libnavigation-metrics:updateApi -PhidePackage=com.mapbox.navigation.metrics.internal
./gradlew :libnavigation-util:updateApi -PhidePackage=com.mapbox.navigation.utils.internal
./gradlew :libnavigator:updateApi -PhidePackage=com.mapbox.navigation.navigator.internal
./gradlew :libtrip-notification:updateApi -PhidePackage=com.mapbox.navigation.trip.notification.internal
./gradlew :libnavigation-core:updateApi -PhidePackage=com.mapbox.navigation.core.internal
.PHONY: build-ui-debug
build-ui-debug:
$(call run-gradle-tasks,$(UI_MODULES),assembleDebug)
.PHONY: build-ui-release
build-ui-release:
$(call run-gradle-tasks,$(UI_MODULES),assembleRelease)
.PHONY: ui-unit-tests
ui-unit-tests:
$(call run-gradle-tasks,$(UI_MODULES),test)
.PHONY: ui-publish-to-sdk-registry
ui-publish-to-sdk-registry:
$(call run-gradle-tasks,$(UI_MODULES),mapboxSDKRegistryUpload)
.PHONY: ui-check-api
ui-check-api:
# TODO Remove -PhideId=ReferencesHidden after fixing errors
./gradlew :libnavigation-ui:checkApi -PhidePackage=com.mapbox.navigation.ui.internal -PhideId=ReferencesHidden
.PHONY: ui-update-api
ui-update-api:
./gradlew :libnavigation-ui:updateApi -PhidePackage=com.mapbox.navigation.ui.internal
.PHONY: update-metalava
update-metalava:
sh ./scripts/update_metalava.sh