Skip to content

Commit

Permalink
Added PrivacyInfo.xcprivacy support (#4573)
Browse files Browse the repository at this point in the history
  • Loading branch information
kried authored Dec 21, 2023
1 parent cb1987f commit 081496a
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 6 deletions.
9 changes: 5 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@

### Packaging

* MapboxNavigation now requires [MapboxMaps v10.16.3](https://github.com/mapbox/mapbox-maps-ios/releases/tag/v10.16.3). ([#4565](https://github.com/mapbox/mapbox-navigation-ios/pull/4565))
* MapboxCoreNavigation now requires [MapboxNavigationNative v180._x_](https://github.com/mapbox/mapbox-navigation-native-ios/releases/tag/180.0.0). ([#4565](https://github.com/mapbox/mapbox-navigation-ios/pull/4565))
* MapboxCoreNavigation is no longer dependent on MapboxMobileEvents. ([#4565](https://github.com/mapbox/mapbox-navigation-ios/pull/4565))
* MapboxNavigation now requires [MapboxMaps v10.16.3](https://github.com/mapbox/mapbox-maps-ios/releases/tag/v10.16.3). ([#4572](https://github.com/mapbox/mapbox-navigation-ios/pull/4572))
* MapboxCoreNavigation now requires [MapboxNavigationNative v180._x_](https://github.com/mapbox/mapbox-navigation-native-ios/releases/tag/180.0.0). ([#4572](https://github.com/mapbox/mapbox-navigation-ios/pull/4572))
* MapboxCoreNavigation is no longer dependent on MapboxMobileEvents. ([#4572](https://github.com/mapbox/mapbox-navigation-ios/pull/4572))

### Routing

* `NavigationRouteOptions` and `NavigationMatchOptions` no longer include `.numericCongestionLevel` attribute by default for profiles other than `.automobileAvoidingTraffic`.

### Other changes

* Removed `NavigationEventsManager.init(activeNavigationDataSource:passiveNavigationDataSource:accessToken:mobileEventsManager:)` in favor of `NavigationEventsManager.init(activeNavigationDataSource:passiveNavigationDataSource:accessToken:)`. ([#4565](https://github.com/mapbox/mapbox-navigation-ios/pull/4565))
* Added PrivacyInfo.xcprivacy support. ([#4573](https://github.com/mapbox/mapbox-navigation-ios/pull/4573))
* Removed `NavigationEventsManager.init(activeNavigationDataSource:passiveNavigationDataSource:accessToken:mobileEventsManager:)` in favor of `NavigationEventsManager.init(activeNavigationDataSource:passiveNavigationDataSource:accessToken:)`. ([#4572](https://github.com/mapbox/mapbox-navigation-ios/pull/4572))

## v2.17.0

Expand Down
8 changes: 8 additions & 0 deletions MapboxNavigation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@
2C60D94929CCAC8900DE9FE7 /* route-with-road-objects-japan.json in Resources */ = {isa = PBXBuildFile; fileRef = 2C60D94029CCAC8900DE9FE7 /* route-with-road-objects-japan.json */; };
2C67751C290AC4A6009C5EE4 /* MapboxNavigationNative.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2C1CDA6265E22B400E158E0 /* MapboxNavigationNative.xcframework */; };
2C71DE02292F821E00620775 /* BillingHandlerIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C71DE01292F821E00620775 /* BillingHandlerIntegrationTests.swift */; };
2C7EBE072B34804200B7B12A /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 2C7EBE062B34804200B7B12A /* PrivacyInfo.xcprivacy */; };
2C7EBE092B34891000B7B12A /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 2C7EBE082B34891000B7B12A /* PrivacyInfo.xcprivacy */; };
2C7FAF96291ABE62000217A7 /* TestRouteProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C7FAF95291ABE62000217A7 /* TestRouteProvider.swift */; };
2C7FAF98291BB1CA000217A7 /* RerouteControllerSpy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C7FAF97291BB1CA000217A7 /* RerouteControllerSpy.swift */; };
2C848BA02982A0C90055BECF /* NavigationEventsManagerError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C848B9F2982A0C90055BECF /* NavigationEventsManagerError.swift */; };
Expand Down Expand Up @@ -806,6 +808,8 @@
2C59B994298330F8003D4EA0 /* FeedbackMetadata.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedbackMetadata.swift; sourceTree = "<group>"; };
2C60D94029CCAC8900DE9FE7 /* route-with-road-objects-japan.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "route-with-road-objects-japan.json"; sourceTree = "<group>"; };
2C71DE01292F821E00620775 /* BillingHandlerIntegrationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BillingHandlerIntegrationTests.swift; sourceTree = "<group>"; };
2C7EBE062B34804200B7B12A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = Resources/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
2C7EBE082B34891000B7B12A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = Resources/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
2C7FAF95291ABE62000217A7 /* TestRouteProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestRouteProvider.swift; sourceTree = "<group>"; };
2C7FAF97291BB1CA000217A7 /* RerouteControllerSpy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RerouteControllerSpy.swift; sourceTree = "<group>"; };
2C848B9F2982A0C90055BECF /* NavigationEventsManagerError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationEventsManagerError.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1699,6 +1703,7 @@
C520EE921EBB84F9008805BC /* Navigation.storyboard */,
DAAE5F321EAE4C4700832871 /* Localizable.strings */,
DA35256E2010A5200048DDFC /* Localizable.stringsdict */,
2C7EBE082B34891000B7B12A /* PrivacyInfo.xcprivacy */,
);
name = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -2370,6 +2375,7 @@
children = (
DF345E4029437EE800EC77A7 /* MBXInfo.plist */,
C53C196F1F38EA25008DB406 /* Localizable.strings */,
2C7EBE062B34804200B7B12A /* PrivacyInfo.xcprivacy */,
);
name = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -2971,6 +2977,7 @@
DAAE5F301EAE4C4700832871 /* Localizable.strings in Resources */,
351BEC291E5BD530006FE110 /* Assets.xcassets in Resources */,
C520EE901EBB84F9008805BC /* Navigation.storyboard in Resources */,
2C7EBE092B34891000B7B12A /* PrivacyInfo.xcprivacy in Resources */,
DA3525702010A5210048DDFC /* Localizable.stringsdict in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -3037,6 +3044,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2C7EBE072B34804200B7B12A /* PrivacyInfo.xcprivacy in Resources */,
DF345E4129437EE800EC77A7 /* MBXInfo.plist in Resources */,
C53C196D1F38EA25008DB406 /* Localizable.strings in Resources */,
);
Expand Down
10 changes: 8 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ let package = Package(
"MapboxNavigationNative",
],
exclude: ["Info.plist"],
resources: [.copy("Resources/MBXInfo.plist")]),
resources: [
.copy("Resources/MBXInfo.plist"),
.copy("Resources/PrivacyInfo.xcprivacy"),
]),
.target(
name: "MapboxNavigation",
dependencies: [
Expand All @@ -50,7 +53,10 @@ let package = Package(
"Solar",
],
exclude: ["Info.plist"],
resources: [.copy("Resources/MBXInfo.plist")]),
resources: [
.copy("Resources/MBXInfo.plist"),
.copy("Resources/PrivacyInfo.xcprivacy")
]),
.target(
name: "TestHelper",
dependencies: [
Expand Down
63 changes: 63 additions & 0 deletions Sources/MapboxCoreNavigation/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCoarseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePreciseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>
63 changes: 63 additions & 0 deletions Sources/MapboxNavigation/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeUserID</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeCoarseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePreciseLocation</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>

0 comments on commit 081496a

Please sign in to comment.