From 0b39769fc9d48ba3213a259e45acf20289261f33 Mon Sep 17 00:00:00 2001 From: fireneat Date: Fri, 7 Oct 2022 21:18:14 +0200 Subject: [PATCH] Increase targetSdk to 30 and use apksigner to support signature scheme v2. This also adds 64-bit support for the APK. --- android/build.gradle | 2 +- docs/building.md | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index d686b52c..de45bc1c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -70,7 +70,7 @@ android { defaultConfig { minSdkVersion 19 - targetSdkVersion 26 + targetSdkVersion 30 versionCode 22 versionName "1.52-dev" } diff --git a/docs/building.md b/docs/building.md index e056410d..0d203b2f 100644 --- a/docs/building.md +++ b/docs/building.md @@ -300,15 +300,15 @@ this by: 1. Creating a certificate, if you do not already have one: $ keytool -genkey -keystore [YOUR_CERTIFICATE] -alias [ALIAS] -keyalg RSA -storetype PKCS12 -2. Sign the package using your certificate: - - $ jarsigner -sigalg MD5withRSA -digestalg SHA1 \ - -keystore [YOUR_CERTIFICATE] \ - android/build/outputs/apk/release/espeak-release-unsigned.apk [ALIAS] -3. Align the apk using the zipalign tool. +2. Align the apk using the zipalign tool. $ zipalign 4 android/build/outputs/apk/release/espeak-release-unsigned.apk \ - android/build/outputs/apk/release/espeak-release-signed.apk + android/build/outputs/apk/release/espeak-release-zipalign.apk +3. Sign the package using your certificate: + + $ apksigner --ks [YOUR_CERTIFICATE] --ks-key-alias [ALIAS] \ + --out android/build/outputs/apk/release/espeak-release-signed.apk \ + android/build/outputs/apk/release/espeak-release-zipalign.apk ### Opening project in Android Studio @@ -333,4 +333,3 @@ To enable eSpeak, you need to: 1. go into the Android `Text-to-Speech settings` UI; 2. select `eSpeak TTS` as the default engine; 3. use the `Listen to an example` option to check if everything is working. -