Skip to content

Commit

Permalink
chore: add privacy manifest file to core package
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunita Prajapati committed Oct 28, 2024
1 parent d49d6d6 commit 919b65d
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 19 deletions.
22 changes: 3 additions & 19 deletions packages/core/ios/AnalyticsReactNative.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
objects = {

/* Begin PBXBuildFile section */


F4FF95D7245B92E800C19C63 /* AnalyticsReactNative.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* AnalyticsReactNative.swift */; };

5E555C0D2413F4C50049A1A2 /* AnalyticsReactNative.mm in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* AnalyticsReactNative.mm */; };
F4FF95D7245B92E800C19C63 /* AnalyticsReactNative.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* AnalyticsReactNative.swift */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -28,12 +24,10 @@

/* Begin PBXFileReference section */
134814201AA4EA6300B7C361 /* libAnalyticsReactNative.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libAnalyticsReactNative.a; sourceTree = BUILT_PRODUCTS_DIR; };


B3E7B5891CC2AC0600A0062D /* AnalyticsReactNative.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AnalyticsReactNative.m; sourceTree = "<group>"; };
F4FF95D5245B92E700C19C63 /* AnalyticsReactNative-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "AnalyticsReactNative-Bridging-Header.h"; sourceTree = "<group>"; };
F4FF95D6245B92E800C19C63 /* AnalyticsReactNative.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnalyticsReactNative.swift; sourceTree = "<group>"; };

F615F88C2CCF5F4C007645FE /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -58,12 +52,10 @@
58B511D21A9E6C8500147676 = {
isa = PBXGroup;
children = (


F615F88C2CCF5F4C007645FE /* PrivacyInfo.xcprivacy */,
F4FF95D6245B92E800C19C63 /* AnalyticsReactNative.swift */,
B3E7B5891CC2AC0600A0062D /* AnalyticsReactNative.m */,
F4FF95D5245B92E700C19C63 /* AnalyticsReactNative-Bridging-Header.h */,

134814211AA4EA7D00B7C361 /* Products */,
);
sourceTree = "<group>";
Expand Down Expand Up @@ -125,11 +117,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (


F4FF95D7245B92E800C19C63 /* AnalyticsReactNative.swift in Sources */,
B3E7B58A1CC2AC0600A0062D /* AnalyticsReactNative.m in Sources */,

);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -242,11 +230,9 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = AnalyticsReactNative;
SKIP_INSTALL = YES;

SWIFT_OBJC_BRIDGING_HEADER = "AnalyticsReactNative-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;

};
name = Debug;
};
Expand All @@ -263,10 +249,8 @@
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = AnalyticsReactNative;
SKIP_INSTALL = YES;

SWIFT_OBJC_BRIDGING_HEADER = "AnalyticsReactNative-Bridging-Header.h";
SWIFT_VERSION = 5.0;

};
name = Release;
};
Expand Down
70 changes: 70 additions & 0 deletions packages/core/ios/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeDeviceID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string></string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>App Name</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>App Version</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeAdvertisingData</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeDeveloperAdvertising</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit 919b65d

Please sign in to comment.