Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated strict concurrency and Privacy Manifests #50

Closed

Conversation

gazreese
Copy link
Contributor

@gazreese gazreese commented Apr 22, 2024

This PR supersedes and includes #48.

This PR updates the above by also updating the Cocoapods functionality to match the Swift Package Manager changes above: 6b5dc80

Due to upcoming https://developer.apple.com/support/third-party-SDK-requirements/ we've updated the SDK to include a Privacy Manifest.

The format and purpose of these is described here: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files

The crux of what I've gone for on here is:

UserDefaults: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278401

This is needed to store persistent state info for the SDK. At the moment this is just used to store analytics events in the case they can't be sent immediately. This could possibly be removed in the future if you're (a) not that fussed and we (b) post analytics when the app goes to the background to avoid data loss.

Other Diagnostic Data:

image

from here: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests#4144131

The release is set up to be version 3.6.0 in the Podspec.

I've tested this with the unit tests and also creating local packages with Swift Package Manager and Cocoapods to see if the Privacy Manifest is included, which it does appear to be. When running the new SDK in the example app I didn't see any additional privacy dialogs appear.

I've also checked my changes against other popular iOS SDKs and can confirm they're consistent.

Manifest files are typically checked by Apple automatically when submitting to the App Store, so that's going to be the real test for this one.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

3a4oT and others added 9 commits March 12, 2024 20:01
 - Enabled `StrictConcurrency=complete` mode in order to be prepared for upcoming Swift 6. Implemented `Sendable` support for Flagsmith client and friends.
 - Enabled `ExistentialAny` feature in order to be prepared for upcoming Swift 6. Code adjustments
 - adjusted tests for `StrictConcurrency=complete` mode .
…agsmith#48)

* - Bumped `swift-tools` to swift 5.9.
 - Enabled `StrictConcurrency=complete` mode in order to be prepared for upcoming Swift 6. Implemented `Sendable` support for Flagsmith client and friends.
 - Enabled `ExistentialAny` feature in order to be prepared for upcoming Swift 6. Code adjustments
 - adjusted tests for `StrictConcurrency=complete` mode .

* adjusted macOS runner

* cleanup
@dabeeeenster
Copy link
Collaborator

Yep the Privacy Manifest stuff LGTM here.

Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a couple of comments on the privacy manifest, but I'm a little confused why this PR seems to include t2o totally distinct things. I'm not sure why we merged the strict concurrency PR into a branch to then add the manifest to as well.

I guess my main concern is that the description of the PR references the changes to the privacy manifest but mentions nothing about any testing that has been carried out on what seem like fairly hefty changes on the actual SDK.

<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say this should actually be

Suggested change
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>

We're collecting analytics data to enable analytics graphs in our customer's dashboard, not for our own purposes.

Comment on lines +24 to +25
<key>NSPrivacyTracking</key>
<true/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is true is it?

@dabeeeenster dabeeeenster linked an issue Apr 29, 2024 that may be closed by this pull request
@matthewelwell
Copy link
Contributor

Superseded by #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Privacy manifest and code signature
4 participants