Skip to content

Commit cbc9e0b

Browse files
authored
Privacy manifest inclusion for SPM and Cocoapods (#55)
* Add support for privacy manifest for Cocoapods and SPM https://developer.apple.com/support/third-party-SDK-requirements/ # Conflicts: # Example/Podfile.lock # Example/Pods/Manifest.lock # Example/Pods/Pods.xcodeproj/project.pbxproj # Package.swift * Check things over with the test app, which updated the pods project etc. * Analytics -> App Functionality in usage desc
1 parent a15afa0 commit cbc9e0b

File tree

11 files changed

+347
-167
lines changed

11 files changed

+347
-167
lines changed

Example/FlagsmithClient.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@
297297
ONLY_ACTIVE_ARCH = YES;
298298
SDKROOT = iphoneos;
299299
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
300+
VALIDATE_PRODUCT = YES;
300301
};
301302
name = Debug;
302303
};

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- FlagsmithClient (3.6.0)
2+
- FlagsmithClient (3.5.0)
33

44
DEPENDENCIES:
55
- FlagsmithClient (from `../`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
FlagsmithClient: 3a96576f5a251c807e6aa0a3b0db55b3e1dfd0a3
12+
FlagsmithClient: 505f315402ddf4482c3477dd4a6124ab8e63361e
1313

1414
PODFILE CHECKSUM: 9fc876dee0cf031cae843156b0740a94b4994d8c
1515

Example/Pods/Local Podspecs/FlagsmithClient.podspec.json

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 266 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/FlagsmithClient/FlagsmithClient-Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/FlagsmithClient/ResourceBundle-FlagSmith_Privacy-FlagsmithClient-Info.plist

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlagsmithClient.podspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Pod::Spec.new do |s|
1515
s.author = { 'Kyle Johnson' => '[email protected]' }
1616
s.source = { :git => 'https://github.com/Flagsmith/flagsmith-ios-client.git', :tag => s.version.to_s }
1717
s.social_media_url = 'https://twitter.com/getflagsmith'
18+
s.resource_bundles = {
19+
'FlagSmith_Privacy' => ['Classes/PrivacyInfo.xcprivacy'],
20+
}
1821

1922
s.ios.deployment_target = '12.0'
2023

FlagsmithClient/Assets/.gitkeep

Whitespace-only changes.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyCollectedDataTypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyCollectedDataType</key>
9+
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
10+
<key>NSPrivacyCollectedDataTypeLinked</key>
11+
<false/>
12+
<key>NSPrivacyCollectedDataTypeTracking</key>
13+
<false/>
14+
<key>NSPrivacyCollectedDataTypePurposes</key>
15+
<array>
16+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
17+
</array>
18+
</dict>
19+
</array>
20+
<key>NSPrivacyTrackingDomains</key>
21+
<array>
22+
<string>edge.api.flagsmith.com</string>
23+
</array>
24+
<key>NSPrivacyTracking</key>
25+
<true/>
26+
<key>NSPrivacyAccessedAPITypes</key>
27+
<array>
28+
<dict>
29+
<key>NSPrivacyAccessedAPITypeReasons</key>
30+
<array>
31+
<string>CA92.1</string>
32+
</array>
33+
<key>NSPrivacyAccessedAPIType</key>
34+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
35+
</dict>
36+
</array>
37+
</dict>
38+
</plist>

0 commit comments

Comments
 (0)