From d0612619fd0f456373ed1dcdf1dd6099be6c11e3 Mon Sep 17 00:00:00 2001 From: DHR60 Date: Mon, 12 Jan 2026 19:33:15 +0800 Subject: [PATCH] Raise minSdk to 24 (#5152) --- README.md | 2 +- compile-hevtun.sh | 8 ++++---- libhysteria2.sh | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c0dfedc0..ddc5aa04 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A V2Ray client for Android, support [Xray core](https://github.com/XTLS/Xray-core) and [v2fly core](https://github.com/v2fly/v2ray-core) -[![API](https://img.shields.io/badge/API-21%2B-yellow.svg?style=flat)](https://developer.android.com/about/versions/lollipop) +[![API](https://img.shields.io/badge/API-24%2B-yellow.svg?style=flat)](https://developer.android.com/about/versions/lollipop) [![Kotlin Version](https://img.shields.io/badge/Kotlin-2.3.0-blue.svg)](https://kotlinlang.org) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/2dust/v2rayNG)](https://github.com/2dust/v2rayNG/commits/master) [![CodeFactor](https://www.codefactor.io/repository/github/2dust/v2rayng/badge)](https://www.codefactor.io/repository/github/2dust/v2rayng) diff --git a/compile-hevtun.sh b/compile-hevtun.sh index a16663d8..6aa01c65 100644 --- a/compile-hevtun.sh +++ b/compile-hevtun.sh @@ -7,8 +7,8 @@ __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" __file="${__dir}/$(basename "${BASH_SOURCE[0]}")" __base="$(basename ${__file} .sh)" if [[ ! -d $NDK_HOME ]]; then - echo "Android NDK: NDK_HOME not found. please set env \$NDK_HOME" - exit 1 + echo "Android NDK: NDK_HOME not found. please set env \$NDK_HOME" + exit 1 fi TMPDIR=$(mktemp -d) clear_tmp () { @@ -27,8 +27,8 @@ ln -s "$__dir/hev-socks5-tunnel" jni/hev-socks5-tunnel "$NDK_HOME/ndk-build" \ NDK_PROJECT_PATH=. \ APP_BUILD_SCRIPT=jni/Android.mk \ - "APP_ABI=armeabi-v7a arm64-v8a x86 x86_64" \ - APP_PLATFORM=android-21 \ + "APP_ABI=armeabi-v7a arm64-v8a x86 x86_64" \ + APP_PLATFORM=android-24 \ NDK_LIBS_OUT="$TMPDIR/libs" \ NDK_OUT="$TMPDIR/obj" \ "APP_CFLAGS=-O3 -DPKGNAME=com/v2ray/ang/service" \ diff --git a/libhysteria2.sh b/libhysteria2.sh index 1bd88967..eef62e43 100644 --- a/libhysteria2.sh +++ b/libhysteria2.sh @@ -1,10 +1,10 @@ #!/bin/bash targets=( - "aarch64-linux-android21 arm64 arm64-v8a" - "armv7a-linux-androideabi21 arm armeabi-v7a" - "x86_64-linux-android21 amd64 x86_64" - "i686-linux-android21 386 x86" + "aarch64-linux-android24 arm64 arm64-v8a" + "armv7a-linux-androideabi24 arm armeabi-v7a" + "x86_64-linux-android24 amd64 x86_64" + "i686-linux-android24 386 x86" ) cd "hysteria" || exit