Skip to content

Commit

Permalink
Use type-safe project dependencies (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fornewid authored Jun 1, 2024
1 parent 9cb0983 commit 6770331
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ captures
.idea/androidTestResultsUserPreferences.xml
.idea/appInsightsSettings.xml
.idea/kotlinc.xml
.idea/studiobot.xml
gradle.xml
*.iml

Expand Down
4 changes: 2 additions & 2 deletions foundation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ dependencies {
// Test dependencies
// ======================

androidTestImplementation(project(":internal-testutils"))
testImplementation(project(":internal-testutils"))
androidTestImplementation(projects.internalTestutils)
testImplementation(projects.internalTestutils)

androidTestImplementation(libs.junit)
testImplementation(libs.junit)
Expand Down
2 changes: 1 addition & 1 deletion material/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ metalava {

dependencies {
implementation(libs.compose.material.material)
api(project(":foundation"))
api(projects.foundation)

// ======================
// Test dependencies
Expand Down
2 changes: 1 addition & 1 deletion material3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ metalava {

dependencies {
implementation(libs.compose.material3.material3)
api(project(":foundation"))
api(projects.foundation)

// ======================
// Test dependencies
Expand Down
6 changes: 3 additions & 3 deletions sample/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ android {
}

dependencies {
implementation(project(":foundation"))
implementation(project(":material"))
implementation(project(":material3"))
implementation(projects.foundation)
implementation(projects.material)
implementation(projects.material3)

implementation(libs.kotlin.stdlib)
implementation(libs.kotlin.coroutines.android)
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencyResolutionManagement {
}
}

enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

include(":internal-testutils")
include(":foundation")
include(":material")
Expand Down

0 comments on commit 6770331

Please sign in to comment.