@@ -155,30 +155,36 @@ dependencies {
155155
156156 // compose
157157 // https://developer.android.com/jetpack/compose/interop/adding
158- // Integration with activities
159- implementation(" androidx.activity:activity-compose:1.6.1" )
160- // Animations
161- implementation(" androidx.compose.animation:animation:1.3.0" )
162- // Integration with ViewModels
163- implementation(" androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1" )
164158 // https://developer.android.com/jetpack/compose/setup
165- implementation(" androidx.compose.ui:ui:1.4.0-alpha01" )
166- // Tooling support (Previews, etc.)
167- implementation(" androidx.compose.ui:ui-tooling:1.3.0" )
159+ val composeBom = platform(" androidx.compose:compose-bom:2022.10.00" )
160+ implementation(composeBom)
161+ androidTestImplementation(composeBom)
162+ // Android Studio Preview support
163+ implementation(" androidx.compose.ui:ui-tooling-preview" )
164+ debugImplementation(" androidx.compose.ui:ui-tooling" )
165+ // Animations
166+ implementation(" androidx.compose.animation:animation" )
168167 // Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
169- implementation(" androidx.compose.foundation:foundation:1.3.0 " )
168+ implementation(" androidx.compose.foundation:foundation" )
170169 // Material Design
171- implementation(" androidx.compose.material:material:1.3.0" )
172- implementation(" androidx.compose.material3:material3:1.1.0-alpha01" )
173- // Material design icons
174- implementation(" androidx.compose.material:material-icons-core:1.3.0" )
175- implementation(" androidx.compose.material:material-icons-extended:1.3.0" )
176- // Integration with observables
177- implementation(" androidx.compose.runtime:runtime-livedata:1.3.0" )
178- implementation(" androidx.compose.runtime:runtime-rxjava2:1.3.0" )
170+ implementation(" androidx.compose.material3:material3" )
171+ // Optional - Included automatically by material, only add when you need
172+ // the icons but not the material library (e.g. when using Material3 or a
173+ // custom design system based on Foundation)
174+ implementation(" androidx.compose.material:material-icons-core" )
175+ // Optional - Add full set of material icons
176+ implementation(" androidx.compose.material:material-icons-extended" )
177+ // Optional - Add window size utils
178+ implementation(" androidx.compose.material3:material3-window-size-class" )
179+ // Optional - Integration with activities
180+ implementation(" androidx.activity:activity-compose:1.6.1" )
181+ // Optional - Integration with ViewModels
182+ implementation(" androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1" )
183+ // Optional - Integration with LiveData
184+ implementation(" androidx.compose.runtime:runtime-livedata" )
179185 // UI Tests
180- androidTestImplementation(" androidx.compose.ui:ui-test-junit4:1.3.0 " )
181- debugImplementation(" androidx.compose.ui:ui-test-manifest:1.3.0 " )
186+ androidTestImplementation(" androidx.compose.ui:ui-test-junit4" )
187+ debugImplementation(" androidx.compose.ui:ui-test-manifest" )
182188
183189 // List of KTX extensions
184190 // https://developer.android.com/kotlin/ktx/extensions-list
0 commit comments