File tree 2 files changed +3
-2
lines changed
app/src/main/java/com/example/jetsnack/ui/home/cart 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ import kotlinx.coroutines.flow.StateFlow
28
28
* TODO: Move data to Repository so it can be displayed and changed consistently throughout the app.
29
29
*/
30
30
class CartViewModel : ViewModel () {
31
- private val _orderLines : MutableStateFlow <List <OrderLine >> = MutableStateFlow (SnackRepo .getCart())
31
+ private val _orderLines : MutableStateFlow <List <OrderLine >> =
32
+ MutableStateFlow (SnackRepo .getCart())
32
33
val orderLines: StateFlow <List <OrderLine >> get() = _orderLines
33
34
34
35
fun removeSnack (snackId : Long ) {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ subprojects {
64
64
targetExclude(" $buildDir /**/*.kt" )
65
65
targetExclude(' bin/**/*.kt' )
66
66
67
- ktlint(Versions . ktlint)
67
+ ktlint(Versions . ktlint). userData([ android : " true " ])
68
68
licenseHeaderFile rootProject. file(' spotless/copyright.kt' )
69
69
}
70
70
}
You can’t perform that action at this time.
0 commit comments