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

[FX-1230] Add privacy manifest file to iOS SDK #158

Merged

Conversation

evanfreeze
Copy link
Contributor

@evanfreeze evanfreeze commented Mar 29, 2024

What

Adds Privacy Manifest file to iOS SDK. More details from Apple here.

Also bumps LaunchDarkly to version 9.6.0, the latest as of this PR. We technically only need to go to 9.4.0 to get their privacy manifest, but looking through the changelog it doesn't seem like a huge bump to go from to 9.6.0 from there, so might as well just jump to the most recent version.

Why

Since we use required reasons APIs in our SDK, we have to include this before May 1. I audited the use of each relevant API and captured the results in this spreadsheet.

Test Plan

  • ✅ Not a front-end change
  • ✅ iOS QA Tests passed locally
  • ✅ Unit Tests passed locally

How

Can be merged as-is, no code changes.

@@ -241,7 +241,7 @@ class LDManager: LDManagerProtocol {
}

private func createLDConfig(for environment: Environment) -> LDConfig {
LDConfig(mobileKey: getLDMobileKey(environment).rawValue)
LDConfig(mobileKey: getLDMobileKey(environment).rawValue, autoEnvAttributes: .enabled)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the only code change. LaunchDarkly v9.x requires this second argument to LDConfig to get additional environment attributes. I went with their example (passing .enabled), but we can also do .disabled if we don't want this. More details in the 8.x->9.0 migration guide.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems harmless enough and something we may find useful in the future. I say we keep it.

@evanfreeze evanfreeze marked this pull request as ready for review April 1, 2024 18:51
ForageSDK.podspec Show resolved Hide resolved
@@ -241,7 +241,7 @@ class LDManager: LDManagerProtocol {
}

private func createLDConfig(for environment: Environment) -> LDConfig {
LDConfig(mobileKey: getLDMobileKey(environment).rawValue)
LDConfig(mobileKey: getLDMobileKey(environment).rawValue, autoEnvAttributes: .enabled)
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems harmless enough and something we may find useful in the future. I say we keep it.

@evanfreeze evanfreeze merged commit c7e6fef into main Apr 2, 2024
3 checks passed
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.

2 participants