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
This commit is contained in:
senseiGai
2026-01-11 13:14:45 +05:00
parent 5b298a37b3
commit 60551a5637
4 changed files with 63 additions and 2 deletions

26
.vscode/settings.json vendored Normal file
View File

@@ -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
}

34
.vscode/tasks.json vendored Normal file
View File

@@ -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": []
}
]
}

View File

@@ -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")

View File

@@ -5,5 +5,5 @@ plugins {
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
delete(layout.buildDirectory)
}