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:
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal 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
34
.vscode/tasks.json
vendored
Normal 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": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("com.android.application")
|
id("com.android.application")
|
||||||
id("org.jetbrains.kotlin.android")
|
id("org.jetbrains.kotlin.android")
|
||||||
|
id("org.jetbrains.kotlin.kapt")
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
@@ -91,7 +92,7 @@ dependencies {
|
|||||||
// Room for database
|
// Room for database
|
||||||
implementation("androidx.room:room-runtime:2.6.1")
|
implementation("androidx.room:room-runtime:2.6.1")
|
||||||
implementation("androidx.room:room-ktx: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
|
// Biometric authentication
|
||||||
implementation("androidx.biometric:biometric:1.1.0")
|
implementation("androidx.biometric:biometric:1.1.0")
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.register("clean", Delete::class) {
|
tasks.register("clean", Delete::class) {
|
||||||
delete(rootProject.buildDir)
|
delete(layout.buildDirectory)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user