mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
Refactor buildSrc and update dependencies
This commit refactors the `buildSrc` module by: - Removing the `setupLibraryDefaults()` extension function from `ProjectConfig.kt` as its functionality is largely covered by standard Gradle plugin configurations. - Inlining version numbers for Moshi and various testing libraries directly into `Dependencies.kt`, removing them from `Versions.kt`. This simplifies version management for these specific libraries. - Removing unused version declarations from `Versions.kt`. Additionally, this commit updates the following dependencies: - Kotlin from 2.1.21 to 2.2.10 - Android Gradle Plugin from 8.11.0 to 8.12.2 - KSP from 2.1.21-2.0.1 to 2.2.10-2.0.2 - Dagger from 2.56.2 to 2.57.1 - AndroidX Navigation from 2.8.9 to 2.9.3 The `targetSdk` was also removed from the `app-common` module's `defaultConfig` as it's typically inherited or set at the app level.
This commit is contained in:
@@ -88,10 +88,10 @@ android {
|
||||
val variantOutputImpl = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
|
||||
val variantName: String = variantOutputImpl.name
|
||||
|
||||
if (listOf("release", "beta").any { variantName.toLowerCase().contains(it) }) {
|
||||
if (listOf("release", "beta").any { variantName.lowercase().contains(it) }) {
|
||||
val outputFileName = ProjectConfig.packageName +
|
||||
"-v${defaultConfig.versionName}-${defaultConfig.versionCode}" +
|
||||
"-${variantName.toUpperCase()}.apk"
|
||||
"-${variantName.uppercase()}.apk"
|
||||
|
||||
variantOutputImpl.outputFileName = outputFileName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user