Migrate BuildConfig
All checks were successful
eden-build / source (push) Successful in 3m26s
eden-build / android (push) Successful in 22m5s
eden-build / linux (push) Successful in 21m12s
eden-build / windows (msvc) (push) Successful in 29m33s

Signed-off-by: crueter <swurl@swurl.xyz>
This commit is contained in:
crueter 2025-06-16 14:38:48 -04:00
parent a4123200c0
commit eae819f0d6
No known key found for this signature in database
GPG key ID: A5A7629F109C8FD1
2 changed files with 8 additions and 11 deletions

View file

@ -1,9 +1,9 @@
// SPDX-FileCopyrightText: Copyright yuzu/Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright yuzu/Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
import android.annotation.SuppressLint import android.annotation.SuppressLint
import kotlin.collections.setOf import kotlin.collections.setOf
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
@ -35,6 +35,7 @@ android {
buildFeatures { buildFeatures {
viewBinding = true viewBinding = true
buildConfig = true
} }
compileOptions { compileOptions {
@ -62,11 +63,7 @@ android {
targetSdk = 35 targetSdk = 35
versionName = getGitVersion() versionName = getGitVersion()
versionCode = if (System.getenv("AUTO_VERSIONED") == "true") { versionCode = autoVersion
autoVersion
} else {
1
}
ndk { ndk {
@SuppressLint("ChromeOsAbiSupport") @SuppressLint("ChromeOsAbiSupport")
@ -121,7 +118,6 @@ android {
isDefault = true isDefault = true
resValue("string", "app_name_suffixed", "eden Debug Release") resValue("string", "app_name_suffixed", "eden Debug Release")
signingConfig = signingConfigs.getByName("default") signingConfig = signingConfigs.getByName("default")
isMinifyEnabled = true
isDebuggable = true isDebuggable = true
proguardFiles( proguardFiles(
getDefaultProguardFile("proguard-android.txt"), getDefaultProguardFile("proguard-android.txt"),

View file

@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Copyright 2025 yuzu Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project # SPDX-FileCopyrightText: 2023 yuzu Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
@ -14,7 +17,5 @@ android.useAndroidX=true
# Kotlin code style for this project: "official" or "obsolete": # Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official kotlin.code.style=official
kotlin.parallel.tasks.in.project=true kotlin.parallel.tasks.in.project=true
android.defaults.buildfeatures.buildconfig=true
# Android Gradle plugin 8.0.2 # Android Gradle plugin 8.0.2
android.suppressUnsupportedCompileSdk=34 android.suppressUnsupportedCompileSdk=34