Skip to content

Commit f8866cb

Browse files
committed
添加隐私清单
1 parent b065ee2 commit f8866cb

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

AttributedString.podspec

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

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

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

36+
s.subspec 'Privacy' do |ss|
37+
ss.resource_bundles = {
38+
"Privacy" => 'Sources/PrivacyInfo.xcprivacy'
39+
}
40+
end
3641
end

Package.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.5
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -22,7 +22,8 @@ let package = Package(
2222
.target(
2323
name: "AttributedString",
2424
dependencies: [],
25-
path: "Sources"
25+
path: "Sources",
26+
resources: [.process("PrivacyInfo.xcprivacy")]
2627
)
2728
]
2829
)

Sources/PrivacyInfo.xcprivacy

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTracking</key>
6+
<false/>
7+
<key>NSPrivacyAccessedAPITypes</key>
8+
<array/>
9+
<key>NSPrivacyTrackingDomains</key>
10+
<array/>
11+
<key>NSPrivacyCollectedDataTypes</key>
12+
<array/>
13+
</dict>
14+
</plist>

0 commit comments

Comments
 (0)