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