-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathapp.config.ts
More file actions
65 lines (62 loc) · 2.23 KB
/
Copy pathapp.config.ts
File metadata and controls
65 lines (62 loc) · 2.23 KB
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
import { ExpoConfig, ConfigContext } from "@expo/config"
/**
* Use tsx/cjs here so we can use TypeScript for our Config Plugins
* and not have to compile them to JavaScript.
*
* See https://docs.expo.dev/config-plugins/plugins/#add-typescript-support-and-convert-to-dynamic-app-config
*/
import "tsx/cjs"
/**
* @param config ExpoConfig coming from the static config app.json if it exists
*
* You can read more about Expo's Configuration Resolution Rules here:
* https://docs.expo.dev/workflow/configuration/#configuration-resolution-rules
*/
module.exports = ({ config }: ConfigContext): Partial<ExpoConfig> => {
const existingPlugins = config.plugins ?? []
return {
...config,
ios: {
...config.ios,
// This privacyManifests is to get you started.
// See Expo's guide on apple privacy manifests here:
// https://docs.expo.dev/guides/apple-privacy/
// You may need to add more privacy manifests depending on your app's usage of APIs.
// More details and a list of "required reason" APIs can be found in the Apple Developer Documentation.
// https://developer.apple.com/documentation/bundleresources/privacy-manifest-files
privacyManifests: {
NSPrivacyAccessedAPITypes: [
{
NSPrivacyAccessedAPIType: "NSPrivacyAccessedAPICategoryUserDefaults",
NSPrivacyAccessedAPITypeReasons: ["CA92.1"], // CA92.1 = "Access info from same app, per documentation"
},
],
},
},
plugins: [
...existingPlugins,
"./plugins/withShareExtensionDevClient",
"@react-native-community/datetimepicker",
[
"expo-sharing",
{
ios: {
enabled: true,
extensionBundleIdentifier: "com.infinitered.cr2026intermediateworkshop.share-extension",
appGroupId: "group.com.infinitered.cr2026intermediateworkshop",
activationRule: {
supportsText: true,
supportsWebUrlWithMaxCount: 1,
supportsImageWithMaxCount: 3,
},
},
android: {
enabled: true,
singleShareMimeTypes: ["text/plain", "image/*"],
multipleShareMimeTypes: ["image/*"],
},
},
],
],
}
}