Skip to content

Commit

Permalink
SPM and CocoaPods
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Apr 27, 2024
1 parent a149fd0 commit 7162397
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ pkg.products = [

let pmk: Target = .target(name: "PromiseKit")
pmk.path = "Sources"
pmk.resources = [
.process("Resources/PrivacyInfo.xcprivacy")
]
pmk.exclude = [
"AnyPromise.swift",
"AnyPromise.m",
Expand Down
3 changes: 3 additions & 0 deletions Package@swift-4.2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ pkg.products = [

let pmk: Target = .target(name: "PromiseKit")
pmk.path = "Sources"
pmk.resources = [
.process("Resources/PrivacyInfo.xcprivacy")
]
pmk.exclude = [
"AnyPromise.swift",
"AnyPromise.m",
Expand Down
3 changes: 3 additions & 0 deletions Package@swift-5.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pkg.products = [

let pmk: Target = .target(name: "PromiseKit")
pmk.path = "Sources"
pmk.resources = [
.process("Resources/PrivacyInfo.xcprivacy")
]
pmk.exclude = [
"AnyPromise.swift",
"AnyPromise.m",
Expand Down
3 changes: 3 additions & 0 deletions Package@swift-5.3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ pkg.products = [

let pmk: Target = .target(name: "PromiseKit")
pmk.path = "Sources"
pmk.resources = [
.process("Resources/PrivacyInfo.xcprivacy")
]
pmk.exclude = [
"AnyPromise.swift",
"AnyPromise.m",
Expand Down
4 changes: 4 additions & 0 deletions PromiseKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Pod::Spec.new do |s|
'OTHER_SWIFT_FLAGS' => '-DPMKCocoaPods',
}

s.resource_bundles = {
'SwifterSwift_Privacy' => 'Resources/PrivacyInfo.xcprivacy'
}

s.subspec 'Accounts' do |ss|
ss.ios.source_files = ss.osx.source_files = 'Extensions/Accounts/Sources/**/*'
ss.exclude_files = 'Extensions/Accounts/Sources/*.plist'
Expand Down

0 comments on commit 7162397

Please sign in to comment.