Skip to content

Commit 03ceefb

Browse files
committed
Add Privacy manifest
1 parent 43dce6b commit 03ceefb

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

MJExtension.podspec

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
Pod::Spec.new do |s|
22
s.name = "MJExtension"
3-
s.version = "3.4.1"
4-
s.ios.deployment_target = '9.0'
5-
s.osx.deployment_target = '10.8'
6-
s.tvos.deployment_target = '9.0'
7-
s.watchos.deployment_target = '2.0'
3+
s.version = "3.4.2"
4+
s.ios.deployment_target = '12.0'
5+
s.osx.deployment_target = '10.13'
6+
s.tvos.deployment_target = '12.0'
7+
s.watchos.deployment_target = '4.0'
88
s.summary = "A fast and convenient conversion between JSON and model"
99
s.homepage = "https://github.com/CoderMJLee/MJExtension"
1010
s.license = "MIT"
1111
s.author = { "MJ Lee" => "[email protected]" }
1212
s.social_media_url = "http://weibo.com/exceptions"
1313
s.source = { :git => "https://github.com/CoderMJLee/MJExtension.git", :tag => s.version }
1414
s.source_files = "MJExtension"
15+
s.resource_bundles = {
16+
'MJExtension' => ['MJExtension/PrivacyInfo.xcprivacy']
17+
}
1518
s.requires_arc = true
1619
end

MJExtension.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
0107509826E8C5A300AAEA10 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0107509726E8C5A300AAEA10 /* Assets.xcassets */; };
1919
0107509B26E8C5A300AAEA10 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0107509926E8C5A300AAEA10 /* LaunchScreen.storyboard */; };
2020
0121B2CE26E9B277008EE973 /* MJCoreDataTestModel.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 0107507626E88DD400AAEA10 /* MJCoreDataTestModel.xcdatamodeld */; };
21+
012254B52BA1481B007BD496 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */; };
2122
0130EE80233C56D8008D2386 /* MJFrenchUser.m in Sources */ = {isa = PBXBuildFile; fileRef = 0130EE7F233C56D8008D2386 /* MJFrenchUser.m */; };
2223
0179886C24EFA460007F7FBC /* MJTester.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0179886B24EFA460007F7FBC /* MJTester.swift */; };
2324
0179887024EFA58B007F7FBC /* SwiftModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0179886F24EFA58B007F7FBC /* SwiftModelTests.swift */; };
@@ -80,6 +81,7 @@
8081
0107509726E8C5A300AAEA10 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
8182
0107509A26E8C5A300AAEA10 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
8283
0107509C26E8C5A300AAEA10 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
84+
012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
8385
0130EE7E233C56D8008D2386 /* MJFrenchUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MJFrenchUser.h; sourceTree = "<group>"; };
8486
0130EE7F233C56D8008D2386 /* MJFrenchUser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MJFrenchUser.m; sourceTree = "<group>"; };
8587
0179886A24EFA460007F7FBC /* MJExtensionTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MJExtensionTests-Bridging-Header.h"; sourceTree = "<group>"; };
@@ -249,6 +251,7 @@
249251
2D2DBA0B2317DB32005A689E /* NSString+MJExtension.m */,
250252
2D2DB9F62317DA64005A689E /* MJExtension.h */,
251253
2D2DB9F72317DA64005A689E /* Info.plist */,
254+
012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */,
252255
);
253256
path = MJExtension;
254257
sourceTree = "<group>";
@@ -440,6 +443,7 @@
440443
isa = PBXResourcesBuildPhase;
441444
buildActionMask = 2147483647;
442445
files = (
446+
012254B52BA1481B007BD496 /* PrivacyInfo.xcprivacy in Resources */,
443447
);
444448
runOnlyForDeploymentPostprocessing = 0;
445449
};

MJExtension/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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:5.3
22

33
import PackageDescription
44

@@ -14,6 +14,7 @@ let package = Package(
1414
dependencies: [],
1515
path: "MJExtension",
1616
exclude: ["Info.plist"],
17+
resources: [.copy("PrivacyInfo.xcprivacy")],
1718
publicHeadersPath: ".",
1819
cxxSettings: [
1920
.headerSearchPath("."),

0 commit comments

Comments
 (0)