-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from breez/breezsdkswift
Add BreezSDK.swift as an on demand resource on Flutter plugin
- Loading branch information
Showing
7 changed files
with
66 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ on: | |
ref: | ||
description: 'commit/tag/branch reference' | ||
required: true | ||
type: string | ||
type: string | ||
package-version: | ||
description: 'version for the flutter package (MAJOR.MINOR.BUILD) (no v prefix)' | ||
required: true | ||
type: string | ||
type: string | ||
publish: | ||
description: 'value indicating whether to commit/tag a release.' | ||
required: true | ||
|
@@ -45,10 +45,9 @@ jobs: | |
|
||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.13.9' | ||
channel: 'stable' | ||
channel: 'stable' | ||
|
||
- name: Copy package files | ||
- name: Copy package files | ||
working-directory: flutter | ||
run: | | ||
rm -f ../breez-sdk/libs/sdk-flutter/ios/breez_sdk.podspec.dev | ||
|
@@ -67,6 +66,11 @@ jobs: | |
name: sdk-bindings-android-jniLibs | ||
path: flutter/android/src/main/jniLibs | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: bindings-swift | ||
path: flutter/ios/bindings-swift/Sources/BreezSDK/ | ||
|
||
- name: Set package version | ||
working-directory: flutter | ||
run: | | ||
|
@@ -81,13 +85,13 @@ jobs: | |
flutter/* | ||
!flutter/.git | ||
- name: Tag the Flutter package | ||
- name: Tag the Flutter package | ||
working-directory: flutter | ||
if: ${{ inputs.publish }} | ||
run: | | ||
git config --global user.email [email protected] | ||
git config --global user.name github-actions | ||
git add . | ||
git add . | ||
git commit -m "Update Breez SDK Flutter package to version v${{ inputs.package-version }}" | ||
git push | ||
git tag v${{ inputs.package-version }} -m "v${{ inputs.package-version }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. | ||
# Run `pod lib lint breez_sdk.podspec` to validate before publishing. | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'breez_sdk' | ||
s.version = '0.1.9' | ||
s.summary = 'BreezSDK flutter plugin.' | ||
s.description = <<-DESC | ||
BreezSDK flutter plugin. | ||
DESC | ||
s.homepage = 'https://breez.technology' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Breez' => '[email protected]' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.dependency 'Flutter' | ||
s.platform = :ios, '9.0' | ||
s.static_framework = true | ||
|
||
# Flutter.framework does not contain a i386 slice. | ||
s.pod_target_xcconfig = {'STRIP_STYLE' => 'non-global', 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } | ||
s.swift_version = '5.0' | ||
s.vendored_frameworks = "bindings-swift/breez_sdkFFI.xcframework" | ||
end | ||
s.name = 'breez_sdk' | ||
s.version = '0.2.10' | ||
s.summary = 'BreezSDK flutter plugin.' | ||
s.description = <<-DESC | ||
BreezSDK flutter plugin. | ||
DESC | ||
s.homepage = 'https://breez.technology' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Breez' => '[email protected]' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.on_demand_resources = { 'BreezSDK' => 'bindings-swift/Sources/BreezSDK/BreezSDK.swift' } | ||
s.dependency 'Flutter' | ||
s.platform = :ios, '9.0' | ||
s.static_framework = true | ||
|
||
# Flutter.framework does not contain a i386 slice. | ||
s.pod_target_xcconfig = {'STRIP_STYLE' => 'non-global', 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } | ||
s.swift_version = '5.0' | ||
s.vendored_frameworks = "bindings-swift/breez_sdkFFI.xcframework" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
# | ||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. | ||
# Run `pod lib lint breez_sdk.podspec` to validate before publishing. | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'breez_sdk' | ||
s.version = '0.2.9' | ||
s.version = '0.2.10' | ||
s.summary = 'BreezSDK flutter plugin.' | ||
s.description = <<-DESC | ||
BreezSDK flutter plugin. | ||
|
@@ -14,12 +12,13 @@ Pod::Spec.new do |s| | |
s.author = { 'Breez' => '[email protected]' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.on_demand_resources = { 'BreezSDK' => 'bindings-swift/Sources/BreezSDK/BreezSDK.swift' } | ||
s.dependency 'Flutter' | ||
s.platform = :ios, '9.0' | ||
s.static_framework = true | ||
s.static_framework = true | ||
|
||
# Flutter.framework does not contain a i386 slice. | ||
s.pod_target_xcconfig = {'STRIP_STYLE' => 'non-global', 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } | ||
s.swift_version = '5.0' | ||
s.dependency "breez_sdkFFI", "0.2.9" | ||
s.swift_version = '5.0' | ||
s.dependency "breez_sdkFFI", "0.2.10" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters