Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e28884e
update lock
hardingadonis May 2, 2025
0bc1ffe
uploadate
hardingadonis May 2, 2025
bcae143
feat: add GitHub Actions workflow for building APK
hardingadonis May 2, 2025
a887f6e
fix: remove cache option from Node setup in build workflow
hardingadonis May 2, 2025
71b823b
fix: update Bun setup to source bashrc after installation
hardingadonis May 2, 2025
4cf7fb5
fix: simplify Bun setup by using official action
hardingadonis May 2, 2025
9300f3b
fix: reorder EAS setup in build workflow for clarity
hardingadonis May 2, 2025
91376da
fix: update EAS build command to use non-interactive mode
hardingadonis May 2, 2025
fc7cfc5
fix: update EAS build command to use production environment
hardingadonis May 2, 2025
0c1f07d
fix: enhance build workflow by adding JDK setup and GH release step
hardingadonis May 2, 2025
cd131ca
fix: comment out JDK setup in build workflow for clarity
hardingadonis May 2, 2025
839bc3b
fix: add expo-dev-client dependency to package.json
hardingadonis May 2, 2025
49b381e
fix: remove expo-version from EAS setup in build workflow
hardingadonis May 2, 2025
5bab12e
fix: add extra field with router and eas projectId to app.json
hardingadonis May 2, 2025
5853295
chore: update package dependencies and versions
hardingadonis May 2, 2025
8be8ea8
fix: update JDK version to 21 and uncomment setup step in build workflow
hardingadonis May 2, 2025
0c3ea46
fix: add EXPO_ROUTER_APP_ROOT to .env file creation step
hardingadonis May 2, 2025
0890ad8
fix: add baseUrl to compilerOptions in tsconfig.json
hardingadonis May 2, 2025
554a7b2
fix: update babel.config.js to use function syntax and change preset …
hardingadonis May 2, 2025
11a71c6
fix: update baseUrl in tsconfig.json to point to the project root
hardingadonis May 2, 2025
14ee720
fix: remove expo-dev-client dependency from package.json
hardingadonis May 2, 2025
4872ad2
fix: remove local flag from eas build command in workflow
hardingadonis May 2, 2025
6801613
fix: update build workflow to install jq and modify build command for…
hardingadonis May 2, 2025
00a2673
fix: add expo-dev-client dependency to package.json and bun.lock
hardingadonis May 2, 2025
5e8ecb7
fix: update build workflow to remove local flag and ensure non-intera…
hardingadonis May 2, 2025
1284415
fix: update branch name in build workflow and remove APK download steps
hardingadonis May 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build apk

on:
push:
branches:
- feature/deploys

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4

- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin

- name: 🏗 Setup Bun
uses: oven-sh/setup-bun@v2

- name: 📝 Create .env file
run: |
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> .env
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
echo "EXPO_ROUTER_APP_ROOT=${{ secrets.EXPO_ROUTER_APP_ROOT }}" >> .env

- name: 📦 Install jq
run: sudo apt-get install jq

- name: 📦 Install dependencies
run: bun install

- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
packager: bun
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 🚀 Build app
run: eas build --platform android --profile production --non-interactive --wait
11 changes: 10 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@
"plugins": ["expo-router"],
"experiments": {
"typedRoutes": true
}
},
"extra": {
"router": {
"origin": false
},
"eas": {
"projectId": "d5beb55e-16fc-420e-8c39-936c2758dcf0"
}
},
"owner": "qe170148"
}
}
33 changes: 18 additions & 15 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'module:react-native-dotenv',
{
moduleName: '@env',
path: '.env',
blocklist: null,
allowlist: null,
safe: false,
allowUndefined: true,
verbose: false,
},
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module:react-native-dotenv',
{
moduleName: '@env',
path: '.env',
blocklist: null,
allowlist: null,
safe: false,
allowUndefined: true,
verbose: false,
},
],
],
],
};
};
1,063 changes: 812 additions & 251 deletions bun.lock

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"build": {
"preview1": {
"android": {
"buildType": "apk"
}
},
"preview2": {
"android": {
"gradleCommand": ":app:assembleRelease"
}
},
"preview3": {
"developmentClient": true
},
"production": {
"android": {
"buildType": "apk",
"gradleCommand": ":app:assembleRelease",
"developmentClient": true
}
}
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
"ios": "expo start --ios"
},
"dependencies": {
"@expo/config-plugins": "~9.0.0",
"@expo/vector-icons": "14.1.0",
"@react-native-community/datetimepicker": "8.2.0",
"@reduxjs/toolkit": "^2.7.0",
"@supabase/supabase-js": "^2.49.4",
"expo": "52.0.46",
"expo-dev-client": "~5.0.20",
"expo-fast-image": "1.1.3",
"expo-file-system": "~18.0.12",
"expo-image-picker": "16.0.6",
Expand All @@ -35,6 +37,7 @@
"@babel/core": "7.26.10",
"@trivago/prettier-plugin-sort-imports": "5.2.2",
"@types/react": "18.3.12",
"eas-cli": "16.3.3",
"prettier": "3.5.3",
"typescript": "5.8.3"
},
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
},
Expand Down