-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.ts
97 lines (95 loc) · 2.92 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import { ExpoConfig, ConfigContext } from "@expo/config";
import { version } from "./package.json";
const IS_DEV = process.env.APP_VARIANT === "development";
export default ({ config }: ConfigContext): ExpoConfig => ({
...config,
name: IS_DEV ? "Calorily Debug" : "Calorily",
slug: "calorily",
version: version,
orientation: "portrait",
icon: "./assets/icon.png",
userInterfaceStyle: "automatic",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#000000",
imageSize: 180,
},
assetBundlePatterns: ["**/*"],
ios: {
bundleIdentifier: "com.calorily.app",
supportsTablet: true,
usesAppleSignIn: true,
infoPlist: {
EULAUrl:
"https://www.apple.com/legal/internet-services/itunes/dev/stdeula/",
// NSPrivacyUsageDescription:
// "This app requires access to your privacy data to enhance your experience and functionality.",
// NSUserTrackingUsageDescription:
// "We use anonymized data to track app interactions and improve service delivery.",
// PrivacyPolicyURL: "https://calorily.com/privacy",
LSApplicationQueriesSchemes: ["photos"],
CFBundleURLTypes: [
{
CFBundleURLSchemes: ["calorily"],
CFBundleURLName: "com.calorily.app",
LSSupportsMultipleItems: true,
},
],
NSExtensionActivationRule: {
NSExtensionActivationSupportsImageWithMaxCount: 10,
},
NSPhotoLibraryUsageDescription:
"This app accesses your photos to analyze your meals.",
CFBundleDocumentTypes: [
{
CFBundleTypeName: "Images",
LSHandlerRank: "Alternate",
LSItemContentTypes: ["public.image", "public.jpeg", "public.png"],
CFBundleTypeRole: "Viewer",
LSSupportsMultipleItems: true,
},
],
LSSupportsOpeningDocumentsInPlace: true,
UISupportsDocumentBrowser: true,
UTImportedTypeDeclarations: [
{
UTTypeIdentifier: "com.calorily.app",
UTTypeTagSpecification: {
"public.mime-type": "image/*",
"public.filename-extension": ["jpg", "jpeg", "png"],
},
LSHandlerRank: "Alternate",
LSSupportsMultipleItems: true,
CFBundleTypeRole: "Viewer",
},
],
},
},
android: {
package: IS_DEV ? "com.calorily.app.dev" : "com.calorily.app",
adaptiveIcon: {
foregroundImage: "./assets/adaptive-icon.png",
backgroundColor: "#ffffff",
},
},
web: {
favicon: "./assets/favicon.png",
},
plugins: [
"react-native-health",
[
"expo-image-picker",
{
photosPermission: "This app accesses your photos to analyze your meal.",
cameraPermission: "This app accesses your camera to analyze your meal.",
},
],
"expo-apple-authentication",
],
extra: {
eas: {
projectId: "b4b736d7-5526-4e75-a92c-db0622f97f39",
},
},
});