#!/bin/bash
#
# Script that builds Android release apk
#
# Make shell script executable:
#   chmod u+x build-android-release.sh
# Create a signing key
#   keytool -genkey -v -keystore evothings.keystore -alias evothings_alias -keyalg RSA -keysize 2048 -validity 365000
#
echo "Building Android release APK"
cordova build android --release
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk evothings_alias
jarsigner -verify -verbose platforms/android/build/outputs/apk/android-release-unsigned.apk
zipalign -v 4 platforms/android/build/outputs/apk/android-release-unsigned.apk ./EvothingsViewer.apk

#!/bin/bash
#
# Script that builds Android release apk
#
# Make shell script executable:
#   chmod u+x build-android-release.sh
# Create a signing key
#   keytool -genkey -v -keystore evothings.keystore -alias evothings_alias -keyalg RSA -keysize 2048 -validity 365000
#
echo "Building Android release APK"
cordova build android --release
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk evothings_alias
jarsigner -verify -verbose platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk
zipalign -v 4 platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk ./EvothingsViewer.apk

Fix for new paths in Cordova 8
Fix for new paths in Cordova 8
