diff --git a/dexkit-android/build.gradle b/dexkit-android/build.gradle index e1c1aef9..15e234f0 100644 --- a/dexkit-android/build.gradle +++ b/dexkit-android/build.gradle @@ -16,7 +16,7 @@ def libVersion = "2.0.0-rc5" android { namespace "org.luckypray.dexkit" compileSdk 33 - ndkVersion = "25.0.8775105" + ndkVersion = "26.1.10909125" defaultConfig { minSdk 21 @@ -39,7 +39,7 @@ android { "-Wno-unused-variable", "-Wno-unused-command-line-argument", ] - cppFlags = ["-std=c++2a"] + flags + cppFlags = ["-std=c++20"] + flags cFlags = ["-std=c18"] + flags } } @@ -56,7 +56,6 @@ android { "-Wl,--gc-sections", "-Wl,--exclude-libs,ALL", "-Wl,--strip-all", - "-Oz", "-flto=full", ] def configFlags = [ diff --git a/dexkit/src/main/cpp/CMakeLists.txt b/dexkit/src/main/cpp/CMakeLists.txt index 4e99c9d0..fec7edb0 100644 --- a/dexkit/src/main/cpp/CMakeLists.txt +++ b/dexkit/src/main/cpp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.4.1...3.27) project(dexkit) set(CMAKE_CXX_STANDARD 20)