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 bd424a7 commit 28c7ef3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
9 changes: 8 additions & 1 deletion M3U8Kit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |spec|
spec.name = "M3U8Kit"
spec.version = "1.0.2"
spec.version = "1.1.0"
spec.summary = "A light weight m3u8 parser."


Expand All @@ -25,6 +25,10 @@ Pod::Spec.new do |spec|
spec.author = "M3U8Kit"
spec.source = { :git => "https://github.com/M3U8Kit/M3U8Parser.git", :tag => spec.version }

# Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource
# bundle for the privacy manifest.
spec.cocoapods_version = '>= 1.12.0'

spec.ios.deployment_target = '9.0'
spec.osx.deployment_target = '10.10'
spec.tvos.deployment_target = '9.0'
Expand All @@ -33,5 +37,8 @@ Pod::Spec.new do |spec|

spec.source_files = 'Source/*.{h,m}', 'Source/**/*.{h,m}'
spec.public_header_files = 'Source/*.h', 'Source/**/*.h'
spec.resource_bundles = {
'M3U8Kit' => ['Source/PrivacyInfo.xcprivacy']
}

end
4 changes: 4 additions & 0 deletions M3U8Kit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
011F5487222E73BA00966918 /* StringExample.m in Sources */ = {isa = PBXBuildFile; fileRef = 011F5486222E73BA00966918 /* StringExample.m */; };
012254B82BA14A90007BD496 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 012254B72BA14A90007BD496 /* PrivacyInfo.xcprivacy */; };
012455BB2525ABA600AF62C3 /* M3U8ExtXByteRange.h in Headers */ = {isa = PBXBuildFile; fileRef = 012455B125257F2900AF62C3 /* M3U8ExtXByteRange.h */; settings = {ATTRIBUTES = (Public, ); }; };
012455C22525ABF700AF62C3 /* M3U8ExtXByteRange.m in Sources */ = {isa = PBXBuildFile; fileRef = 012455B225257F2900AF62C3 /* M3U8ExtXByteRange.m */; };
012455C62525ABFD00AF62C3 /* M3U8ExtXByteRange.m in Sources */ = {isa = PBXBuildFile; fileRef = 012455B225257F2900AF62C3 /* M3U8ExtXByteRange.m */; };
Expand Down Expand Up @@ -71,6 +72,7 @@
011650B024483537001E4A35 /* M3U8Parser.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = M3U8Parser.modulemap; sourceTree = "<group>"; };
011F5485222E73BA00966918 /* StringExample.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StringExample.h; sourceTree = "<group>"; };
011F5486222E73BA00966918 /* StringExample.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StringExample.m; sourceTree = "<group>"; };
012254B72BA14A90007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
012455B125257F2900AF62C3 /* M3U8ExtXByteRange.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = M3U8ExtXByteRange.h; sourceTree = "<group>"; };
012455B225257F2900AF62C3 /* M3U8ExtXByteRange.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = M3U8ExtXByteRange.m; sourceTree = "<group>"; };
0177A38E1FE7B31800477DF9 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -190,6 +192,7 @@
9D79F1361EF784E500D16AFD /* M3U8TagsAndAttributes.h */,
9D79F1371EF784E500D16AFD /* MasterPlaylist */,
9D79F1421EF784E500D16AFD /* MediaPlaylist */,
012254B72BA14A90007BD496 /* PrivacyInfo.xcprivacy */,
);
path = Source;
sourceTree = "<group>";
Expand Down Expand Up @@ -360,6 +363,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
012254B82BA14A90007BD496 /* PrivacyInfo.xcprivacy in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
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.0
// swift-tools-version:5.3

import Foundation
import PackageDescription
Expand All @@ -14,6 +14,7 @@ let package = Package(
name: "M3U8Parser",
dependencies: [],
path: "Source",
resources: [.copy("PrivacyInfo.xcprivacy")],
publicHeadersPath: ".",
cxxSettings: [
.headerSearchPath(".")
Expand Down
14 changes: 14 additions & 0 deletions Source/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>

0 comments on commit 28c7ef3

Please sign in to comment.