From b2129abaa6ecacdc5ea79e326405559834cbe513 Mon Sep 17 00:00:00 2001 From: Alexey Vavilin Date: Fri, 17 Nov 2023 11:51:40 +0300 Subject: [PATCH] Build Android on Linux with features --- packages/lib-react-native/android/build/src/main.rs | 4 ++-- packages/lib-react-native/android/lib/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/lib-react-native/android/build/src/main.rs b/packages/lib-react-native/android/build/src/main.rs index 7f0f1038..294c1bbf 100644 --- a/packages/lib-react-native/android/build/src/main.rs +++ b/packages/lib-react-native/android/build/src/main.rs @@ -46,7 +46,7 @@ const ARCHS: [Arch; 4] = [ ]; const LIB: &str = "libeversdk.so"; -const NDK_URL: &str = "http://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip"; +const NDK_URL: &str = "http://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip"; fn main() { let target_arg = env::args().nth(1).unwrap_or("".to_string()); @@ -63,7 +63,7 @@ fn main() { &builder.lib_dir.join("NDK").join(arch.ndk).join("bin"), )); std::env::set_var("PATH", path); - assert!(exec("cargo", &["+1.67.0-x86_64-apple-darwin", "build", "--target", arch.target, "--release"]).success()); + assert!(exec("cargo", &["+1.67.0-x86_64-unknown-linux-gnu", "build", "--target", arch.target, "--release"]).success()); } let out_dir = builder.package_dir.join("src/main/jniLibs"); diff --git a/packages/lib-react-native/android/lib/Cargo.toml b/packages/lib-react-native/android/lib/Cargo.toml index 301fa76d..637fcf12 100644 --- a/packages/lib-react-native/android/lib/Cargo.toml +++ b/packages/lib-react-native/android/lib/Cargo.toml @@ -11,7 +11,7 @@ crate-type = [ 'cdylib' ] [dependencies] lazy_static = '1.4.0' jni = { default-features = false, version = '0.12.0' } -ton_client = { git = 'https://github.com/tonlabs/ever-sdk.git', tag = '1.45.0' } +ton_client = { git = 'https://github.com/tonlabs/ever-sdk.git', tag = '1.45.0', default-features = false, features = [ 'std', 'rustls-tls-webpki-roots' ] } [profile.release] lto = true