summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-09-02 17:46:39 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-09-02 17:46:39 +0200
commit223eb659a73e2a42f119bdd197bcd41b00e4b09d (patch)
tree6e7e11ebbfa985b24141e37b21d7406302df4983
parent2d8e55fd49a7aca6ce46726a216aeb22089f142d (diff)
android: set up
-rw-r--r--.gitignore3
-rw-r--r--README.md22
-rw-r--r--android/keystores/release.keystorebin0 -> 2246 bytes
-rw-r--r--app.json3
-rw-r--r--eas.json18
5 files changed, 44 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 6623142..2558aa6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
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
+```
diff --git a/android/keystores/release.keystore b/android/keystores/release.keystore
new file mode 100644
index 0000000..87d1b86
--- /dev/null
+++ b/android/keystores/release.keystore
Binary files differ
diff --git a/app.json b/app.json
index e738c1e..f97e85b 100644
--- a/app.json
+++ b/app.json
@@ -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": {}
+ }
+}