Skip to content

Commit 047d0d5

Browse files
committed
添加隐私清单
1 parent e2f3c34 commit 047d0d5

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

AutoInch.podspec

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

33
s.name = "AutoInch"
4-
s.version = "2.4.1"
4+
s.version = "2.5.0"
55
s.summary = "优雅的iPhone 等比例/精准 适配工具"
66

77
s.homepage = "https://github.com/lixiang1994/AutoInch"
@@ -22,4 +22,9 @@ s.frameworks = "UIKit", "Foundation"
2222

2323
s.swift_versions = ["5.0"]
2424

25+
s.subspec 'Privacy' do |ss|
26+
ss.resource_bundles = {
27+
"Privacy" => 'Sources/PrivacyInfo.xcprivacy'
28+
}
29+
end
2530
end

Demo/Podfile.lock

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
PODS:
2-
- AutoInch (2.2.0)
2+
- AutoInch (2.5.0):
3+
- AutoInch/Privacy (= 2.5.0)
4+
- AutoInch/Privacy (2.5.0)
35

46
DEPENDENCIES:
57
- AutoInch (from `../`)
@@ -9,8 +11,8 @@ EXTERNAL SOURCES:
911
:path: "../"
1012

1113
SPEC CHECKSUMS:
12-
AutoInch: 1239050818579ea0cb009cfb73c153f83e83f3ce
14+
AutoInch: 1d75dc0ef81b295f913b038cc4dd4ecd32e1e1b9
1315

1416
PODFILE CHECKSUM: ecf7d3b2dbf7db87c4f919501ebdb320458e7aef
1517

16-
COCOAPODS: 1.10.1
18+
COCOAPODS: 1.15.2

Package.swift

Lines changed: 3 additions & 2 deletions
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: "AutoInch",
2424
dependencies: [],
25-
path: "Sources"
25+
path: "Sources",
26+
resources: [.process("PrivacyInfo.xcprivacy")]
2627
)
2728
]
2829
)

Sources/PrivacyInfo.xcprivacy

Lines changed: 14 additions & 0 deletions
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)