Skip to content

Commit 36d03a5

Browse files
committed
Cleanup
1 parent 3e9c79e commit 36d03a5

File tree

1 file changed

+31
-20
lines changed

1 file changed

+31
-20
lines changed

example/thirdparty/androidtodo/build.mill

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,23 @@ object app extends AndroidAppKotlinModule with AndroidR8AppModule with AndroidBu
6262

6363
// versions are resolved with compose-bom
6464
def composeDeps = Seq(
65-
mvn"androidx.compose.foundation:foundation:_",
66-
mvn"androidx.compose.foundation:foundation-layout:_",
67-
mvn"androidx.compose.animation:animation:_",
68-
mvn"androidx.compose.material3:material3:_",
69-
mvn"androidx.compose.material:material:_",
70-
mvn"androidx.compose.material:material-icons-extended:_",
71-
mvn"androidx.compose.ui:ui-tooling-preview:_",
65+
mvn"androidx.compose.foundation:foundation",
66+
mvn"androidx.compose.foundation:foundation-layout",
67+
mvn"androidx.compose.animation:animation",
68+
mvn"androidx.compose.material3:material3",
69+
mvn"androidx.compose.material:material",
70+
mvn"androidx.compose.material:material-icons-extended",
71+
mvn"androidx.compose.ui:ui-tooling-preview",
72+
mvn"androidx.compose.ui:ui",
73+
mvn"androidx.compose.ui:ui-unit",
74+
mvn"androidx.compose.ui:ui-text",
75+
mvn"androidx.compose.ui:ui-graphics",
7276
// debug
73-
mvn"androidx.compose.ui:ui-tooling:_",
74-
mvn"androidx.compose.ui:ui-test-manifest:_"
77+
mvn"androidx.compose.ui:ui-tooling",
78+
mvn"androidx.compose.ui:ui-test-manifest"
7579
)
7680

77-
def mvnDeps: T[Seq[Dep]] = Seq(
81+
def mvnDeps: T[Seq[Dep]] = super.mvnDeps() ++ composeDeps ++ Seq(
7882
mvn"androidx.core:core-ktx:1.15.0",
7983
mvn"androidx.appcompat:appcompat:1.7.0",
8084
mvn"androidx.annotation:annotation:1.9.1",
@@ -85,11 +89,7 @@ object app extends AndroidAppKotlinModule with AndroidR8AppModule with AndroidBu
8589
mvn"androidx.room:room-ktx:2.6.1",
8690
mvn"androidx.activity:activity-compose:1.10.0",
8791
mvn"androidx.navigation:navigation-compose:2.8.5",
88-
mvn"androidx.compose.ui:ui:1.7.6",
89-
mvn"androidx.compose.ui:ui-unit:1.7.6",
90-
mvn"androidx.compose.ui:ui-text:1.7.6",
9192
mvn"androidx.emoji2:emoji2:1.3.0",
92-
mvn"androidx.compose.ui:ui-graphics:1.7.6",
9393
mvn"androidx.lifecycle:lifecycle-common:2.8.7",
9494
mvn"androidx.lifecycle:lifecycle-process:2.8.7",
9595
mvn"androidx.lifecycle:lifecycle-runtime-compose:2.8.7",
@@ -101,7 +101,7 @@ object app extends AndroidAppKotlinModule with AndroidR8AppModule with AndroidBu
101101
mvn"com.google.accompanist:accompanist-swiperefresh:0.36.0",
102102
mvn"androidx.customview:customview-poolingcontainer:1.0.0",
103103
mvn"androidx.tracing:tracing:1.2.0"
104-
) ++ composeDeps
104+
)
105105

106106
def kotlinSymbolProcessors: T[Seq[Dep]] = Seq(
107107
mvn"androidx.room:room-compiler:2.6.1",
@@ -125,7 +125,12 @@ object app extends AndroidAppKotlinModule with AndroidR8AppModule with AndroidBu
125125
mvn"androidx.compose:compose-bom:2024.12.01"
126126
)
127127

128-
def mvnDeps = super.mvnDeps() ++ Seq(
128+
// versions resolved from compose-bom
129+
def composeDeps = Seq(
130+
mvn"androidx.compose.ui:ui-test-junit4"
131+
)
132+
133+
def mvnDeps = super.mvnDeps() ++ composeDeps ++ Seq(
129134
mvn"junit:junit:4.13.2",
130135
mvn"androidx.arch.core:core-testing:2.2.0",
131136
mvn"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0",
@@ -135,7 +140,6 @@ object app extends AndroidAppKotlinModule with AndroidR8AppModule with AndroidBu
135140
mvn"androidx.test.espresso:espresso-contrib:3.6.1",
136141
mvn"androidx.test.espresso:espresso-intents:3.6.1",
137142
mvn"com.google.truth:truth:1.4.4",
138-
mvn"androidx.compose.ui:ui-test-junit4:1.7.6",
139143
mvn"com.google.dagger:hilt-android-testing:2.56"
140144
)
141145
}
@@ -166,13 +170,20 @@ object app extends AndroidAppKotlinModule with AndroidR8AppModule with AndroidBu
166170
)
167171
}
168172

169-
def mvnDeps = super.mvnDeps() ++ Seq(
173+
def bomMvnDeps = Seq(
174+
mvn"androidx.compose:compose-bom:2024.12.01"
175+
)
176+
177+
// versions resolved from compose-bom
178+
def composeDeps = Seq(
179+
mvn"androidx.compose.ui:ui-test-junit4"
180+
)
181+
182+
def mvnDeps = super.mvnDeps() ++ composeDeps ++ Seq(
170183
// Dependencies for Android unit tests
171-
mvn"androidx.compose:compose-bom:2024.12.01",
172184
mvn"junit:junit:4.13.2",
173185
mvn"org.jetbrains.kotlinx:kotlinx-coroutines-test:1.9.0",
174186
mvn"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0",
175-
mvn"androidx.compose.ui:ui-test-junit4:1.7.6",
176187
// AndroidX Test - Instrumented testing
177188
mvn"androidx.test:core-ktx:1.6.1",
178189
mvn"androidx.test.ext:junit-ktx:1.2.1",

0 commit comments

Comments
 (0)