Skip to content

Commit 1c32baf

Browse files
authored
Add privacy manifest (#1603)
1 parent 5d1d35f commit 1c32baf

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

MJRefresh.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Pod::Spec.new do |s|
22
s.name = 'MJRefresh'
3-
s.version = '3.7.6'
3+
s.version = '3.7.7'
44
s.summary = 'An easy way to use pull-to-refresh'
55
s.homepage = 'https://github.com/CoderMJLee/MJRefresh'
66
s.license = 'MIT'
77
s.authors = {'MJ Lee' => '[email protected]'}
8-
s.platform = :ios, '9.0'
8+
s.platform = :ios, '12.0'
99
s.source = {:git => 'https://github.com/CoderMJLee/MJRefresh.git', :tag => s.version}
1010
s.source_files = 'MJRefresh/**/*.{h,m}'
1111
s.exclude_files = 'MJRefresh/include/**'
12-
s.resource = 'MJRefresh/MJRefresh.bundle'
12+
s.resources = 'MJRefresh/MJRefresh.bundle', 'MJRefresh/PrivacyInfo.xcprivacy'
1313
s.requires_arc = true
1414
end

MJRefresh.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
012254B62BA14874007BD496 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 012254B32BA144D6007BD496 /* PrivacyInfo.xcprivacy */; };
1011
013B0687269D6D9A00943978 /* MJRefreshNormalTrailer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E3200F24839B2300069FA7 /* MJRefreshNormalTrailer.m */; };
1112
013B0688269D6D9D00943978 /* MJRefreshTrailer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E3200924839ABA00069FA7 /* MJRefreshTrailer.m */; };
1213
013B0689269D6DA100943978 /* MJRefreshStateTrailer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E3200E24839B2300069FA7 /* MJRefreshStateTrailer.m */; };
@@ -60,6 +61,7 @@
6061
/* End PBXBuildFile section */
6162

6263
/* Begin PBXFileReference section */
64+
012254B32BA144D6007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
6365
01A2CE0A21ACE01500BEE365 /* MJRefreshConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MJRefreshConfig.h; sourceTree = "<group>"; };
6466
01A2CE0B21ACE01500BEE365 /* MJRefreshConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MJRefreshConfig.m; sourceTree = "<group>"; };
6567
2D4698841D0EE6A400CB8025 /* NSBundle+MJRefresh.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSBundle+MJRefresh.h"; sourceTree = "<group>"; };
@@ -163,6 +165,7 @@
163165
2DB2EA151BECBE6700D58F6A /* UIView+MJExtension.h */,
164166
2DB2EA161BECBE6700D58F6A /* UIView+MJExtension.m */,
165167
2D9DF4551F7CE29B0042D6DD /* Info.plist */,
168+
012254B32BA144D6007BD496 /* PrivacyInfo.xcprivacy */,
166169
);
167170
path = MJRefresh;
168171
sourceTree = SOURCE_ROOT;
@@ -355,6 +358,7 @@
355358
isa = PBXResourcesBuildPhase;
356359
buildActionMask = 2147483647;
357360
files = (
361+
012254B62BA14874007BD496 /* PrivacyInfo.xcprivacy in Resources */,
358362
2D9DF46E1F7CE2D60042D6DD /* MJRefresh.bundle in Resources */,
359363
);
360364
runOnlyForDeploymentPostprocessing = 0;

MJRefresh/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>NSPrivacyTrackingDomains</key>
8+
<array/>
9+
<key>NSPrivacyAccessedAPITypes</key>
10+
<array/>
11+
<key>NSPrivacyCollectedDataTypes</key>
12+
<array/>
13+
</dict>
14+
</plist>

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let package = Package(
1515
dependencies: [],
1616
path: "MJRefresh",
1717
exclude: ["Info.plist"],
18-
resources: [.process("MJRefresh.bundle")],
18+
resources: [.process("MJRefresh.bundle"), .copy("PrivacyInfo.xcprivacy")],
1919
publicHeadersPath: "include",
2020
cSettings: [
2121
//Config header path

0 commit comments

Comments
 (0)