Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BonMot.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Pod::Spec.new do |s|

s.ios.deployment_target = '11.0'
s.ios.source_files = 'Sources/**/*.swift'
s.resource_bundles = {'BonMot' => ['Source/PrivacyInfo.xcprivacy']}

s.tvos.deployment_target = '11.0'
s.tvos.source_files = 'Sources/**/*.swift'
Expand Down
4 changes: 4 additions & 0 deletions BonMot.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
526C7057268BCC61002C0C71 /* rz-logo-red.png in Resources */ = {isa = PBXBuildFile; fileRef = 526C704F268BCC61002C0C71 /* rz-logo-red.png */; };
526C7058268BCC61002C0C71 /* rz-logo-red.png in Resources */ = {isa = PBXBuildFile; fileRef = 526C704F268BCC61002C0C71 /* rz-logo-red.png */; };
526C7059268BCC86002C0C71 /* EBGaramond12-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = 526C704D268BCC61002C0C71 /* EBGaramond12-Regular.otf */; };
8ABEC01A2BB2D45E0069093C /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 8ABEC0192BB2D45E0069093C /* PrivacyInfo.xcprivacy */; };
AB30D4FF1D9C1EEC006ADC9D /* Composable.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB30D4FE1D9C1EEC006ADC9D /* Composable.swift */; };
AB30D50C1D9CB4FE006ADC9D /* Tab.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB30D50B1D9CB4FE006ADC9D /* Tab.swift */; };
AB30D50D1D9CB4FE006ADC9D /* Tab.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB30D50B1D9CB4FE006ADC9D /* Tab.swift */; };
Expand Down Expand Up @@ -266,6 +267,7 @@
526C704E268BCC61002C0C71 /* rz-logo-black.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "rz-logo-black.png"; sourceTree = "<group>"; };
526C704F268BCC61002C0C71 /* rz-logo-red.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "rz-logo-red.png"; sourceTree = "<group>"; };
5B8FFE322326F79900372DC0 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
8ABEC0192BB2D45E0069093C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
AB167C8F1D997A2C0084808D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
AB30D4FE1D9C1EEC006ADC9D /* Composable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Composable.swift; sourceTree = "<group>"; };
AB30D50B1D9CB4FE006ADC9D /* Tab.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tab.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -560,6 +562,7 @@
AB30D5041D9CB33B006ADC9D /* Helpers */,
ABCD3D5F1D96F02F00273936 /* UIKit */,
AB9C18D11D9975CE00A54787 /* Info.plist */,
8ABEC0192BB2D45E0069093C /* PrivacyInfo.xcprivacy */,
);
path = Sources;
sourceTree = "<group>";
Expand Down Expand Up @@ -873,6 +876,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
8ABEC01A2BB2D45E0069093C /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
7 changes: 5 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ let package = Package(
name: "BonMot",
dependencies: [],
path: "Sources",
exclude: ["Info.plist"]
),
exclude: ["Info.plist"],
resources: [
.copy("PrivacyInfo.xcprivacy"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why copy instead of process?

Choose a reason for hiding this comment

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

As we are not applying a platform-specific rule to the resource we need copy of it.

]),
.testTarget(
name: "BonMotTests",
dependencies: ["BonMot"],
Expand All @@ -35,6 +37,7 @@ let package = Package(
],
resources: [
.process("Resources"),
.copy("PrivacyInfo.xcprivacy"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this needed in the test target?

Choose a reason for hiding this comment

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

No

Choose a reason for hiding this comment

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

not needed

]),
],
swiftLanguageVersions: [.v5]
Expand Down
14 changes: 14 additions & 0 deletions Sources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>