Skip to content

Commit

Permalink
Update Flutter package to version v0.0.1-dev7
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 3, 2024
1 parent 60f9d62 commit fe3e7e2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
31 changes: 16 additions & 15 deletions ios/flutter_breez_liquid.podspec
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion pubspec_overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ dependency_overrides:
breez_liquid:
git:
url: [email protected]:breez/breez-liquid-sdk-dart.git
ref: 0.0.1-dev6
ref: 0.0.1-dev7

0 comments on commit fe3e7e2

Please sign in to comment.