Skip to content

Commit

Permalink
Convert core/database project to declarative
Browse files Browse the repository at this point in the history
  • Loading branch information
tresat committed May 21, 2024
1 parent 8156cb3 commit b37dd4d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 39 deletions.
21 changes: 21 additions & 0 deletions core/database/build.gradle.dcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
androidLibrary {
namespace = "com.google.samples.apps.nowinandroid.core.database"

dependencies {
api(project(":core:model"))

implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.5.0")
}

room {}
hilt {}

testing {
dependencies {
androidImplementation(project(":core:testing"))
}

jacoco {}
}
}

38 changes: 0 additions & 38 deletions core/database/build.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ ksp = { id = "com.google.devtools.ksp" }
module-graph = { id = "com.jraska.module.graph.assertion", version.ref = "moduleGraph" }
protobuf = { id = "com.google.protobuf", version.ref = "protobufPlugin" }
roborazzi = { id = "io.github.takahirom.roborazzi", version.ref = "roborazzi" }
room = { id = "androidx.room", version.ref = "room" }
room = { id = "androidx.room" }
secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" }

# Plugins defined by this project
Expand Down
9 changes: 9 additions & 0 deletions settings.gradle.dcl
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,19 @@ conventions {
jsonEnabled = true
}

room {
// TODO: This convention path should ideally be EXPLICITLY relative to the current project's dir (i.e. ${projectDir}/schemas)
schemaDirectory = "schemas"
}

testing {
jacoco {
version = "0.8.7"
}

testOptions {
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
}
}
}
}
Expand Down

0 comments on commit b37dd4d

Please sign in to comment.