This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
forked from mapbox/mapbox-plugins-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (46 loc) · 1.41 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
MBGL_ANDROID_PLUGINS += traffic;plugin-traffic
MBGL_ANDROID_PLUGINS += locationlayer;plugin-locationlayer
MBGL_ANDROID_PLUGINS += building;plugin-building
MBGL_ANDROID_PLUGINS += offline;plugin-offline
MBGL_ANDROID_PLUGINS += places;plugin-places
MBGL_ANDROID_PLUGINS += localization;plugin-localization
MBGL_ANDROID_PLUGINS += scalebar;plugin-scalebar
checkstyle:
./gradlew checkstyle && ./gradlew ktlintCheck
kotlin-lint:
./gradlew ktlintCheck
test:
./gradlew test --info
build-release:
./gradlew assembleRelease
javadoc:
# Android modules
# Output is ./mapbox/*/build/docs/javadoc/release
./gradlew javadocrelease
# Uploads the compiled Android SDK to Mapbox SDK Registry
publish:
./gradlew mapboxSDKRegistryUpload
generate-sanity-test:
npm install && node scripts/generate-activity-test.js
generate-annotation-code:
npm install && node plugin-annotation/scripts/code-gen.js
#
# individual Make commands
#
define ANDROID_RULES
test-$1:
./gradlew :$2:test
build-release-$1:
./gradlew :$2:assembleRelease
javadoc-$1:
# Android modules
# Output is ./mapbox/*/build/docs/javadoc/release
./gradlew :$2:javadocrelease
publish-$1:
./gradlew :$2:mapboxSDKRegistryUpload
endef
# Explodes the arguments into individual variables
define ANDROID_RULES_INVOKER
$(call ANDROID_RULES,$(word 1,$1),$(word 2,$1))
endef
$(foreach plugin,$(MBGL_ANDROID_PLUGINS),$(eval $(call ANDROID_RULES_INVOKER,$(subst ;, ,$(plugin)))))