Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use smallest possible manifest, use DSA keystore with keysize=512
- Loading branch information
Showing
7 changed files
with
31 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/build/ |
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
Binary file not shown.
Empty file.
Binary file not shown.
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,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
rm -rf build | ||
mkdir -p build/apk | ||
|
||
set -x | ||
|
||
#TODO ensure that ANDROID_HOME is set | ||
|
||
echo "Creating base AndroidManifest.xml" | ||
$ANDROID_HOME/build-tools/26.0.2/aapt p -M app/AndroidManifest.xml -I $ANDROID_HOME/platforms/android-26/android.jar -f -F build/base.apk | ||
unzip build/base.apk -d build/apk | ||
|
||
echo "Creating empty classes.dex" | ||
touch build/apk/classes.dex | ||
|
||
echo "Creating unsigned archive" | ||
zip -j -r build/app-unsigned.apk build/apk | ||
|
||
KEYSTORE_PASS=android $ANDROID_HOME/build-tools/26.0.2/apksigner sign --v1-signing-enabled false --ks app/keystore.jks --out build/signed-release.apk --ks-pass env:KEYSTORE_PASS --ks-key-alias android build/app-unsigned.apk | ||
|
||
set +x | ||
|
||
echo | ||
echo | ||
echo | ||
echo "#######################################" | ||
echo "RESULTING APK SIZE: $(stat -f '%z' build/signed-release.apk)" | ||
|
Binary file not shown.