diff --git a/bindings_flutter/CHANGELOG.md b/bindings_flutter/CHANGELOG.md index 2c83fc4e3..55c610cd5 100644 --- a/bindings_flutter/CHANGELOG.md +++ b/bindings_flutter/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.1-development.4 +- use bundled artifacts in android CMakeLists build + ## 0.0.1-development.3 - expose `user_preferences_encrypt()` and `user_preferences_decrypt()` diff --git a/bindings_flutter/android/CMakeLists.txt b/bindings_flutter/android/CMakeLists.txt index 6eff0b52a..da3b207b0 100644 --- a/bindings_flutter/android/CMakeLists.txt +++ b/bindings_flutter/android/CMakeLists.txt @@ -15,6 +15,11 @@ set(ArchiveUrl "https://github.com/xmtp/libxmtp/releases/download/${ReleaseTag}/ set(ArchivePath "${CMAKE_CURRENT_SOURCE_DIR}/${ArchiveFileName}") set(LibRoot "${CMAKE_CURRENT_SOURCE_DIR}/src/main/jniLibs") +# NOTE: For now, we short-circuit the download by copying from bundled artifacts/ +# TODO: actually download the published release at first-build instead +# See also setup-apple-artifacts.sh (which does the same thing for iOS/macOS) +file(COPY "../artifacts/android/${ArchiveFileName}" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}") + if(NOT EXISTS ${ArchivePath}) message(STATUS "Downloading ${ArchiveUrl} to ${ArchivePath}") file(DOWNLOAD diff --git a/bindings_flutter/android/gradle.properties b/bindings_flutter/android/gradle.properties index 366dbec15..4e8463764 100644 --- a/bindings_flutter/android/gradle.properties +++ b/bindings_flutter/android/gradle.properties @@ -1,4 +1,4 @@ -xmtp_bindings_flutter_version=0.0.1-development.3 +xmtp_bindings_flutter_version=0.0.1-development.4 # These versions should be kept in sync: # - pubspec.yaml # - android/gradle.properties diff --git a/bindings_flutter/ios/xmtp_bindings_flutter.podspec b/bindings_flutter/ios/xmtp_bindings_flutter.podspec index 643bea369..01a9ef1de 100644 --- a/bindings_flutter/ios/xmtp_bindings_flutter.podspec +++ b/bindings_flutter/ios/xmtp_bindings_flutter.podspec @@ -4,7 +4,7 @@ # See generally # https://cjycode.com/flutter_rust_bridge/library/platform_setup/ios_and_macos.html -release_version = '0.0.1-development.3' +release_version = '0.0.1-development.4' # These versions should be kept in sync: # - pubspec.yaml # - android/gradle.properties diff --git a/bindings_flutter/linux/CMakeLists.txt b/bindings_flutter/linux/CMakeLists.txt index 1d786f390..97bdb52d0 100644 --- a/bindings_flutter/linux/CMakeLists.txt +++ b/bindings_flutter/linux/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10) # TODO: set this externally as part of invoking linux build set(LibraryName "xmtp_bindings_flutter") -set(ReleaseVersion "0.0.1-development.3") +set(ReleaseVersion "0.0.1-development.4") # Download the binaries if they are not already present. project("${LibraryName}") diff --git a/bindings_flutter/macos/xmtp_bindings_flutter.podspec b/bindings_flutter/macos/xmtp_bindings_flutter.podspec index 643bea369..01a9ef1de 100644 --- a/bindings_flutter/macos/xmtp_bindings_flutter.podspec +++ b/bindings_flutter/macos/xmtp_bindings_flutter.podspec @@ -4,7 +4,7 @@ # See generally # https://cjycode.com/flutter_rust_bridge/library/platform_setup/ios_and_macos.html -release_version = '0.0.1-development.3' +release_version = '0.0.1-development.4' # These versions should be kept in sync: # - pubspec.yaml # - android/gradle.properties diff --git a/bindings_flutter/pubspec.yaml b/bindings_flutter/pubspec.yaml index febe15afb..0c7eba6fc 100644 --- a/bindings_flutter/pubspec.yaml +++ b/bindings_flutter/pubspec.yaml @@ -1,7 +1,7 @@ name: xmtp_bindings_flutter description: low-level flutter bindings to libxmtp repository: https://github.com/xmtp/libxmtp -version: 0.0.1-development.3 +version: 0.0.1-development.4 # These versions should be kept in sync: # - pubspec.yaml # - android/gradle.properties