diff --git a/M3U8Kit.podspec b/M3U8Kit.podspec index 2f33962..1e2815f 100644 --- a/M3U8Kit.podspec +++ b/M3U8Kit.podspec @@ -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." @@ -25,13 +25,20 @@ Pod::Spec.new do |spec| spec.author = "M3U8Kit" spec.source = { :git => "https://github.com/M3U8Kit/M3U8Parser.git", :tag => spec.version } - spec.ios.deployment_target = '9.0' - spec.osx.deployment_target = '10.10' - spec.tvos.deployment_target = '9.0' - spec.watchos.deployment_target = '2.0' + # 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 = '12.0' + spec.osx.deployment_target = '10.13' + spec.tvos.deployment_target = '12.0' + spec.watchos.deployment_target = '4.0' spec.requires_arc = true 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 diff --git a/M3U8Kit.xcodeproj/project.pbxproj b/M3U8Kit.xcodeproj/project.pbxproj index 78191a5..de2aafc 100644 --- a/M3U8Kit.xcodeproj/project.pbxproj +++ b/M3U8Kit.xcodeproj/project.pbxproj @@ -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 */; }; @@ -71,6 +72,7 @@ 011650B024483537001E4A35 /* M3U8Parser.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = M3U8Parser.modulemap; sourceTree = ""; }; 011F5485222E73BA00966918 /* StringExample.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StringExample.h; sourceTree = ""; }; 011F5486222E73BA00966918 /* StringExample.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StringExample.m; sourceTree = ""; }; + 012254B72BA14A90007BD496 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; 012455B125257F2900AF62C3 /* M3U8ExtXByteRange.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = M3U8ExtXByteRange.h; sourceTree = ""; }; 012455B225257F2900AF62C3 /* M3U8ExtXByteRange.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = M3U8ExtXByteRange.m; sourceTree = ""; }; 0177A38E1FE7B31800477DF9 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; @@ -190,6 +192,7 @@ 9D79F1361EF784E500D16AFD /* M3U8TagsAndAttributes.h */, 9D79F1371EF784E500D16AFD /* MasterPlaylist */, 9D79F1421EF784E500D16AFD /* MediaPlaylist */, + 012254B72BA14A90007BD496 /* PrivacyInfo.xcprivacy */, ); path = Source; sourceTree = ""; @@ -360,6 +363,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + 012254B82BA14A90007BD496 /* PrivacyInfo.xcprivacy in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/Package.swift b/Package.swift index 81c09e9..8229815 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.0 +// swift-tools-version:5.3 import Foundation import PackageDescription @@ -14,6 +14,7 @@ let package = Package( name: "M3U8Parser", dependencies: [], path: "Source", + resources: [.copy("PrivacyInfo.xcprivacy")], publicHeadersPath: ".", cxxSettings: [ .headerSearchPath(".") diff --git a/Source/PrivacyInfo.xcprivacy b/Source/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..0c89028 --- /dev/null +++ b/Source/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTracking + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + +