mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-20 22:44:20 +01:00
* Add just recipe to update version number on podspec files & Cmake scripts * Resolve relative path of root from script directory * fix: Update production podpsec's version with version script * Run 'just version' * Update melos dependency * Check if versions on podspec & cmake scripts were updated properly on CI * Update versions on podspec & cmake scripts on publish * Declare license type on podspec * Add platform-specific link recipes * Add copy recipes to be used in CI workflows
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
version = '0.2.1' # 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_sdk_liquid.xcframework'
|
|
remote_zip_name = "#{framework_name}.zip"
|
|
url = "https://github.com/breez/breez-sdk-liquid-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', :type => 'MIT 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
|