Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
42 lines (35 loc) · 1.13 KB
/
Copy pathMakefile
File metadata and controls
42 lines (35 loc) · 1.13 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
.PHONY: clean build-debug build-release \
publish-snapshot-to-local-maven \
publish-snapshot-to-local-nexus test
GRADLE = ./gradlew
clean:
-rm -rf build
$(GRADLE) clean
test:
ANDROID_SERIAL=$(shell adb devices | tail -n +2 | awk '!/emulator/{print $$1}')\
$(GRADLE) :sqlcipher:connectedDebugAndroidTest
build-debug:
$(GRADLE) assembleDebug
build-release:
$(GRADLE) assembleRelease
publish-remote-release:
@ $(collect-signing-info)\
$(collect-nexus-info)\
$(GRADLE)\
-PpublishSnapshot=false \
-PpublishLocal=false \
-PdebugBuild=false \
-PsigningKeyId="$$gpgKeyId"\
-PsigningKeyRingFile="$$gpgKeyRingFile"\
-PsigningKeyPassword="$$gpgPassword"\
-PnexusUsername="$$nexusUsername"\
-PnexusPassword="$$nexusPassword"\
sqlcipher:publish
collect-signing-info := \
read -p "Enter GPG signing key id:" gpgKeyId; \
read -p "Enter full path to GPG keyring file \
(possibly ${HOME}/.gnupg/secring.gpg)" gpgKeyRingFile; stty -echo; \
read -p "Enter GPG password:" gpgPassword; stty echo;
collect-nexus-info := \
read -p "Enter Nexus username:" nexusUsername; \
stty -echo; read -p "Enter Nexus password:" nexusPassword; stty echo;