Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurin-Notemann committed Nov 22, 2024
1 parent 207e377 commit 92220fd
Show file tree
Hide file tree
Showing 6 changed files with 25,600 additions and 25,461 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/mobile-app-testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,39 @@ jobs:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 📦 Install dependencies
- name: Install dependencies
run: npm ci

- name: 🚀 Build app
run: eas build -p ios --local --non-interactive --output=./build.ipa
- name: Build app
run: npx eas-cli build -p ios -- --local --non-interactive --output=./build.ipa

- name: 🚀 Submit to App Store
run: eas submit -p ios --path=./build.ipa
- name: Submit to App Store
run: npx eas-cli submit -p ios --path=./build.ipa

build-android-test:
name: Build and push app to Apple Testflight
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Install dependencies
run: npm ci

- name: Build app
run: npx eas-cli build -p ios -- --local --non-interactive --output=./build.ipa

- name: Submit to App Store
run: npx eas-cli submit -p ios --path=./build.ipa


4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ docker-backend-down:
docker-backend-rebuild:
make docker-backend-down; make docker-backend-up

.PHONY: app-build-development
app-build-development:
cd mobile-app && npx eas-cli build -p ios --profile development --local --output=../.gen-builds/build.tar.gz

.PHONY: app-build-preview
app-build-preview:
cd mobile-app && npx eas-cli build -p ios --profile preview --local --output=../.gen-builds/build.tar.gz
Expand Down
122 changes: 63 additions & 59 deletions mobile-app/app.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,65 @@
{
"expo": {
"name": "beerpong-tournament",
"slug": "mobile-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.linusbolls.mobileapp",
"infoPlist": {
"NSPhotoLibraryUsageDescription": true
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router",
[
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"project": "beerpong",
"organization": "sackverein"
}
],
[
"expo-image-picker",
{
"photosPermission": "The app accesses your photos to let you choose a picture",
"cameraPermission": "The app accesses your photos to let take a pic"
}
]
],
"experiments": {
"typedRoutes": true
},
"extra": {
"eas": {
"projectId": "8dbfe974-43ce-4f4e-b3d8-cf6f77109412"
}
},
"owner": "beerpong"
}
"expo": {
"name": "beerpong-tournament",
"slug": "mobile-app",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/images/icon.png",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
"splash": {
"image": "./assets/images/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.linusbolls.mobileapp",
"infoPlist": {
"NSPhotoLibraryUsageDescription": true
}
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"permissions": [
"android.permission.RECORD_AUDIO"
],
"package": "com.linusbolls.mobileapp"
},
"web": {
"bundler": "metro",
"output": "static",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
"expo-router",
[
"@sentry/react-native/expo",
{
"url": "https://sentry.io/",
"project": "beerpong",
"organization": "sackverein"
}
],
[
"expo-image-picker",
{
"photosPermission": "The app accesses your photos to let you choose a picture",
"cameraPermission": "The app accesses your photos to let take a pic"
}
]
],
"experiments": {
"typedRoutes": true
},
"extra": {
"eas": {
"projectId": "8dbfe974-43ce-4f4e-b3d8-cf6f77109412"
}
},
"owner": "beerpong"
}
}
5 changes: 5 additions & 0 deletions mobile-app/eas.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
},
"build": {
"development": {
"env": {
"EXPO_PUBLIC_API_BASE_URL": "http://localhost:8080",
"SENTRY_DISABLE_AUTO_UPLOAD": "true",
"EXPO_PUBLIC_API_WS_URL": "ws://localhost:8080"
},
"developmentClient": true,
"distribution": "internal"
},
Expand Down
Loading

0 comments on commit 92220fd

Please sign in to comment.