build(android): upgrade toolchain and migrate Room to KSP
Lint / Lint (push) Successful in 1m29s
Security / Secrets (gitleaks) (push) Successful in 1m11s
Security / Dependencies (Trivy) (push) Successful in 1m59s
Tests / Dashboard checks (push) Successful in 1m49s
Security / Code (Semgrep) (push) Successful in 3m8s
Tests / Go backend (push) Successful in 2m50s
Docker / Docker Build & Push (push) Successful in 8m42s

- Target API 37 and use build-tools 37 for release signature checks
- Adjust list pagination spacing and clarify shared backend docs
This commit is contained in:
Gabriel20xx committed 2026-11-01 21:48:05 +01:00
1 parent 7150ebd13e
commit 0fd1805502
40 files changed
+912 -690

No files matched your search

+17 -11
View File
@@ -1,21 +1,25 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose'
// KSP not available for Kotlin 2.2.21 yet; switch to kapt for Room annotation processing
id 'org.jetbrains.kotlin.kapt'
id 'com.google.devtools.ksp'
id 'org.jlleitschuh.gradle.ktlint'
id 'io.gitlab.arturbosch.detekt'
}
android {
namespace = 'com.collabtable.app'
compileSdk = 34
compileSdk {
version = release(37) {
minorApiLevel = 2
}
}
defaultConfig {
applicationId = "com.collabtable.app"
minSdk = 26
targetSdk = 34
targetSdk = 37
versionCode = 1
versionName = "1.0"
@@ -53,9 +57,6 @@ android {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
kotlinOptions {
jvmTarget = '21'
}
buildFeatures {
compose = true
buildConfig = true
@@ -67,6 +68,12 @@ android {
}
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
dependencies {
// Core Android
implementation 'androidx.core:core-ktx:1.12.0'
@@ -87,16 +94,15 @@ dependencies {
// ViewModel
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2'
// Room (use kapt for annotation processing). Bump to version compatible with Kotlin 2.2 metadata
// Room (KSP for annotation processing)
implementation 'androidx.room:room-runtime:2.7.0'
implementation 'androidx.room:room-ktx:2.7.0'
kapt 'androidx.room:room-compiler:2.7.0'
ksp 'androidx.room:room-compiler:2.7.0'
// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
kapt 'com.squareup.retrofit2:retrofit:2.9.0'
// Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'