mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-13 11:04:29 +01:00
* Publish flutter artifacts and package * Publish dart package * Add LICENCE * Force rm * Don't copy lock files * Fix output directory * Fix podspec name * Pass SWIFT_RELEASE_TOKEN * Fix overrides indentation * Update package version on CMake script Update example dependencies * Depend on dart & flutter packages from git on pubspec files * Correct repository links & add publish_to: 'none' * run just clean && just init * Update README.md * Download framework as part of prepare_command * Use wget, then fallback to curl * Remove redundant .zip suffix on the url * Fix release tag * Add v to tag replacement * Fix podspec version * Copy header file * Downgrade vm_service --------- Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
version = '0.1.0' # generated; do not edit
|
|
tag_name = "v#{version}"
|
|
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}"
|
|
local_zip_name = "#{release_tag_name}.zip"
|
|
|
|
Pod::Spec.new do |spec|
|
|
spec.name = 'flutter_breez_liquid'
|
|
spec.version = "#{version}"
|
|
spec.license = { :file => '../LICENSE' }
|
|
spec.homepage = 'https://breez.technology'
|
|
spec.authors = { 'Breez' => 'contact@breez.technology' }
|
|
spec.summary = 'iOS/macOS Flutter bindings for Breez Liquid'
|
|
|
|
spec.source = { :path => '.' }
|
|
spec.source_files = 'Classes/**/*'
|
|
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
|