Skip to content

Commit

Permalink
Merge pull request #15 from silvgabriel/privacyinfo
Browse files Browse the repository at this point in the history
Adds PrivacyInfo to meet Apple's request
  • Loading branch information
thejohnlima authored Apr 9, 2024
2 parents 5119a84 + 722f254 commit 7b08022
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Examples/iOS/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- KeychainSwift (20.0.0)
- LMStorage (1.0.6):
- LMStorage (1.0.7):
- KeychainSwift

DEPENDENCIES:
Expand All @@ -16,8 +16,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
LMStorage: f231736ce408aebabcdb90b1329e7695daa91a93
LMStorage: c9ed5f5f798dee0bc9147c5358273cc47f706376

PODFILE CHECKSUM: 208c4e2d0bc43c26e11d7fc08d1151f5fc532b17

COCOAPODS: 1.11.3
COCOAPODS: 1.15.2
3 changes: 2 additions & 1 deletion LMStorage.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LMStorage"
s.version = "1.0.6"
s.version = "1.0.7"
s.summary = "💾 LMStorage is a framework which reduces the complexity of managing a persistent layer."
s.requires_arc = true
s.homepage = "https://github.com/thejohnlima/LMStorage"
Expand All @@ -12,6 +12,7 @@ Pod::Spec.new do |s|
s.watchos.deployment_target = "4.0"
s.source = { :git => "https://github.com/thejohnlima/LMStorage.git", :tag => "#{s.version}" }
s.source_files = "Sources/LMStorage/**/*.{swift}"
s.resource_bundles = {'LMStorage_Privacy' => 'Sources/LMStorage/PrivacyInfo.xcprivacy'}
s.swift_version = "5.0"
s.dependency 'KeychainSwift'
end
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ let package = Package(
name: "LMStorage",
dependencies: [
.product(name: "KeychainSwift", package: "keychain-swift")
],
resources: [
.copy("PrivacyInfo.xcprivacy")
]
),
.testTarget(
Expand Down
18 changes: 18 additions & 0 deletions Sources/LMStorage/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>1C8F.1</string>
<string>C56D.1</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit 7b08022

Please sign in to comment.