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

feat: comply with new iOS third-party SDK requirements #86

Merged
merged 2 commits into from
May 20, 2024

Conversation

duyhungtnn
Copy link
Collaborator

@duyhungtnn duyhungtnn commented May 11, 2024

Will close #79

This PR adds a new manifest file required to any iOS 3rd SDK from this year. It also included the privacy file to the Swift package and the cocoapods podspec.

The privacy manifest file will be added to the XCode project as a resource file when we generate the XCode project using the XCodeGen.

@duyhungtnn duyhungtnn self-assigned this May 11, 2024
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NSPrivacyTracking is set to false because we don't track users for displaying ads with IDFA

<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need the app user_id to make the SDK work correctly.
So we need define we collect the user_id with NSPrivacyCollectedDataTypeUserID

</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We collect some info like OS version and app version. So that we need define it with NSPrivacyCollectedDataTypeOtherDiagnosticData

<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We are using the UserDefaults to save the data (e.g. tag, last_evalution_time)
So that we need define it with NSPrivacyAccessedAPICategoryUserDefaults

@duyhungtnn duyhungtnn marked this pull request as draft May 11, 2024 04:16
@duyhungtnn duyhungtnn marked this pull request as ready for review May 11, 2024 06:28
@duyhungtnn duyhungtnn requested review from cre8ivejp and kakcy May 11, 2024 06:28
@duyhungtnn
Copy link
Collaborator Author

hi @cre8ivejp , @kakcy please help me to take a look

Copy link
Contributor

@kakcy kakcy left a comment

Choose a reason for hiding this comment

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

@duyhungtnn
Thank you for your response, it is very helpful.
The definition of privacy information looks good.

There are some things I would like to check.

  • PrivacyInfo.xcprivacy has not been added to the Xcode project, is this a problem?
  • Have you confirmed that it can be used normally from various library management tools (Cocoapod, SPM, Carthage) using sample apps?

Also, I have a suggestion: How about writing Bucketter's policy regarding privacy manifest compliance in the ReadMe?
launchdarkly has such a description, which I thought was good.

@duyhungtnn
Copy link
Collaborator Author

@kakcy thanks for your comment.

PrivacyInfo.xcprivacy has not been added to the Xcode project, is this a problem?

It will be added once you generate the XCode project using XCode Gen. You could try to double-confirm.

Have you confirmed that it can be used normally from various library management tools (Cocoapod, SPM, Carthage) using sample apps?

Yes, I have tested the example app with a local setup of Cocoapod, SPM.

Carthage

as the PrivacyInfo.xcprivacy will be added to the XCode-generated project. It will be fine with Carthage
I have manually built the XCframework, and it contains the PrivacyInfo.xcprivacy

How about writing Bucketter's policy regarding privacy manifest compliance in the ReadMe?

It seems good. However, since May 1st, 2024, any app must define its own PrivacyInfo.xcprivacy to the bundle before submiting a new version to Applestore. That section on the README or document seems not necessary anymore.
What do you think?

Copy link
Contributor

@kakcy kakcy left a comment

Choose a reason for hiding this comment

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

Thank you for your reply!

It will be added once you generate the XCode project using XCode Gen. You could try to double-confirm.

I forgot about that, that's for sure.

Yes, I have tested the example app with a local setup of Cocoapod, SPM.

Thank you for testing the operation.

It seems good. However, since May 1st, 2024, any app must define its own PrivacyInfo.xcprivacy to the bundle before submiting a new version to Applestore. That section on the README or document seems not necessary anymore.
What do you think?

I also thought that it was not necessary to write it in the ReadMe because it is essential to deal with it.

@cre8ivejp cre8ivejp merged commit e11bb4b into main May 20, 2024
8 checks passed
@cre8ivejp cre8ivejp deleted the feat/comply-with-new-ios-3rd-sdk-req branch May 20, 2024 05:25
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.

Implement the new iOS third-party SDK requirements
3 participants