chore: deprecation, warnings

This commit is contained in:
Zane Schepke
2025-08-01 08:56:09 -04:00
parent f333319576
commit 33b51823ab
4 changed files with 22 additions and 10 deletions
+9 -8
View File
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
@@ -20,6 +22,8 @@ android {
includeInBundle = false
}
ksp { arg("room.schemaLocation", "$projectDir/schemas") }
defaultConfig {
applicationId = Constants.APP_ID
minSdk = Constants.MIN_SDK
@@ -27,15 +31,10 @@ android {
versionCode = computeVersionCode()
versionName = computeVersionName()
ksp { arg("room.schemaLocation", "$projectDir/schemas") }
sourceSets { getByName("debug").assets.srcDirs(files("$projectDir/schemas")) }
buildConfigField(
"String[]",
"LANGUAGES",
"new String[]{ ${languageList().joinToString(separator = ", ") { "\"$it\"" }} }",
)
val languagesArray = buildLanguagesArray(languageList())
buildConfigField("String[]", "LANGUAGES", "new String[]{ $languagesArray }")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { useSupportLibrary = true }
@@ -114,7 +113,9 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions { jvmTarget = Constants.JVM_TARGET }
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_17 } }
buildFeatures {
compose = true
buildConfig = true
+5
View File
@@ -15,6 +15,11 @@ fun Project.languageList(): List<String> {
.toList() + "en"
}
fun buildLanguagesArray(languages: List<String>): String {
return languages.joinToString(separator = ", ") { "\"$it\"" }
}
// Get the Git commit hash
fun Project.getGitCommitHash(): String {
var grgit: Grgit? = null
+4 -1
View File
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlin.android)
@@ -31,7 +33,8 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions { jvmTarget = Constants.JVM_TARGET }
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_17 } }
}
dependencies {
+4 -1
View File
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.androidLibrary)
alias(libs.plugins.kotlin.android)
@@ -30,7 +32,8 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions { jvmTarget = Constants.JVM_TARGET }
kotlin { compilerOptions { jvmTarget = JvmTarget.JVM_17 } }
}
dependencies {