mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-17 13:04:20 +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>
33 lines
1.3 KiB
CMake
33 lines
1.3 KiB
CMake
set(TagName "v0.1.0") # generated; do not edit
|
|
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.
|
|
# The binary download/extraction is difficult to do concisely in Groovy/Gradle,
|
|
# at least across host platforms, so we are just reusing our Linux/Windows logic.
|
|
|
|
# The Flutter tooling requires that developers have CMake 3.10 or later
|
|
# installed. You should not increase this version, as doing so will cause
|
|
# the plugin to fail to compile for some customers of the plugin.
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
# Download the binaries if they are not already present.
|
|
set(LibRoot "${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs")
|
|
set(ArchivePath "${CMAKE_CURRENT_SOURCE_DIR}/${LibraryVersion}.tar.gz")
|
|
if(NOT EXISTS ${ArchivePath})
|
|
file(DOWNLOAD
|
|
"https://github.com/breez/breez-liquid-sdk-flutter/releases/download/${TagName}/android.tar.gz"
|
|
${ArchivePath}
|
|
TLS_VERIFY ON
|
|
)
|
|
endif()
|
|
|
|
# Extract the binaries, overriding any already present.
|
|
file(REMOVE_RECURSE ${LibRoot})
|
|
file(MAKE_DIRECTORY ${LibRoot})
|
|
execute_process(
|
|
COMMAND ${CMAKE_COMMAND} -E tar xzf ${ArchivePath}
|
|
WORKING_DIRECTORY ${LibRoot}
|
|
)
|
|
|