|
| 1 | +import { type ExpoConfig } from "expo/config"; |
| 2 | + |
| 3 | +import { config as dotenvConfig} from 'dotenv' |
| 4 | +import { resolve } from 'path' |
| 5 | + |
| 6 | +// EAS doesn't load values from `.env` by default when consider the `app.config` |
| 7 | +dotenvConfig({ |
| 8 | + path: resolve(__dirname, '.env') |
| 9 | +}) |
| 10 | + |
| 11 | +const projectId = process.env.EXPO_PUBLIC_EAS_PROJECT_ID; |
| 12 | + |
| 13 | +const config: ExpoConfig = { |
| 14 | + name: 'powersync-example', |
| 15 | + slug: 'powersync-example', |
| 16 | + version: '1.0.0', |
| 17 | + orientation: 'portrait', |
| 18 | + icon: './assets/icon.png', |
| 19 | + userInterfaceStyle: 'light', |
| 20 | + scheme: 'powersync', |
| 21 | + splash: { |
| 22 | + image: './assets/splash.png', |
| 23 | + resizeMode: 'contain', |
| 24 | + backgroundColor: '#ffffff', |
| 25 | + }, |
| 26 | + updates: { |
| 27 | + url: `https://u.expo.dev/${projectId}`, |
| 28 | + }, |
| 29 | + assetBundlePatterns: ['**/*'], |
| 30 | + ios: { |
| 31 | + supportsTablet: true, |
| 32 | + bundleIdentifier: 'com.powersync.example', |
| 33 | + }, |
| 34 | + android: { |
| 35 | + adaptiveIcon: { |
| 36 | + foregroundImage: './assets/adaptive-icon.png', |
| 37 | + backgroundColor: '#ffffff', |
| 38 | + }, |
| 39 | + package: 'com.powersync.example', |
| 40 | + }, |
| 41 | + web: { |
| 42 | + favicon: './assets/favicon.png', |
| 43 | + }, |
| 44 | + extra: { |
| 45 | + eas: { |
| 46 | + projectId |
| 47 | + }, |
| 48 | + }, |
| 49 | + plugins: [ |
| 50 | + 'expo-router', |
| 51 | + [ |
| 52 | + 'expo-camera', |
| 53 | + { |
| 54 | + cameraPermission: 'Allow $(PRODUCT_NAME) to access your camera.', |
| 55 | + }, |
| 56 | + ], |
| 57 | + [ |
| 58 | + 'expo-build-properties', |
| 59 | + { |
| 60 | + ios: { |
| 61 | + deploymentTarget: '13.4', |
| 62 | + }, |
| 63 | + }, |
| 64 | + ], |
| 65 | + 'expo-secure-store', |
| 66 | + ], |
| 67 | +}; |
| 68 | + |
| 69 | +export default config; |
0 commit comments