File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,23 @@ module.exports = ({ config }: ConfigContext): Partial<ExpoConfig> => {
17
17
18
18
return {
19
19
...config ,
20
+ ios : {
21
+ ...config . ios ,
22
+ // This privacyManifests is to get you started.
23
+ // See Expo's guide on apple privacy manifests here:
24
+ // https://docs.expo.dev/guides/apple-privacy/
25
+ // You may need to add more privacy manifests depending on your app's usage of APIs.
26
+ // More details and a list of "required reason" APIs can be found in the Apple Developer Documentation.
27
+ // https://developer.apple.com/documentation/bundleresources/privacy-manifest-files
28
+ privacyManifests : {
29
+ NSPrivacyAccessedAPITypes : [
30
+ {
31
+ NSPrivacyAccessedAPIType : "NSPrivacyAccessedAPICategoryUserDefaults" ,
32
+ NSPrivacyAccessedAPITypeReasons : [ "CA92.1" ] , // CA92.1 = "Access info from same app, per documentation"
33
+ } ,
34
+ ] ,
35
+ } ,
36
+ } ,
20
37
plugins : [ ...existingPlugins , require ( "./plugins/withSplashScreen" ) . withSplashScreen ] ,
21
38
}
22
39
}
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ describe("ignite new", () => {
66
66
expect ( templates ) . toContain ( "app-icon" )
67
67
} )
68
68
69
+ it ( "should have created an apple privacy manifest file" , ( ) => {
70
+ // now let's examine the spun-up app
71
+ const dirs = filesystem . list ( appPath + `/ios/${ APP_NAME } /` )
72
+ expect ( dirs ) . toContain ( "PrivacyInfo.xcprivacy" )
73
+ } )
74
+
69
75
it ( `should have renamed all permutations of hello-world to ${ APP_NAME } ` , async ( ) => {
70
76
// react-native-rename doesn't always catch everything, so we need to check for
71
77
// any instances and fail if it doesn't work
You can’t perform that action at this time.
0 commit comments