-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mobile): signing and prep for android production APK (#1265)
* Android Production APK * Update build.gradle * Update gitignore
- Loading branch information
Showing
2 changed files
with
41 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -54,10 +54,37 @@ jobs: | |
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
|
||
- name: Decode Keystore | ||
id: decode_keystore | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: 'keystore.jks' | ||
fileDir: './' | ||
encodedString: ${{ secrets.KEYSTORE }} | ||
|
||
- name: 'Build Android Release' | ||
run: | | ||
cd mobile/android | ||
./gradlew assembleRelease | ||
env: | ||
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | ||
KEY_PASS: ${{ secrets.KEY_PASS }} | ||
KEY_STORE_PASS: ${{ secrets.KEY_STORE_PASS }} | ||
|
||
|
||
- name: 'Check for non-FOSS libraries' | ||
run: | | ||
wget https://github.com/iBotPeaches/Apktool/releases/download/v2.7.0/apktool_2.7.0.jar | ||
wget https://github.com/iBotPeaches/Apktool/raw/master/scripts/linux/apktool | ||
# clone the repo | ||
git clone https://gitlab.com/IzzyOnDroid/repo.git | ||
# create a directory for Apktool and move the apktool* files there | ||
mkdir -p repo/lib/radar/tool | ||
mv apktool* repo/lib/radar/tool | ||
# create an alias for ease of use | ||
chmod u+x repo/lib/radar/tool/apktool | ||
mv repo/lib/radar/tool/apktool_2.7.0.jar repo/lib/radar/tool/apktool.jar | ||
repo/bin/scanapk.php mobile/android/app/build/outputs/apk/release/app-universal-release.apk | ||
- name: 'Get Commit Hash' | ||
id: commit | ||
|
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