From 223eb659a73e2a42f119bdd197bcd41b00e4b09d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 2 Sep 2024 17:46:39 +0200 Subject: android: set up --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 4833bbf..11e2674 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,25 @@ # .env EXPO_PUBLIC_API_URL= ``` + +# Set up for android + +1. Generate a release key + +``` +keytool -genkey -v -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -storepass KEYSTORE_PASSWORD -keypass KEY_PASSWORD -alias cas4 -keystore release.keystore -dname "CN=Santo Cariotti, OU=Unknown, O=Unknown, L=Bologna, ST=Italy, C=IT" +``` + +2. Build Android app + +``` +eas build --platform android +``` + +3. Download the artifact from Expo page + +4. Create APKS from the AAB file + +``` +java -jar bundletool-all-1.17.1.jar build-apks --bundle=application-XXXX.aab --output=cas.apks --mode=universal --ks android/keystores/release.keystore --ks-key-alias=cas4 +``` -- cgit v1.2.3-18-g5258