Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 2924e33

Browse files
authored
Merge branch 'main' into feature/testing
2 parents 9f34bd7 + d010b5b commit 2924e33

File tree

7 files changed

+874
-235
lines changed

7 files changed

+874
-235
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build apk
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: 🏗 Setup repo
16+
uses: actions/checkout@v4
17+
18+
- name: 🏗 Setup Node
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: 21
27+
distribution: temurin
28+
29+
- name: 🏗 Setup Bun
30+
uses: oven-sh/setup-bun@v2
31+
32+
- name: 📝 Create .env file
33+
run: |
34+
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> .env
35+
echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
36+
echo "EXPO_ROUTER_APP_ROOT=${{ secrets.EXPO_ROUTER_APP_ROOT }}" >> .env
37+
38+
- name: 📦 Install jq
39+
run: sudo apt-get install jq
40+
41+
- name: 📦 Install dependencies
42+
run: bun install
43+
44+
- name: 🏗 Setup EAS
45+
uses: expo/expo-github-action@v8
46+
with:
47+
packager: bun
48+
eas-version: latest
49+
token: ${{ secrets.EXPO_TOKEN }}
50+
51+
- name: 🚀 Build app
52+
run: eas build --platform android --profile production --non-interactive --wait

app.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
"plugins": ["expo-router"],
2727
"experiments": {
2828
"typedRoutes": true
29-
}
29+
},
30+
"extra": {
31+
"router": {
32+
"origin": false
33+
},
34+
"eas": {
35+
"projectId": "d5beb55e-16fc-420e-8c39-936c2758dcf0"
36+
}
37+
},
38+
"owner": "qe170148"
3039
}
3140
}

babel.config.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
3-
plugins: [
4-
[
5-
'module:react-native-dotenv',
6-
{
7-
moduleName: '@env',
8-
path: '.env',
9-
blocklist: null,
10-
allowlist: null,
11-
safe: false,
12-
allowUndefined: true,
13-
verbose: false,
14-
},
1+
module.exports = function (api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
plugins: [
6+
[
7+
'module:react-native-dotenv',
8+
{
9+
moduleName: '@env',
10+
path: '.env',
11+
blocklist: null,
12+
allowlist: null,
13+
safe: false,
14+
allowUndefined: true,
15+
verbose: false,
16+
},
17+
],
1518
],
16-
],
19+
};
1720
};

bun.lock

Lines changed: 766 additions & 219 deletions
Large diffs are not rendered by default.

eas.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"build": {
3+
"preview1": {
4+
"android": {
5+
"buildType": "apk"
6+
}
7+
},
8+
"preview2": {
9+
"android": {
10+
"gradleCommand": ":app:assembleRelease"
11+
}
12+
},
13+
"preview3": {
14+
"developmentClient": true
15+
},
16+
"production": {
17+
"android": {
18+
"buildType": "apk",
19+
"gradleCommand": ":app:assembleRelease",
20+
"developmentClient": true
21+
}
22+
}
23+
}
24+
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"test": "jest"
1010
},
1111
"dependencies": {
12+
"@expo/config-plugins": "~9.0.0",
1213
"@expo/vector-icons": "14.1.0",
1314
"@react-native-community/datetimepicker": "8.2.0",
1415
"@reduxjs/toolkit": "^2.7.0",
@@ -18,6 +19,7 @@
1819
"@testing-library/react-native": "13.2.0",
1920
"@types/redux-mock-store": "^1.5.0",
2021
"expo": "52.0.46",
22+
"expo-dev-client": "~5.0.20",
2123
"expo-fast-image": "1.1.3",
2224
"expo-file-system": "~18.0.12",
2325
"expo-image-picker": "16.0.6",
@@ -43,6 +45,7 @@
4345
"@babel/core": "7.26.10",
4446
"@trivago/prettier-plugin-sort-imports": "5.2.2",
4547
"@types/react": "18.3.12",
48+
"eas-cli": "16.3.3",
4649
"prettier": "3.5.3",
4750
"react-test-renderer": "18.3.1",
4851
"typescript": "5.8.3"

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "expo/tsconfig.base",
33
"compilerOptions": {
44
"strict": true,
5+
"baseUrl": "./",
56
"paths": {
67
"@/*": ["./src/*"]
78
},

0 commit comments

Comments
 (0)