Skip to content

Commit 3c23387

Browse files
committed
migrate build gradle:app to use typesafe project accessor
1 parent 746c25e commit 3c23387

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.DS_Store

0 Bytes
Binary file not shown.

app/build.gradle.kts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ android {
6767
}
6868

6969
dependencies {
70-
implementation(project(":feature:allbreeds"))
71-
implementation(project(":feature:breedDetails"))
72-
implementation(project(":feature:favorites"))
73-
implementation(project(":feature:subbreeds"))
70+
implementation(projects.feature.allbreeds)
71+
implementation(projects.feature.breedDetails)
72+
implementation(projects.feature.favorites)
73+
implementation(projects.feature.subbreeds)
7474

75-
implementation(project(":core:designsystem"))
75+
implementation(projects.core.designsystem)
7676

7777
implementation(libs.compose.icons.extended)
7878

@@ -91,9 +91,9 @@ dependencies {
9191
androidTestImplementation(libs.hilt.android.testing)
9292
androidTestImplementation(libs.compose.ui.test)
9393
androidTestImplementation(libs.android.junit)
94-
androidTestImplementation(project(":core:database"))
95-
androidTestImplementation(project(":core:network"))
96-
androidTestImplementation(project(":core:testing"))
94+
androidTestImplementation(projects.core.database)
95+
androidTestImplementation(projects.core.network)
96+
androidTestImplementation(projects.core.testing)
9797

9898
androidTestImplementation(libs.androidx.test.core)
9999
androidTestImplementation(libs.androidx.test.rules)

build/reports/problems/problems-report.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@
650650
<script type="text/javascript">
651651
function configurationCacheProblems() { return (
652652
// begin-report-data
653-
{"diagnostics":[{"locations":[{"pluginId":"org.jetbrains.kotlin.android"}],"problem":[{"text":"The org.gradle.api.plugins.Convention type has been deprecated."}],"severity":"WARNING","problemDetails":[{"text":"This is scheduled to be removed in Gradle 9.0."}],"contextualLabel":"The org.gradle.api.plugins.Convention type has been deprecated.","documentationLink":"https://docs.gradle.org/8.13/userguide/upgrading_version_8.html#deprecated_access_to_conventions","problemId":[{"name":"deprecation","displayName":"Deprecation"},{"name":"the-org-gradle-api-plugins-convention-type-has-been-deprecated","displayName":"The org.gradle.api.plugins.Convention type has been deprecated."}]},{"locations":[{"taskPath":":feature:allbreeds:compileDebugJavaWithJavac"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"warning: [options] source value 8 is obsolete and will be removed in a future release"}],"contextualLabel":"source value 8 is obsolete and will be removed in a future release","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-option-obsolete-source","displayName":"Java compilation warning"}]},{"locations":[{"taskPath":":feature:allbreeds:compileDebugJavaWithJavac"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"warning: [options] target value 8 is obsolete and will be removed in a future release"}],"contextualLabel":"target value 8 is obsolete and will be removed in a future release","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-option-obsolete-target","displayName":"Java compilation warning"}]},{"locations":[{"taskPath":":feature:allbreeds:compileDebugJavaWithJavac"}],"problem":[{"text":"Java compilation warning"}],"severity":"WARNING","problemDetails":[{"text":"warning: [options] To suppress warnings about obsolete options, use -Xlint:-options."}],"contextualLabel":"To suppress warnings about obsolete options, use -Xlint:-options.","problemId":[{"name":"java","displayName":"Java compilation"},{"name":"compilation","displayName":"Compilation"},{"name":"compiler-warn-option-obsolete-suppression","displayName":"Java compilation warning"}]}],"problemsReport":{"totalProblemCount":4,"buildName":"DogBreed","requestedTasks":":app:assembleDebug","documentationLink":"https://docs.gradle.org/8.13/userguide/reporting_problems.html","documentationLinkCaption":"Problem report","summaries":[]}}
653+
{"diagnostics":[{"locations":[{"pluginId":"org.jetbrains.kotlin.android"}],"problem":[{"text":"The org.gradle.api.plugins.Convention type has been deprecated."}],"severity":"WARNING","problemDetails":[{"text":"This is scheduled to be removed in Gradle 9.0."}],"contextualLabel":"The org.gradle.api.plugins.Convention type has been deprecated.","documentationLink":"https://docs.gradle.org/8.13/userguide/upgrading_version_8.html#deprecated_access_to_conventions","problemId":[{"name":"deprecation","displayName":"Deprecation"},{"name":"the-org-gradle-api-plugins-convention-type-has-been-deprecated","displayName":"The org.gradle.api.plugins.Convention type has been deprecated."}]}],"problemsReport":{"totalProblemCount":1,"buildName":"DogBreed","requestedTasks":"","documentationLink":"https://docs.gradle.org/8.13/userguide/reporting_problems.html","documentationLinkCaption":"Problem report","summaries":[]}}
654654
// end-report-data
655655
);}
656656
</script>

settings.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ dependencyResolutionManagement {
1414
}
1515

1616
rootProject.name = "DogBreed"
17+
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
18+
1719
include(":app")
1820
include(":core:network")
1921
include(":core:database")

0 commit comments

Comments
 (0)