From fe3e7e2418c75373b5b246c7565e981ad35a011d Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 3 Jul 2024 09:15:12 +0000 Subject: [PATCH] Update Flutter package to version v0.0.1-dev7 --- android/CMakeLists.txt | 4 ++-- android/build.gradle | 2 +- ios/flutter_breez_liquid.podspec | 31 ++++++++++++++++--------------- pubspec.yaml | 2 +- pubspec_overrides.yaml | 2 +- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt index c76904b..43330f1 100644 --- a/android/CMakeLists.txt +++ b/android/CMakeLists.txt @@ -1,5 +1,5 @@ -set(TagName "0.0.1-dev6") -set(LibraryVersion "breez_liquid-v${TagName}") +set(TagName "v0.0.1-dev7") +set(LibraryVersion "breez_liquid-${TagName}") # Unlike the Windows & Linux CMakeLists.txt, this Android equivalent is just here # to download the Android binaries into src/main/jniLibs/ and does not build anything. diff --git a/android/build.gradle b/android/build.gradle index 41ee7ff..81c6a56 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,7 +1,7 @@ // The Android Gradle Plugin builds the native code with the Android NDK. group 'com.example.flutter_breez_liquid' -version '0.0.1-dev6' +version '0.0.1-dev7' buildscript { repositories { diff --git a/ios/flutter_breez_liquid.podspec b/ios/flutter_breez_liquid.podspec index 79e6f12..5190f52 100644 --- a/ios/flutter_breez_liquid.podspec +++ b/ios/flutter_breez_liquid.podspec @@ -1,24 +1,12 @@ -tag_name = '0.0.1-dev6' -release_tag_name = "breez_liquid-v#{tag_name}" +tag_name = 'v0.0.1-dev7' +release_tag_name = "breez_liquid-#{tag_name}" # We cannot distribute the XCFramework alongside the library directly, # so we have to fetch the correct version here. framework_name = 'breez_liquid_sdk.xcframework' remote_zip_name = "#{framework_name}.zip" -url = "https://github.com/breez/breez-liquid-sdk-flutter/releases/download/#{tag_name}/#{remote_zip_name}.zip" +url = "https://github.com/breez/breez-liquid-sdk-flutter/releases/download/#{tag_name}/#{remote_zip_name}" local_zip_name = "#{release_tag_name}.zip" -` -cd Frameworks -rm -rf #{framework_name} - -if [ ! -f #{local_zip_name} ] -then - curl -L #{url} -o #{local_zip_name} -fi - -unzip #{local_zip_name} -cd - -` Pod::Spec.new do |spec| spec.name = 'flutter_breez_liquid' @@ -33,6 +21,19 @@ Pod::Spec.new do |spec| spec.public_header_files = 'Classes/**/*.h' spec.vendored_frameworks = "Frameworks/#{framework_name}" + spec.prepare_command = <<-CMD + cd Frameworks + rm -rf #{framework_name} + + if [ ! -f #{local_zip_name} ] + then + wget #{url} -O #{local_zip_name} || curl -L #{url} -o #{local_zip_name} + fi + + unzip #{local_zip_name} + cd - + CMD + spec.ios.deployment_target = '12.0' spec.osx.deployment_target = '10.11' end diff --git a/pubspec.yaml b/pubspec.yaml index be1279a..b5f03d6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_breez_liquid description: Flutter wrapper around Dart bindings for the Breez Liquid SDK -version: 0.0.1-dev6 +version: 0.0.1-dev7 homepage: https://breez.technology repository: https://github.com/breez/breez-liquid-sdk-flutter publish_to: 'none' diff --git a/pubspec_overrides.yaml b/pubspec_overrides.yaml index 8f8078b..aa34c81 100644 --- a/pubspec_overrides.yaml +++ b/pubspec_overrides.yaml @@ -3,4 +3,4 @@ dependency_overrides: breez_liquid: git: url: git@github.com:breez/breez-liquid-sdk-dart.git - ref: 0.0.1-dev6 + ref: 0.0.1-dev7