Skip to content

Commit 419ce1a

Browse files
committed
[BOOK-434] fix: Build Error
ZacSweers/metro#1358
1 parent 0970f3e commit 419ce1a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

core/datastore/impl/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@ dependencies {
2121
projects.core.di,
2222
projects.core.model,
2323

24-
libs.androidx.datastore.preferences,
25-
2624
libs.logger,
2725
)
2826

27+
// API because DataStore<Preferences> is exposed in public API (DataStoreGraph)
28+
// Metro compiler needs to resolve Preferences type across modules
29+
// See: https://github.com/ZacSweers/metro/discussions/1358#discussioncomment-15020091
30+
api(libs.androidx.datastore.preferences)
31+
2932
androidTestImplementations(
3033
libs.androidx.test.ext.junit,
3134
libs.androidx.test.runner,

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ kotlinx-collections-immutable = "0.4.0"
3939
metro = "0.7.7"
4040

4141
## Network
42-
okhttp = "5.3.1"
42+
okhttp = "5.1.0"
4343
retrofit = "3.0.0"
4444

4545
## Circuit

0 commit comments

Comments
 (0)