From 1c32baf8a657d9361d9df0c45cfdefc8bf1e34a1 Mon Sep 17 00:00:00 2001 From: Frank <472730949@qq.com> Date: Wed, 13 Mar 2024 15:55:21 +0800 Subject: [PATCH] Add privacy manifest (#1603) --- MJRefresh.podspec | 6 +++--- MJRefresh.xcodeproj/project.pbxproj | 4 ++++ MJRefresh/PrivacyInfo.xcprivacy | 14 ++++++++++++++ Package.swift | 2 +- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 MJRefresh/PrivacyInfo.xcprivacy diff --git a/MJRefresh.podspec b/MJRefresh.podspec index 2eb2e484..17bf5269 100644 --- a/MJRefresh.podspec +++ b/MJRefresh.podspec @@ -1,14 +1,14 @@ Pod::Spec.new do |s| s.name = 'MJRefresh' - s.version = '3.7.6' + s.version = '3.7.7' s.summary = 'An easy way to use pull-to-refresh' s.homepage = 'https://github.com/CoderMJLee/MJRefresh' s.license = 'MIT' s.authors = {'MJ Lee' => 'richermj123go@vip.qq.com'} - s.platform = :ios, '9.0' + s.platform = :ios, '12.0' s.source = {:git => 'https://github.com/CoderMJLee/MJRefresh.git', :tag => s.version} s.source_files = 'MJRefresh/**/*.{h,m}' s.exclude_files = 'MJRefresh/include/**' - s.resource = 'MJRefresh/MJRefresh.bundle' + s.resources = 'MJRefresh/MJRefresh.bundle', 'MJRefresh/PrivacyInfo.xcprivacy' s.requires_arc = true end diff --git a/MJRefresh.xcodeproj/project.pbxproj b/MJRefresh.xcodeproj/project.pbxproj index 8ae5f1ca..13e5d2e5 100644 --- a/MJRefresh.xcodeproj/project.pbxproj +++ b/MJRefresh.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 012254B62BA14874007BD496 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 012254B32BA144D6007BD496 /* PrivacyInfo.xcprivacy */; }; 013B0687269D6D9A00943978 /* MJRefreshNormalTrailer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E3200F24839B2300069FA7 /* MJRefreshNormalTrailer.m */; }; 013B0688269D6D9D00943978 /* MJRefreshTrailer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E3200924839ABA00069FA7 /* MJRefreshTrailer.m */; }; 013B0689269D6DA100943978 /* MJRefreshStateTrailer.m in Sources */ = {isa = PBXBuildFile; fileRef = 88E3200E24839B2300069FA7 /* MJRefreshStateTrailer.m */; }; @@ -60,6 +61,7 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 012254B32BA144D6007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 01A2CE0A21ACE01500BEE365 /* MJRefreshConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MJRefreshConfig.h; sourceTree = ""; }; 01A2CE0B21ACE01500BEE365 /* MJRefreshConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MJRefreshConfig.m; sourceTree = ""; }; 2D4698841D0EE6A400CB8025 /* NSBundle+MJRefresh.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSBundle+MJRefresh.h"; sourceTree = ""; }; @@ -163,6 +165,7 @@ 2DB2EA151BECBE6700D58F6A /* UIView+MJExtension.h */, 2DB2EA161BECBE6700D58F6A /* UIView+MJExtension.m */, 2D9DF4551F7CE29B0042D6DD /* Info.plist */, + 012254B32BA144D6007BD496 /* PrivacyInfo.xcprivacy */, ); path = MJRefresh; sourceTree = SOURCE_ROOT; @@ -355,6 +358,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 012254B62BA14874007BD496 /* PrivacyInfo.xcprivacy in Resources */, 2D9DF46E1F7CE2D60042D6DD /* MJRefresh.bundle in Resources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/MJRefresh/PrivacyInfo.xcprivacy b/MJRefresh/PrivacyInfo.xcprivacy new file mode 100644 index 00000000..0c890280 --- /dev/null +++ b/MJRefresh/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + + diff --git a/Package.swift b/Package.swift index edf1fe26..59534318 100644 --- a/Package.swift +++ b/Package.swift @@ -15,7 +15,7 @@ let package = Package( dependencies: [], path: "MJRefresh", exclude: ["Info.plist"], - resources: [.process("MJRefresh.bundle")], + resources: [.process("MJRefresh.bundle"), .copy("PrivacyInfo.xcprivacy")], publicHeadersPath: "include", cSettings: [ //Config header path