Skip to content

Commit

Permalink
Merge pull request #937 from breez/savage-swift-package-fix
Browse files Browse the repository at this point in the history
Merge Swift package sources into one BreezSDK target
  • Loading branch information
dangeross authored Apr 17, 2024
2 parents 370cb6b + 49944fd commit 65a87eb
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion libs/sdk-bindings/bindings-swift/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.build/
*.xcodeproj
*.podspec
Sources/BreezSDK
Sources/BreezSDK/BreezSDK.swift
**/breez_sdkFFI.h
**/breez_sdkFFI
**/breez_sdkFFI.modulemap
3 changes: 1 addition & 2 deletions libs/sdk-bindings/bindings-swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ let package = Package(
.iOS(.v11),
],
products: [
.library(name: "BreezSDK", targets: ["breez_sdkFFI", "BreezSDK", "BreezSDKNotification"]),
.library(name: "BreezSDK", targets: ["breez_sdkFFI", "BreezSDK"]),
],
targets: [
.binaryTarget(name: "breez_sdkFFI", path: "./breez_sdkFFI.xcframework"),
.target(name: "BreezSDK", dependencies: ["breez_sdkFFI"]),
.target(name: "BreezSDKNotification", dependencies: ["BreezSDK"]),
.testTarget(name: "BreezSDKTests", dependencies: ["BreezSDK"]),
]
)
5 changes: 2 additions & 3 deletions libs/sdk-flutter/ios/breez_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.on_demand_resources = {
'BreezSDK' => [
'bindings-swift/Sources/BreezSDK/BreezSDK.swift',
'bindings-swift/Sources/BreezSDKNotification/*.swift',
'bindings-swift/Sources/BreezSDKNotification/**/*.swift'
'bindings-swift/Sources/BreezSDK/*.swift',
'bindings-swift/Sources/BreezSDK/**/*.swift'
]
}
s.dependency 'Flutter'
Expand Down
5 changes: 2 additions & 3 deletions libs/sdk-flutter/ios/breez_sdk.podspec.production
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.on_demand_resources = {
'BreezSDK' => [
'bindings-swift/Sources/BreezSDK/BreezSDK.swift',
'bindings-swift/Sources/BreezSDKNotification/*.swift',
'bindings-swift/Sources/BreezSDKNotification/**/*.swift'
'bindings-swift/Sources/BreezSDK/*.swift',
'bindings-swift/Sources/BreezSDK/**/*.swift'
]
}
s.dependency 'Flutter'
Expand Down

0 comments on commit 65a87eb

Please sign in to comment.