feat: WIP

This commit is contained in:
Yogesh Choudhary Paliyal
2024-08-10 11:35:08 +05:30
parent fec2b16cdd
commit 8023c60529
5 changed files with 24151 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -29,6 +29,7 @@ plugins {
id("com.google.dagger.hilt.android") version ("2.51.1") apply false
id("com.gradle.enterprise") version("3.17.6") apply false
id("org.jetbrains.kotlin.plugin.serialization") version (Versions.kotlin)
id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false
}

View File

@@ -2,6 +2,7 @@ plugins {
kotlin("multiplatform")
id("com.android.library")
id("org.jetbrains.kotlin.plugin.compose")
id("com.google.devtools.ksp")
}
kotlin {
@@ -15,10 +16,15 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
val room_version = "2.6.1"
api("androidx.compose.runtime:runtime:1.6.8")
api("androidx.compose.foundation:foundation:1.6.8")
api("androidx.compose.material:material:1.6.8")
implementation("org.reduxkotlin:redux-kotlin-compose:0.6.0")
implementation("androidx.room:room-runtime:$room_version")
add("kspJvm", "androidx.room:room-compiler:$room_version")
}
}
val commonTest by getting {

View File

@@ -0,0 +1,12 @@
package com.yogeshpaliyal.keypass.common
import android.content.Context
//fun getDatabaseBuilder(ctx: Context): RoomDatabase.Builder<AppDatabase> {
// val appContext = ctx.applicationContext
// val dbFile = appContext.getDatabasePath("my_room.db")
// return Room.databaseBuilder<AppDatabase>(
// context = appContext,
// name = dbFile.absolutePath
// )
//}