diff --git a/.github/workflows/eas-build.yml b/.github/workflows/eas-build.yml new file mode 100644 index 0000000..dee881e --- /dev/null +++ b/.github/workflows/eas-build.yml @@ -0,0 +1,62 @@ +name: EAS Build + +on: + push: + branches: [main] + workflow_dispatch: + inputs: + profile: + description: Build profile + required: true + default: preview + type: choice + options: + - development + - preview + - production + platform: + description: Platform + required: true + default: all + type: choice + options: + - all + - ios + - android + +concurrency: + group: eas-${{ github.ref }} + cancel-in-progress: false + +jobs: + build: + name: EAS Build + runs-on: ubuntu-latest + timeout-minutes: 60 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Setup Expo + uses: expo/expo-github-action@v8 + with: + eas-version: latest + token: ${{ secrets.EXPO_TOKEN }} + + - name: Build (preview on push to main) + if: github.event_name == 'push' + run: eas build --profile preview --platform all --non-interactive + + - name: Build (manual) + if: github.event_name == 'workflow_dispatch' + run: eas build --profile ${{ inputs.profile }} --platform ${{ inputs.platform }} --non-interactive diff --git a/app.config.js b/app.config.js new file mode 100644 index 0000000..38f445b --- /dev/null +++ b/app.config.js @@ -0,0 +1,41 @@ +module.exports = { + expo: { + name: 'Run Down', + slug: 'run-down', + version: '0.1.0', + orientation: 'landscape', + icon: './assets/icon.png', + userInterfaceStyle: 'dark', + splash: { + image: './assets/splash.png', + resizeMode: 'contain', + backgroundColor: '#0a0a0f', + }, + ios: { + bundleIdentifier: 'com.claude.rundown', + buildNumber: '1', + supportsTablet: true, + infoPlist: { + UIBackgroundModes: ['fetch', 'processing'], + BGTaskSchedulerPermittedIdentifiers: ['com.claude.rundown.refresh'], + }, + }, + android: { + package: 'com.claude.rundown', + versionCode: 1, + adaptiveIcon: { + foregroundImage: './assets/adaptive-icon.png', + backgroundColor: '#0a0a0f', + }, + }, + extra: { + eas: { + projectId: 'YOUR_EAS_PROJECT_ID', + }, + }, + updates: { + fallbackToCacheTimeout: 0, + }, + assetBundlePatterns: ['**/*'], + }, +}; diff --git a/eas.json b/eas.json new file mode 100644 index 0000000..246ba3a --- /dev/null +++ b/eas.json @@ -0,0 +1,48 @@ +{ + "cli": { + "version": ">= 10.0.0", + "appVersionSource": "remote" + }, + "build": { + "development": { + "developmentClient": true, + "distribution": "internal", + "ios": { + "simulator": true + } + }, + "preview": { + "distribution": "internal", + "ios": { + "resourceClass": "m-medium" + }, + "android": { + "buildType": "apk" + } + }, + "production": { + "autoIncrement": true, + "ios": { + "resourceClass": "m-medium", + "image": "latest" + }, + "android": { + "buildType": "app-bundle", + "image": "latest" + } + } + }, + "submit": { + "production": { + "ios": { + "appleId": "YOUR_APPLE_ID", + "ascAppId": "YOUR_APP_STORE_CONNECT_APP_ID", + "appleTeamId": "YOUR_TEAM_ID" + }, + "android": { + "serviceAccountKeyPath": "./google-service-account.json", + "track": "internal" + } + } + } +} diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..768c407 --- /dev/null +++ b/vercel.json @@ -0,0 +1,6 @@ +{ + "installCommand": "mkdir -p public", + "buildCommand": "cp demo.html public/index.html", + "outputDirectory": "public", + "regions": ["iad1"] +}