forked from adobe/aepsdk-core-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (28 loc) · 1.31 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
BRANCH_VERSION=$(shell git rev-parse --abbrev-ref HEAD | sed "s/dev-v//g")
# BRANCH_VERSION=1.10.0
update-version:
echo $(BRANCH_VERSION)
sed -i '' "s/[0-9]*\.[0-9]*\.[0-9]/$(BRANCH_VERSION)/g" ./android-core-library/src/phone/java/com/adobe/marketing/mobile/ExtensionVersionManager.java
sed -i '' "s/\(coreExtensionVersion=\)[0-9]*\.[0-9]*\.[0-9]/\1$(BRANCH_VERSION)/g" ./gradle.properties
sed -i '' "s/\(mavenCoreVersion=\)[0-9]*\.[0-9]*\.[0-9]/\1$(BRANCH_VERSION)/g" ./gradle.properties
sed -i '' "s/\(coreLibraryMavenRootVersion=\)[0-9]*\.[0-9]*\.[0-9]/\1$(BRANCH_VERSION)/g" ./gradle.properties
setup:
(mkdir -p ci)
clean:
(rm -rf ci)
(./code/gradlew clean)
checkstyle:
(./code/gradlew -p code/android-core-library checkstyle)
assemble-phone:
(./code/gradlew -p code/android-core-library assemblePhone)
assemble-phone-release:
(./code/gradlew -p code/android-core-library assemblePhoneRelease)
unit-test:
(./code/gradlew -p code/android-core-library testPhoneDebugUnitTest)
functional-test:
(./code/gradlew -p code/android-core-library uninstallPhoneDebugAndroidTest)
(./code/gradlew -p code/android-core-library connectedPhoneDebugAndroidTest)
javadoc:
(./code/gradlew -p code/android-core-library Javadoc)
build-third-party-extension:
(./code/gradlew test-third-party-extension:build)