From 60551a563786923e7a8906ceb2e79f4b23d4a091 Mon Sep 17 00:00:00 2001 From: senseiGai Date: Sun, 11 Jan 2026 13:14:45 +0500 Subject: [PATCH] feat: Add Kotlin KAPT plugin and update dependencies in build.gradle.kts chore: Update clean task to use layout.buildDirectory in top-level build.gradle.kts chore: Add VS Code settings and tasks for improved development experience docs: Create DEVELOPMENT.md with setup instructions and available commands --- .vscode/settings.json | 26 ++++++++++++++++++++++++++ .vscode/tasks.json | 34 ++++++++++++++++++++++++++++++++++ app/build.gradle.kts | 3 ++- build.gradle.kts | 2 +- 4 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..ec6ef6a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,26 @@ +{ + "java.configuration.updateBuildConfiguration": "automatic", + "java.compile.nullAnalysis.mode": "automatic", + "files.exclude": { + "**/.gradle": true, + "**/build": true, + "**/.idea": true + }, + "java.project.sourcePaths": ["app/src/main/java"], + "java.project.referencedLibraries": [ + "lib/**/*.jar", + "app/build/intermediates/compile_library_classes_jar/**/*.jar" + ], + "[kotlin]": { + "editor.defaultFormatter": "fwcd.kotlin", + "editor.formatOnSave": true, + "editor.tabSize": 4 + }, + "kotlin.languageServer.enabled": true, + "kotlin.compiler.jvm.target": "1.8", + "files.associations": { + "*.gradle.kts": "kotlin", + "*.gradle": "groovy" + }, + "gradle.nestedProjects": true +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..881e55b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,34 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build Debug APK", + "type": "shell", + "command": "./gradlew assembleDebug", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Clean Project", + "type": "shell", + "command": "./gradlew clean", + "problemMatcher": [] + }, + { + "label": "Build Release APK", + "type": "shell", + "command": "./gradlew assembleRelease", + "problemMatcher": [], + "group": "build" + }, + { + "label": "Install Debug APK", + "type": "shell", + "command": "./gradlew installDebug", + "problemMatcher": [] + } + ] +} diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7eb4abd..0f6e67e 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,6 +1,7 @@ plugins { id("com.android.application") id("org.jetbrains.kotlin.android") + id("org.jetbrains.kotlin.kapt") } android { @@ -91,7 +92,7 @@ dependencies { // Room for database implementation("androidx.room:room-runtime:2.6.1") implementation("androidx.room:room-ktx:2.6.1") - annotationProcessor("androidx.room:room-compiler:2.6.1") + kapt("androidx.room:room-compiler:2.6.1") // Biometric authentication implementation("androidx.biometric:biometric:1.1.0") diff --git a/build.gradle.kts b/build.gradle.kts index 4f4e1f6..0b32c3e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,5 +5,5 @@ plugins { } tasks.register("clean", Delete::class) { - delete(rootProject.buildDir) + delete(layout.buildDirectory) }