Skip to content

Commit 8dd1e29

Browse files
committed
Build APKs & publish to GH releases
1 parent ef06747 commit 8dd1e29

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.travis.yml

+19-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
language: android
22
dist: trusty
3-
43
android:
54
components:
6-
- build-tools-29.0.2
7-
- android-28
8-
5+
- build-tools-29.0.2
6+
- android-28
97
before_install:
10-
- >-
11-
openssl aes-256-cbc -K $encrypted_410c058128c0_key -iv $encrypted_410c058128c0_iv
12-
-in android-travis-cert-store.enc -out ./android-travis-cert-store -d
13-
14-
script: ./gradlew build
8+
- openssl aes-256-cbc -K $encrypted_410c058128c0_key -iv $encrypted_410c058128c0_iv
9+
-in android-travis-cert-store.enc -out ./android-travis-cert-store.jks -d
10+
script:
11+
- "./gradlew assembleRelease"
12+
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -storepass $CERT_STORE_PWD
13+
-keypass $CERT_STORE_PWD -keystore ./android-travis-cert-store.jks app/build/outputs/apk/release/app-release-unsigned.apk
14+
$CERT_ALIAS
15+
- ${ANDROID_HOME}/build-tools/29.0.2/zipalign -v 4 app/build/outputs/apk/release/app-release-unsigned.apk ./httptoolkit.apk
16+
deploy:
17+
provider: releases
18+
api_key:
19+
secure: lV7UPfExRDViQ3nYxKfWuHktGkI4LlU3GYGAnKJTx0V1wqPcO5HJUKJNB6Ij2k+72owV+DLWAllSu0umNZZKTmQCuvFOTcJ66td+5An71mPJG6/gkfYKrNEXmweiRcmaiu+5y2KRKDcRunLF5MmelBgOUeLeV0CZlQ/2jbagHy5DY/JHcJVlFzWkyDfbUPkttnv7GClQMkQSyjMStqO6pcjRNXpuzpJCZ8jVXIBgBaOW8Ka9dKAyaHLf6sOTbUcY9emdWbkzX1WjucG4krUGZsEG6yNIwtq8nytNJaalBMjwXzFMmFHr4S2M89wo3ukhSmrXN6+PmeN03BO3fKZKucp872FB/sIDlKw7deXfqfSY2qcgq0nAQKY+kyxl9MIZr1UiEOy5C/cLUj4Oyv7clw+dfkkt0SIOL5+e77yv5kbUL0Tin8FnR+TE9y950B4MT3yn8tbatCVNM3boiaqrjMU69xuyHqCg+PsZf/lfX6k64oe1448x9nbZxUFb1/ik4Y0urF5mSzmrRcJh19Fhh0se8d8+alBHAuRkaTNTA96Uxymysvxf93S6ycykg06QuYIG9vinkmDjBX1zu4zCoIhwnMhapiX1xWxgeJn0MoYw9WFd88sdsIu8enEibIxRpJfdloBxvOBrKKHPXwQApMxGArtcEFqM/qWnB7IWhqU=
20+
file: "./httptoolkit.apk"
21+
skip_cleanup: true
22+
on:
23+
tags: true
24+
repo: httptoolkit/httptoolkit-android

0 commit comments

Comments
 (0)