Skip to content

Commit

Permalink
Add Privacy manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfcon committed Mar 13, 2024
1 parent 43dce6b commit e58c62a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
11 changes: 7 additions & 4 deletions MJExtension.podspec
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
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.version = "3.4.2"
s.ios.deployment_target = '12.0'
s.osx.deployment_target = '10.13'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.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"
s.author = { "MJ Lee" => "[email protected]" }
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
4 changes: 4 additions & 0 deletions MJExtension.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -80,6 +81,7 @@
0107509726E8C5A300AAEA10 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0107509A26E8C5A300AAEA10 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
0107509C26E8C5A300AAEA10 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
0130EE7E233C56D8008D2386 /* MJFrenchUser.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MJFrenchUser.h; sourceTree = "<group>"; };
0130EE7F233C56D8008D2386 /* MJFrenchUser.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MJFrenchUser.m; sourceTree = "<group>"; };
0179886A24EFA460007F7FBC /* MJExtensionTests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MJExtensionTests-Bridging-Header.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -249,6 +251,7 @@
2D2DBA0B2317DB32005A689E /* NSString+MJExtension.m */,
2D2DB9F62317DA64005A689E /* MJExtension.h */,
2D2DB9F72317DA64005A689E /* Info.plist */,
012254B42BA1481B007BD496 /* PrivacyInfo.xcprivacy */,
);
path = MJExtension;
sourceTree = "<group>";
Expand Down Expand Up @@ -440,6 +443,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
012254B52BA1481B007BD496 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
14 changes: 14 additions & 0 deletions MJExtension/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
</dict>
</plist>
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.3

import PackageDescription

Expand All @@ -14,6 +14,7 @@ let package = Package(
dependencies: [],
path: "MJExtension",
exclude: ["Info.plist"],
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cxxSettings: [
.headerSearchPath("."),
Expand Down

0 comments on commit e58c62a

Please sign in to comment.