diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/FileKit.podspec b/FileKit.podspec index 3cb9041..c6907fc 100644 --- a/FileKit.podspec +++ b/FileKit.podspec @@ -12,4 +12,5 @@ Pod::Spec.new do |s| s.tvos.deployment_target = '9.0' s.source = { :git => "https://github.com/nvzqz/FileKit.git", :tag => "v#{s.version}" } s.source_files = "Sources/*.swift" + s.resource_bundles = {'FileKit' => ['Support/PrivacyInfo.xcprivacy']} end diff --git a/Package.swift b/Package.swift index 84bae78..3763a85 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.4 // // Package.swift // FileKit @@ -34,7 +34,8 @@ let package = Package( // Products define the executables and libraries produced by a package, and make them visible to other packages. .library( name: "FileKit", - targets: ["FileKit"]), + targets: ["FileKit"] + ), ], dependencies: [], targets: [ @@ -43,10 +44,13 @@ let package = Package( .target( name: "FileKit", dependencies: [], - path: "Sources"), + path: "Sources", + resources: [.copy("Support/PrivacyInfo.xcprivacy")] + ), .testTarget( name: "FileKitTests", dependencies: ["FileKit"], - path: "Tests") + path: "Tests" + ), ] ) diff --git a/Support/PrivacyInfo.xcprivacy b/Support/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..3f7ea5f --- /dev/null +++ b/Support/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + 0A2A.1 + + + + NSPrivacyCollectedDataTypes + + NSPrivacyTrackingDomains + + NSPrivacyTracking + + +