2025-10-24 20:27:18 +02:00
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
2025-11-08 21:24:38 +01:00
|
|
|
id 'org.jetbrains.kotlin.plugin.compose'
|
2025-11-11 21:31:45 +01:00
|
|
|
// KSP not available for Kotlin 2.2.21 yet; switch to kapt for Room annotation processing
|
|
|
|
|
id 'org.jetbrains.kotlin.kapt'
|
2025-10-25 17:33:48 +02:00
|
|
|
id 'org.jlleitschuh.gradle.ktlint'
|
|
|
|
|
id 'io.gitlab.arturbosch.detekt'
|
2025-10-24 20:27:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android {
|
2025-11-08 21:24:38 +01:00
|
|
|
namespace = 'com.collabtable.app'
|
|
|
|
|
compileSdk = 34
|
2025-10-24 20:27:18 +02:00
|
|
|
|
|
|
|
|
defaultConfig {
|
2025-11-08 21:24:38 +01:00
|
|
|
applicationId = "com.collabtable.app"
|
|
|
|
|
minSdk = 26
|
|
|
|
|
targetSdk = 34
|
2025-10-24 20:27:18 +02:00
|
|
|
versionCode 1
|
|
|
|
|
versionName "1.0"
|
|
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
vectorDrawables {
|
2025-11-08 21:24:38 +01:00
|
|
|
useSupportLibrary = true
|
2025-10-24 20:27:18 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_21
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_21
|
|
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
|
|
|
|
jvmTarget = '21'
|
|
|
|
|
}
|
|
|
|
|
buildFeatures {
|
2025-11-08 21:24:38 +01:00
|
|
|
compose = true
|
2025-10-24 20:27:18 +02:00
|
|
|
}
|
|
|
|
|
packaging {
|
|
|
|
|
resources {
|
|
|
|
|
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
// Core Android
|
|
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.2'
|
2025-11-11 20:23:42 +01:00
|
|
|
implementation 'androidx.lifecycle:lifecycle-process:2.6.2'
|
2025-10-24 20:27:18 +02:00
|
|
|
implementation 'androidx.activity:activity-compose:1.8.1'
|
|
|
|
|
|
|
|
|
|
// Compose
|
2025-11-08 21:24:38 +01:00
|
|
|
implementation platform('androidx.compose:compose-bom:2024.06.00')
|
2025-10-24 20:27:18 +02:00
|
|
|
implementation 'androidx.compose.ui:ui'
|
|
|
|
|
implementation 'androidx.compose.ui:ui-graphics'
|
|
|
|
|
implementation 'androidx.compose.ui:ui-tooling-preview'
|
2025-11-11 22:47:19 +01:00
|
|
|
// Use BOM-managed Material3 to access SegmentedButton (connected button group) API
|
|
|
|
|
implementation 'androidx.compose.material3:material3'
|
2025-10-24 20:27:18 +02:00
|
|
|
implementation 'androidx.compose.material:material-icons-extended'
|
|
|
|
|
implementation 'androidx.navigation:navigation-compose:2.7.5'
|
|
|
|
|
|
|
|
|
|
// ViewModel
|
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.2'
|
|
|
|
|
|
2025-11-11 21:31:45 +01:00
|
|
|
// Room (use kapt for annotation processing). Bump to version compatible with Kotlin 2.2 metadata
|
|
|
|
|
implementation 'androidx.room:room-runtime:2.7.0'
|
|
|
|
|
implementation 'androidx.room:room-ktx:2.7.0'
|
|
|
|
|
kapt 'androidx.room:room-compiler:2.7.0'
|
2025-10-24 20:27:18 +02:00
|
|
|
|
|
|
|
|
// 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'
|
2025-11-13 18:10:50 +01:00
|
|
|
kapt 'com.squareup.retrofit2:retrofit:2.9.0'
|
2025-10-24 20:27:18 +02:00
|
|
|
|
|
|
|
|
// Coroutines
|
|
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
|
|
|
|
|
|
2025-11-11 20:23:42 +01:00
|
|
|
// WorkManager for background checks/notifications
|
|
|
|
|
implementation 'androidx.work:work-runtime-ktx:2.9.0'
|
|
|
|
|
|
2025-10-24 20:27:18 +02:00
|
|
|
// Testing
|
|
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
|
|
|
androidTestImplementation platform('androidx.compose:compose-bom:2023.10.01')
|
|
|
|
|
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
|
|
|
|
|
debugImplementation 'androidx.compose.ui:ui-tooling'
|
|
|
|
|
debugImplementation 'androidx.compose.ui:ui-test-manifest'
|
2025-10-25 19:19:20 +02:00
|
|
|
|
|
|
|
|
// Reorderable LazyColumn for drag-and-drop
|
|
|
|
|
implementation 'org.burnoutcrew.composereorderable:reorderable:0.9.6'
|
2025-11-22 16:17:30 +01:00
|
|
|
// DocumentFile (SAF) support for user-selected export directories
|
|
|
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
2025-10-24 20:27:18 +02:00
|
|
|
}
|
2025-10-25 17:33:48 +02:00
|
|
|
|
|
|
|
|
// Ktlint configuration
|
|
|
|
|
ktlint {
|
|
|
|
|
android.set(true)
|
|
|
|
|
ignoreFailures.set(false)
|
|
|
|
|
outputToConsole.set(true)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Detekt configuration (uses default rules; customize via detekt.yml if needed)
|
|
|
|
|
detekt {
|
|
|
|
|
buildUponDefaultConfig = true
|
|
|
|
|
allRules = false
|
2025-11-11 23:18:50 +01:00
|
|
|
// Point detekt to the repo's configuration file
|
|
|
|
|
config = files("$rootDir/detekt.yml")
|
2025-10-25 17:33:48 +02:00
|
|
|
}
|
2025-10-25 20:19:51 +02:00
|
|
|
|
|
|
|
|
// Ensure Detekt uses a supported JVM target
|
|
|
|
|
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {
|
|
|
|
|
jvmTarget = "21"
|
|
|
|
|
}
|