Skip to content

Commit

Permalink
[#586] Enable typesafe project accessors and remove Modules.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-conway committed Jan 9, 2025
1 parent 645f781 commit 8cca290
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions template-compose/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ kapt {
}

dependencies {
implementation(project(Modules.DATA))
implementation(project(Modules.DOMAIN))
implementation(projects.data)
implementation(projects.domain)

implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))

Expand Down Expand Up @@ -164,8 +164,8 @@ dependencies {
* Kover configs
*/
dependencies {
kover(project(Modules.DATA))
kover(project(Modules.DOMAIN))
kover(projects.data)
kover(projects.domain)
}

koverReport {
Expand Down
4 changes: 0 additions & 4 deletions template-compose/buildSrc/src/main/java/Modules.kt

This file was deleted.

2 changes: 1 addition & 1 deletion template-compose/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ android {
}

dependencies {
implementation(project(Modules.DOMAIN))
implementation(projects.domain)

implementation(libs.androidx.core)
implementation(libs.androidx.datastore.preferences)
Expand Down
3 changes: 2 additions & 1 deletion template-compose/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ dependencyResolutionManagement {
}
}

rootProject.name = "Template Compose"
rootProject.name = "TemplateCompose"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(":app")
include(":data")
include(":domain")

0 comments on commit 8cca290

Please sign in to comment.