Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breez-sdk-flutter files on name changes #577

Merged
merged 3 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ jobs:

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.8'
flutter-version: '3.13.9'
channel: 'stable'

- name: Flutter bridge codegen
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/publish-flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,35 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
path: breez-sdk

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-android-jniLibs
path: flutter/android/src/main/jniLibs

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.8'
flutter-version: '3.13.9'
channel: 'stable'

- name: Copy package files
working-directory: flutter
run: |
rm -f ../breez-sdk/libs/sdk-flutter/ios/breez_sdk.podspec.dev
mv ../breez-sdk/libs/sdk-flutter/ios/breez_sdk.podspec.production ../breez-sdk/libs/sdk-flutter/ios/breez_sdk.podspec
rm -r ios
rm -r android
rm -r lib
cp -r ../breez-sdk/libs/sdk-flutter/ios .
mv ios/breez_sdk.podspec.production ios/breez_sdk.podspec
cp -r ../breez-sdk/libs/sdk-flutter/android .
cp -r ../breez-sdk/libs/sdk-flutter/lib .
cp ../breez-sdk/libs/sdk-flutter/pubspec.yaml .
cp ../breez-sdk/libs/sdk-flutter/pubspec.lock .

cp ../breez-sdk/libs/sdk-flutter/pubspec.lock .

- uses: actions/download-artifact@v3
with:
name: sdk-bindings-android-jniLibs
path: flutter/android/src/main/jniLibs

- name: Set package version
working-directory: flutter
run: |
flutter pub global activate pubspec_version
pubver set ${{ inputs.package-version }}
sed -i.bak -e 's/version:.*/version: ${{ inputs.package-version }}/' pubspec.yaml
rm pubspec.yaml.bak

- name: Archive flutter release
uses: actions/upload-artifact@v3
Expand Down
Loading