forked from seedvault-app/seedvault
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android.mk: Download prebuilt apk instead of building it
* With the upcoming changes, and the increasing number of external libraries being used, plus the usage of Kotlin, it's getting harder and harder to build this with the AOSP build system. * It's best to leverage the existing gradle build system instead, and use the apk that builds. * Add a script which downloads the apk matching the tag if a tag is checked out, otherwise downloads the latest.
- Loading branch information
1 parent
d41ad38
commit 6136f58
Showing
5 changed files
with
27 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,7 @@ gradle-app.setting | |
.DS_Store | ||
|
||
## Android | ||
gen/ | ||
gen/ | ||
|
||
## Prebuilt | ||
Backup.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# | ||
# Script to download apk from github releases | ||
|
||
BASE_URL="https://github.com/stevesoltys/backup/releases" | ||
APK="app-release-unsigned.apk" | ||
VERSION="latest/download" | ||
TAG=$(git tag -l --points-at HEAD) | ||
|
||
if [ ! -z ${TAG} ]; then | ||
VERSION="download/${TAG}" | ||
fi | ||
|
||
curl -L ${BASE_URL}/${VERSION}/${APK} > Backup.apk |
File renamed without changes.
File renamed without changes.