From 971cb8a130eaed85e7cb0398c7b760954ea65579 Mon Sep 17 00:00:00 2001 From: zarazaex69 Date: Fri, 3 Apr 2026 19:25:16 +0300 Subject: [PATCH] build: update gomobile build parameters and automate asset generation for AndroidLibXrayLite --- build.sh | 5 ++++- compile-hevtun.sh | 0 2 files changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 compile-hevtun.sh diff --git a/build.sh b/build.sh index 002a164e..0bc2285f 100755 --- a/build.sh +++ b/build.sh @@ -32,8 +32,11 @@ fi echo "Building AndroidLibXrayLite (libv2ray.aar)..." pushd "$__dir/AndroidLibXrayLite" >/dev/null +mkdir -p assets data +bash gen_assets.sh download +cp -v data/*.dat assets/ go mod tidy -gomobile bind -v -androidapi 21 -ldflags='-s -w' -o libv2ray.aar ./ +gomobile bind -v -androidapi 24 -trimpath -ldflags='-s -w -buildid=' -o libv2ray.aar ./ popd >/dev/null echo "Building hev-socks5-tunnel..." diff --git a/compile-hevtun.sh b/compile-hevtun.sh old mode 100644 new mode 100755