Skip to content

Commit

Permalink
Fix increased native lib size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyant0 committed May 3, 2024
1 parent 8c365f4 commit bc39f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
namespace = "com.kyant.taglib"
compileSdk = libs.versions.android.compileSdk.get().toInt()
buildToolsVersion = "34.0.0"
ndkVersion = "26.3.11579264"
ndkVersion = "27.0.11718014"

defaultConfig {
minSdk = libs.versions.android.minSdk.get().toInt()
Expand Down
2 changes: 1 addition & 1 deletion src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(taglib)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -fvisibility=hidden -flto -fdata-sections -ffunction-sections -fomit-frame-pointer")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fvisibility=hidden -flto -fdata-sections -ffunction-sections -fomit-frame-pointer")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto -Wl,--gc-sections -s")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto -Wl,--exclude-libs,ALL -Wl,--gc-sections -s")

set(VISIBILITY_HIDDEN ON)
set(BUILD_BINDINGS OFF)
Expand Down

0 comments on commit bc39f3d

Please sign in to comment.