Skip to content

Commit

Permalink
Merge pull request #361 from hsingh-texada/master
Browse files Browse the repository at this point in the history
feat: add .xcprivacy file for privacy api's
  • Loading branch information
mikaoj authored Mar 11, 2024
2 parents ff9fd50 + a407bae commit 0afdd6e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BSImagePicker.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Pod::Spec.new do |s|

s.platform = :ios, '10.0'
s.requires_arc = true
s.swift_version = '5.1'
s.swift_version = '5.7'

s.source_files = 'Sources/**/*.swift'

s.resource_bundle = { 'BSImagePicker' => ['Sources/Resources/PrivacyInfo.xcprivacy']}
s.frameworks = 'UIKit', 'Photos'
end
10 changes: 7 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// swift-tools-version:5.1
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "BSImagePicker",
platforms: [.iOS(.v10)],
platforms: [.iOS(.v12)],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
Expand All @@ -22,7 +22,11 @@ let package = Package(
.target(
name: "BSImagePicker",
dependencies: [],
path: "Sources"),
path: "Sources",
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
]
),
.testTarget(
name: "Tests",
dependencies: ["BSImagePicker"],
Expand Down
19 changes: 19 additions & 0 deletions Sources/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>C617.1</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit 0afdd6e

Please sign in to comment.