Skip to content

Commit

Permalink
添加隐私清单
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed Apr 9, 2024
1 parent b065ee2 commit f8866cb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
7 changes: 6 additions & 1 deletion AttributedString.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "AttributedString"
s.version = "3.3.5"
s.version = "3.4.0"
s.summary = "基于Swift字符串插值快速构建你想要的富文本, 支持点击按住等事件获取, 支持多种类型过滤"

s.homepage = "https://github.com/lixiang1994/AttributedString"
Expand Down Expand Up @@ -33,4 +33,9 @@ s.osx.source_files = ["Sources/Extension/AppKit/*.swift"]
s.tvos.source_files = ["Sources/Extension/UIKit/*.swift"]
s.watchos.source_files = ["Sources/Extension/WatchKit/*.swift"]

s.subspec 'Privacy' do |ss|
ss.resource_bundles = {
"Privacy" => 'Sources/PrivacyInfo.xcprivacy'
}
end
end
5 changes: 3 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.3
// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -22,7 +22,8 @@ let package = Package(
.target(
name: "AttributedString",
dependencies: [],
path: "Sources"
path: "Sources",
resources: [.process("PrivacyInfo.xcprivacy")]
)
]
)
14 changes: 14 additions & 0 deletions Sources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
</dict>
</plist>

0 comments on commit f8866cb

Please sign in to comment.