Skip to content

Commit

Permalink
MOB-4907 add privacy manifest (#629)
Browse files Browse the repository at this point in the history
* add and expose privacy manifest

* point to KarhooSDK master instead of feature branch
  • Loading branch information
dianakarh authored Mar 5, 2024
1 parent 30a283f commit 9520fcd
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"location" : "https://github.com/karhoo/karhoo-ios-sdk",
"state" : {
"branch" : "master",
"revision" : "5702c782e3f02e186b6f9e8f655b246da548a80f"
"revision" : "f4eac994fc73c645c9b0092adcdce138ddbd93ea"
}
},
{
Expand Down
1 change: 1 addition & 0 deletions KarhooUISDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Pod::Spec.new do |s|
s.platform = :ios, '14.0'
s.ios.deployment_target = '14.0'
s.requires_arc = true
s.resource_bundles = {'KarhooUISDK' => ['KarhooUISDK/PrivacyInfo.xcprivacy']}
s.default_subspec = 'Core'

s.subspec 'Core' do |core|
Expand Down
4 changes: 4 additions & 0 deletions KarhooUISDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@
84011F57291978A40009D858 /* SwiftUIKeyboardAdaptor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84011F56291978A40009D858 /* SwiftUIKeyboardAdaptor.swift */; };
84209B46292D224000B79918 /* KarhooBookingConfirmationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84209B44292D224000B79918 /* KarhooBookingConfirmationView.swift */; };
84209B47292D224000B79918 /* KarhooBookingConfirmationViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84209B45292D224000B79918 /* KarhooBookingConfirmationViewModel.swift */; };
84427AEB2B960BC400DBE7D5 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 84427AEA2B960BC400DBE7D5 /* PrivacyInfo.xcprivacy */; };
84491B1A287F04BC00552722 /* Date+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84491B19287F04BC00552722 /* Date+Extensions.swift */; };
845D9D9B2A5C2DC30028B33E /* country_phone_validation_rules.json in Resources */ = {isa = PBXBuildFile; fileRef = 845D9D9A2A5C2DC30028B33E /* country_phone_validation_rules.json */; };
845D9D9D2A5C33140028B33E /* KarhooCountryPhoneValidationRuleProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 845D9D9C2A5C33140028B33E /* KarhooCountryPhoneValidationRuleProvider.swift */; };
Expand Down Expand Up @@ -1279,6 +1280,7 @@
84011F56291978A40009D858 /* SwiftUIKeyboardAdaptor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftUIKeyboardAdaptor.swift; sourceTree = "<group>"; };
84209B44292D224000B79918 /* KarhooBookingConfirmationView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KarhooBookingConfirmationView.swift; sourceTree = "<group>"; };
84209B45292D224000B79918 /* KarhooBookingConfirmationViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KarhooBookingConfirmationViewModel.swift; sourceTree = "<group>"; };
84427AEA2B960BC400DBE7D5 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
84491B19287F04BC00552722 /* Date+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Date+Extensions.swift"; sourceTree = "<group>"; };
845D9D9A2A5C2DC30028B33E /* country_phone_validation_rules.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = country_phone_validation_rules.json; sourceTree = "<group>"; };
845D9D9C2A5C33140028B33E /* KarhooCountryPhoneValidationRuleProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KarhooCountryPhoneValidationRuleProvider.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3884,6 +3886,7 @@
6BDB6C24274FC0E6006DDF1C /* UIComponents */,
6BB94050274FE91100478ABD /* ViewModels */,
6BDB6C21274E88E4006DDF1C /* Workers */,
84427AEA2B960BC400DBE7D5 /* PrivacyInfo.xcprivacy */,
);
path = KarhooUISDK;
sourceTree = "<group>";
Expand Down Expand Up @@ -4190,6 +4193,7 @@
FC83E2A6221ECC52008FE26D /* TripSummaryHeaderView.xib in Resources */,
092005E0225B91C1001038ED /* SideMenuViewController.xib in Resources */,
407EC7DC22CF564E00F24CFC /* PinView.xib in Resources */,
84427AEB2B960BC400DBE7D5 /* PrivacyInfo.xcprivacy in Resources */,
FC83E2A5221ECC48008FE26D /* TripSummaryViewController.xib in Resources */,
407EC7C522CF564E00F24CFC /* FormButton.xib in Resources */,
092005DF225B91C1001038ED /* MenuContentViewController.xib in Resources */,
Expand Down
83 changes: 83 additions & 0 deletions KarhooUISDK/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<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>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhoneNumber</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeEmailAddress</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeName</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<true/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C56D.1</string>
</array>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/karhoo/karhoo-ios-sdk",
"state" : {
"branch" : "master",
"revision" : "5702c782e3f02e186b6f9e8f655b246da548a80f"
"branch" : "MOB-4907-privacy-manifest",
"revision" : "33d029e33caba2c1a99efa1046ca27c40bc1c768"
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ let package = Package(
dependencies: [.product(name: "KarhooSDK", package: "karhoo-ios-sdk")],
path: "KarhooUISDK",
exclude: ["Extensions/Bundle+extensions/Bundle+current.swift", "Info.plist"],
resources: [.process("Workers/CountryAndPhone/country_phone_validation_rules.json")]),
resources: [
.process("Workers/CountryAndPhone/country_phone_validation_rules.json"),
.copy("PrivacyInfo.xcprivacy")
]),

.target(
name: "KarhooUISDKAdyen",
Expand Down
8 changes: 4 additions & 4 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
KarhooSDK:
:commit: 5702c782e3f02e186b6f9e8f655b246da548a80f
:commit: f4eac994fc73c645c9b0092adcdce138ddbd93ea
:git: https://github.com/karhoo/karhoo-ios-sdk
Nimble:
:git: https://github.com/Quick/Nimble
Expand All @@ -141,14 +141,14 @@ SPEC CHECKSUMS:
CwlMachBadInstructionHandler: b982c7e3e44fcfa1c680e8046f6bba35f3476d65
CwlPosixPreconditionTesting: 4011f0660c0be460b088d10bcfdf351c7e036ac4
CwlPreconditionTesting: 23ed728f2acc2d774fb59101123c943ce0119107
KarhooSDK: 93c2cda6aa5087f475ead6f0b9b180ba094ada9d
KarhooUISDK: bb32ffca8d9f370d1c3abfd4c47d1cf8b40059a4
KarhooSDK: ecb1c2da9e88b9e5cea4b3ee448a1972462f5378
KarhooUISDK: 3b2854da4c02600dcb468486e7c8a67487ea610a
Nimble: 036a4cd1b987630be09cbffd6cda452290e94282
Quick: d0f6d66a9342b1ffe5f161a81a662a4dbfe74692
SnapshotTesting: 6141c48b6aa76ead61431ca665c14ab9a066c53b
SwiftFormat: 19cf302c4ecf4f8c64d394d57589beb145debed5
SwiftLint: c1de071d9d08c8aba837545f6254315bc900e211

PODFILE CHECKSUM: 72901f5721b023cf1ec81093f7369b747949c438
PODFILE CHECKSUM: e388d7a4c1bdf41b454fa834716af7bf595734f3

COCOAPODS: 1.15.2

0 comments on commit 9520fcd

Please sign in to comment.