diff --git a/Package.swift b/Package.swift index 838a3bb..41d2ebe 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( @@ -15,12 +15,11 @@ 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", - exclude: ["Pageboy.h"] + exclude: ["Pageboy.h", "PrivacyInfo.xcprivacy"], + resources: [.process("PrivacyInfo.xcprivacy")] ), .testTarget( name: "PageboyTests", 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 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 + + +