From 03ceefbcb51be045e0b4d252442a2fb2939d52ae Mon Sep 17 00:00:00 2001 From: Frank <472730949@qq.com> Date: Wed, 13 Mar 2024 11:19:43 +0800 Subject: [PATCH] Add Privacy manifest --- MJExtension.podspec | 13 ++++++++----- MJExtension.xcodeproj/project.pbxproj | 4 ++++ MJExtension/PrivacyInfo.xcprivacy | 14 ++++++++++++++ Package.swift | 3 ++- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 MJExtension/PrivacyInfo.xcprivacy diff --git a/MJExtension.podspec b/MJExtension.podspec index 630c291..6bf3420 100644 --- a/MJExtension.podspec +++ b/MJExtension.podspec @@ -1,10 +1,10 @@ Pod::Spec.new do |s| s.name = "MJExtension" - s.version = "3.4.1" - s.ios.deployment_target = '9.0' - s.osx.deployment_target = '10.8' - s.tvos.deployment_target = '9.0' - s.watchos.deployment_target = '2.0' + s.version = "3.4.2" + s.ios.deployment_target = '12.0' + s.osx.deployment_target = '10.13' + s.tvos.deployment_target = '12.0' + s.watchos.deployment_target = '4.0' s.summary = "A fast and convenient conversion between JSON and model" s.homepage = "https://github.com/CoderMJLee/MJExtension" s.license = "MIT" @@ -12,5 +12,8 @@ Pod::Spec.new do |s| s.social_media_url = "http://weibo.com/exceptions" s.source = { :git => "https://github.com/CoderMJLee/MJExtension.git", :tag => s.version } s.source_files = "MJExtension" + s.resource_bundles = { + 'MJExtension' => ['MJExtension/PrivacyInfo.xcprivacy'] + } s.requires_arc = true end diff --git a/MJExtension.xcodeproj/project.pbxproj b/MJExtension.xcodeproj/project.pbxproj index 3595bb3..ce4ef10 100644 --- a/MJExtension.xcodeproj/project.pbxproj +++ b/MJExtension.xcodeproj/project.pbxproj @@ -18,6 +18,7 @@ 0107509826E8C5A300AAEA10 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0107509726E8C5A300AAEA10 /* Assets.xcassets */; }; 0107509B26E8C5A300AAEA10 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0107509926E8C5A300AAEA10 /* LaunchScreen.storyboard */; }; 0121B2CE26E9B277008EE973 /* MJCoreDataTestModel.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 0107507626E88DD400AAEA10 /* MJCoreDataTestModel.xcdatamodeld */; }; + 012254B52BA1481B007BD496 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */; }; 0130EE80233C56D8008D2386 /* MJFrenchUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 0130EE7F233C56D8008D2386 /* MJFrenchUser.m */; }; 0179886C24EFA460007F7FBC /* MJTester.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0179886B24EFA460007F7FBC /* MJTester.swift */; }; 0179887024EFA58B007F7FBC /* SwiftModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0179886F24EFA58B007F7FBC /* SwiftModelTests.swift */; }; @@ -80,6 +81,7 @@ 0107509726E8C5A300AAEA10 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 0107509A26E8C5A300AAEA10 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 0107509C26E8C5A300AAEA10 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 0130EE7E233C56D8008D2386 /* MJFrenchUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MJFrenchUser.h; sourceTree = ""; }; 0130EE7F233C56D8008D2386 /* MJFrenchUser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MJFrenchUser.m; sourceTree = ""; }; 0179886A24EFA460007F7FBC /* MJExtensionTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MJExtensionTests-Bridging-Header.h"; sourceTree = ""; }; @@ -249,6 +251,7 @@ 2D2DBA0B2317DB32005A689E /* NSString+MJExtension.m */, 2D2DB9F62317DA64005A689E /* MJExtension.h */, 2D2DB9F72317DA64005A689E /* Info.plist */, + 012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */, ); path = MJExtension; sourceTree = ""; @@ -440,6 +443,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 012254B52BA1481B007BD496 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/MJExtension/PrivacyInfo.xcprivacy b/MJExtension/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..0c89028 --- /dev/null +++ b/MJExtension/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + + diff --git a/Package.swift b/Package.swift index 412263a..6b9eeb5 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.1 +// swift-tools-version:5.3 import PackageDescription @@ -14,6 +14,7 @@ let package = Package( dependencies: [], path: "MJExtension", exclude: ["Info.plist"], + resources: [.copy("PrivacyInfo.xcprivacy")], publicHeadersPath: ".", cxxSettings: [ .headerSearchPath("."),