From b3214ff5524b33dfea60d62d608c2f20062f2742 Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Sat, 6 Apr 2024 08:34:20 +0100 Subject: [PATCH 1/5] Clean up Package.swift --- Package.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Package.swift b/Package.swift index 838a3bb..2084a60 100644 --- a/Package.swift +++ b/Package.swift @@ -15,8 +15,6 @@ let package = Package( targets: ["Pageboy"]) ], targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. .target( name: "Pageboy", path: "Sources/Pageboy", From bfa7b73c065e6c651f06a714eea51e62f28a9712 Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Sat, 6 Apr 2024 08:35:09 +0100 Subject: [PATCH 2/5] Add PrivacyInfo.xcprivacy --- Sources/Pageboy.xcodeproj/project.pbxproj | 2 ++ Sources/Pageboy/PrivacyInfo.xcprivacy | 14 ++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Sources/Pageboy/PrivacyInfo.xcprivacy diff --git a/Sources/Pageboy.xcodeproj/project.pbxproj b/Sources/Pageboy.xcodeproj/project.pbxproj index c49f944..12bb831 100755 --- a/Sources/Pageboy.xcodeproj/project.pbxproj +++ b/Sources/Pageboy.xcodeproj/project.pbxproj @@ -126,6 +126,7 @@ D681E34A1E548C0E007C08F5 /* PageboyConfigurationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PageboyConfigurationTests.swift; sourceTree = ""; }; D681E34C1E548D12007C08F5 /* TestPageboyDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestPageboyDelegate.swift; sourceTree = ""; }; D69816B91E829043004096BA /* PageboyPropertyTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PageboyPropertyTests.swift; sourceTree = ""; }; + E8529ACB2BC1328B00C96B7B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -237,6 +238,7 @@ isa = PBXGroup; children = ( D623B1BA1E1D0C6A00527F3D /* Pageboy.h */, + E8529ACB2BC1328B00C96B7B /* PrivacyInfo.xcprivacy */, D623B1D11E1D2DF200527F3D /* PageboyViewController.swift */, 46ADAAC7208F7EB200974529 /* PageboyViewController+Management.swift */, 46ADAAC6208F7EB100974529 /* PageboyViewController+ScrollDetection.swift */, diff --git a/Sources/Pageboy/PrivacyInfo.xcprivacy b/Sources/Pageboy/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..e540750 --- /dev/null +++ b/Sources/Pageboy/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + From 9a207e2043f860f90382eb215a7fa50eaf1661c1 Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Sat, 6 Apr 2024 08:37:05 +0100 Subject: [PATCH 3/5] Fix SPM platform support --- Package.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index 2084a60..fffd175 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.10 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -6,8 +6,8 @@ import PackageDescription let package = Package( name: "Pageboy", platforms: [ - .iOS(.v11), - .tvOS(.v11) + .iOS(.v12), + .tvOS(.v12) ], products: [ .library( From 53901c9825848c2278bef2bf31559ed492bfac57 Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Sat, 6 Apr 2024 08:37:44 +0100 Subject: [PATCH 4/5] Update Package to process PrivacyInfo --- Package.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index fffd175..41d2ebe 100644 --- a/Package.swift +++ b/Package.swift @@ -18,7 +18,8 @@ let package = Package( .target( name: "Pageboy", path: "Sources/Pageboy", - exclude: ["Pageboy.h"] + exclude: ["Pageboy.h", "PrivacyInfo.xcprivacy"], + resources: [.process("PrivacyInfo.xcprivacy")] ), .testTarget( name: "PageboyTests", From 899bbc3cfe0b17519c6119f73883bd9bb7e71088 Mon Sep 17 00:00:00 2001 From: Merrick Sapsford Date: Sat, 6 Apr 2024 08:39:06 +0100 Subject: [PATCH 5/5] Add to podspec --- Pageboy.podspec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pageboy.podspec b/Pageboy.podspec index a010bcc..210abed 100644 --- a/Pageboy.podspec +++ b/Pageboy.podspec @@ -23,4 +23,6 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/uias/Pageboy.git", :tag => s.version.to_s } s.source_files = "Sources/Pageboy/**/*.{h,m,swift}" + s.resource_bundles = {'Pageboy' => ['Sources/Pageboy/PrivacyInfo.xcprivacy']} + end