feat: Enhance architecture and performance optimizations
- Updated architecture documentation to reflect changes in data layer and caching strategies. - Implemented LRU caching for key pair generation and private key hash to improve performance. - Refactored DatabaseService to include LRU caching for encrypted accounts, reducing database query times. - Introduced a search bar in SelectAccountScreen for filtering accounts, enhancing user experience. - Adjusted UI components for better spacing and consistency. - Updated build.gradle.kts to support Java 17 and Room incremental annotation processing. - Modified gradle.properties to include necessary JVM arguments for Java 17 compatibility.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
kotlin("kapt")
|
||||
// kotlin("kapt") // Временно отключено из-за проблемы с Java 21
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -19,6 +19,15 @@ android {
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
arguments += mapOf(
|
||||
"room.schemaLocation" to "$projectDir/schemas",
|
||||
"room.incremental" to "true"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
@@ -31,11 +40,14 @@ android {
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
jvmTarget = "17"
|
||||
freeCompilerArgs += listOf(
|
||||
"-Xjvm-default=all"
|
||||
)
|
||||
}
|
||||
buildFeatures {
|
||||
compose = true
|
||||
@@ -92,7 +104,7 @@ dependencies {
|
||||
// Room for database
|
||||
implementation("androidx.room:room-runtime:2.6.1")
|
||||
implementation("androidx.room:room-ktx:2.6.1")
|
||||
kapt("androidx.room:room-compiler:2.6.1")
|
||||
// kapt("androidx.room:room-compiler:2.6.1") // Временно отключено
|
||||
|
||||
// Biometric authentication
|
||||
implementation("androidx.biometric:biometric:1.1.0")
|
||||
|
||||
Reference in New Issue
Block a user