Build fixes/updates

* Remove deprecation from build.gradle, settings.gradle

* Update to C++ 20

* Update GIT_TAG for adrenotools
This commit is contained in:
KeatonTheBot
2026-02-01 05:47:45 -06:00
parent 79ab37f282
commit 890d5a6e2c
5 changed files with 27 additions and 25 deletions
+15 -12
View File
@@ -4,21 +4,17 @@ plugins {
}
android {
namespace 'org.kenjinx.android'
namespace = 'org.kenjinx.android'
compileSdk 36
defaultConfig {
applicationId "org.kenjinx.android"
minSdk 29
//noinspection EditedTargetSdkVersion
targetSdk 36
versionCode 20005
versionName '2.0.5'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
ndk {
//noinspection ChromeOsAbiSupport
@@ -27,10 +23,11 @@ android {
externalNativeBuild {
cmake {
cppFlags "-std=c++17 -O3 -ffast-math -march=armv8-a -funroll-loops"
cppFlags "-std=c++20 -O3 -fno-math-errno -fno-trapping-math -fno-signed-zeros -ffinite-math-only -march=armv8-a"
arguments "-DANDROID_STL=c++_shared",
"-DCMAKE_BUILD_TYPE=Release",
"-DANDROID_ARM_NEON=TRUE"
"-DANDROID_ARM_NEON=TRUE",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON"
}
}
}
@@ -39,25 +36,29 @@ android {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
signingConfig = signingConfigs.debug
debuggable false
jniDebuggable false
}
}
androidComponents {
onVariants(selector().withBuildType("release")) {
packaging.dex.useLegacyPackaging.set(true)
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
buildFeatures {
compose true
prefab true
buildConfig true
compose = true
prefab = true
buildConfig = true
}
packagingOptions {
jniLibs {
keepDebugSymbols += '**/libkenjinx.so'
@@ -67,9 +68,11 @@ android {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
version = '4.2.3'
}
}
@@ -112,7 +115,7 @@ dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2'
implementation platform('androidx.compose:compose-bom:2026.01.01')
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.9.25')
implementation platform('org.jetbrains.kotlin:kotlin-bom:2.3.0')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'
androidTestImplementation 'androidx.test.ext:junit:1.3.0'