diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27b5b0de..6bab858b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,8 +7,11 @@ on: jobs: Test: - runs-on: macOS-latest + runs-on: macOS-14 steps: + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable - uses: actions/checkout@v2 - name: Prepare run: | diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 00000000..4e1844eb --- /dev/null +++ b/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "Pageboy", + "repositoryURL": "https://github.com/uias/Pageboy", + "state": { + "branch": null, + "revision": "cd9f976a7d92f4fb56965c15da65b4c1b35b2460", + "version": "4.1.0" + } + } + ] + }, + "version": 1 +} diff --git a/Package.swift b/Package.swift index d2b44832..4dd66ebe 100644 --- a/Package.swift +++ b/Package.swift @@ -1,5 +1,5 @@ -// swift-tools-version:5.0 -// The swift-tools-version declares the minimum version of Swift required to build this package. +// swift-tools-version:5.10 + import PackageDescription let package = Package( @@ -16,14 +16,12 @@ let package = Package( .package(url: "https://github.com/uias/Pageboy", from: "4.1.0") ], 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: "Tabman", dependencies: ["Pageboy"], - path: ".", - exclude: ["Sources/Tabman/Tabman.h", "Sources/Tabman/Info.plist"], - sources: ["Sources/Tabman"], + path: "Sources/Tabman", + exclude: ["Tabman.h", "Info.plist", "PrivacyInfo.xcprivacy"], + resources: [.process("PrivacyInfo.xcprivacy")], linkerSettings: [ .linkedFramework("UIKit") ] diff --git a/Sources/Tabman.xcodeproj/project.pbxproj b/Sources/Tabman.xcodeproj/project.pbxproj index 9e1c090b..69869166 100644 --- a/Sources/Tabman.xcodeproj/project.pbxproj +++ b/Sources/Tabman.xcodeproj/project.pbxproj @@ -171,6 +171,7 @@ D62AC0C21E5733810020B8AE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; D62AC0F41E5733FE0020B8AE /* TabmanViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TabmanViewController.swift; sourceTree = ""; }; D65F101C1EAEA2730090980C /* Pageboy.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Pageboy.framework; path = ../Carthage/Build/iOS/Pageboy.framework; sourceTree = ""; }; + E8529AE72BC1384200C96B7B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -471,6 +472,7 @@ isa = PBXGroup; children = ( D62AC0B51E5733810020B8AE /* Tabman.h */, + E8529AE72BC1384200C96B7B /* PrivacyInfo.xcprivacy */, D62AC0F41E5733FE0020B8AE /* TabmanViewController.swift */, 464264DE217E12A20001C4AF /* TabmanViewController+Insets.swift */, 46B7FDF920BC52D000E9BB7E /* Bar */, @@ -990,7 +992,7 @@ repositoryURL = "https://github.com/uias/Pageboy"; requirement = { kind = upToNextMajorVersion; - minimumVersion = 4.0.0; + minimumVersion = 4.1.0; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/Sources/Tabman/PrivacyInfo.xcprivacy b/Sources/Tabman/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..e5407507 --- /dev/null +++ b/Sources/Tabman/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTracking + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + + diff --git a/Tabman.podspec b/Tabman.podspec index 245a60d3..4f4775fd 100644 --- a/Tabman.podspec +++ b/Tabman.podspec @@ -22,6 +22,8 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/uias/Tabman.git", :tag => s.version.to_s } s.source_files = "Sources/Tabman/**/*.{h,m,swift}" + s.resource_bundles = {'Tabman' => ['Sources/Tabman/PrivacyInfo.xcprivacy']} + s.dependency 'Pageboy', '~> 4.1.0' end