diff options
author | Santo Cariotti <santo@dcariotti.me> | 2024-09-02 17:46:39 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2024-09-02 17:46:39 +0200 |
commit | 223eb659a73e2a42f119bdd197bcd41b00e4b09d (patch) | |
tree | 6e7e11ebbfa985b24141e37b21d7406302df4983 | |
parent | 2d8e55fd49a7aca6ce46726a216aeb22089f142d (diff) |
android: set up
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | README.md | 22 | ||||
-rw-r--r-- | android/keystores/release.keystore | bin | 0 -> 2246 bytes | |||
-rw-r--r-- | app.json | 3 | ||||
-rw-r--r-- | eas.json | 18 |
5 files changed, 44 insertions, 2 deletions
@@ -17,4 +17,5 @@ web-build/ # The following patterns were generated by expo-cli expo-env.d.ts -# @end expo-cli
\ No newline at end of file +# @end expo-cli +credentials.json @@ -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 +``` diff --git a/android/keystores/release.keystore b/android/keystores/release.keystore Binary files differnew file mode 100644 index 0000000..87d1b86 --- /dev/null +++ b/android/keystores/release.keystore @@ -19,7 +19,8 @@ "adaptiveIcon": { "foregroundImage": "./assets/images/adaptive-icon.png", "backgroundColor": "#ffffff" - } + }, + "package": "com.unibo.cas4" }, "web": { "bundler": "metro", diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..0ad80b5 --- /dev/null +++ b/eas.json @@ -0,0 +1,18 @@ +{ + "cli": { + "version": ">= 11.0.3" + }, + "build": { + "development": { + "developmentClient": true, + "distribution": "internal" + }, + "preview": { + "distribution": "internal" + }, + "production": {} + }, + "submit": { + "production": {} + } +} |