/*
 * Copyright © Harsh Shandilya.
 * Use of this source code is governed by an MIT-style
 * license that can be found in the LICENSE file or at
 * https://opensource.org/licenses/MIT.
 */
import dev.msfjarvis.claw.gradle.addTestDependencies

plugins {
  id("dev.msfjarvis.claw.android-library")
  id("dev.msfjarvis.claw.kotlin-android")
  alias(libs.plugins.dependencyAnalysis)
  alias(libs.plugins.metro)
}

android { namespace = "dev.msfjarvis.claw.database" }

dependencies {
  api(libs.sqldelight.runtime)
  api(projects.database.core)

  implementation(libs.androidx.sqlite)
  implementation(libs.kotlinx.datetime)
  implementation(libs.sqldelight.androidDriver)
  implementation(libs.sqldelight.primitiveAdapters)
  implementation(libs.sqlite.android)
  implementation(libs.sentry.android.sqlite)

  testImplementation(libs.sqldelight.jvmDriver)
  testImplementation(libs.sqldelight.runtime)

  addTestDependencies(project)
}
