Actually yeah I almost spent a day to get 'kotlin-parcelize' plugin working 😅🤦♂️ It seems that is solved in alpha08, using the following versions // Just update & unify compose dependencies version with compiler extension version def kotlin_compiler_extension_version = "1.0.0-alpha08" def compose = "1.0.0-alpha08" // And unify Kotlin compiler version with Kotlin version def kotlin_compiler_version = "1.4.20" ext.kotlin_version = "1.4.20" Also "androidx.ui:ui-tooling" dependency updated to be "androidx.compose.ui:ui-tooling" in alpha08 Thank you so much Mitch for the awesome course as usual & for your ENGAGEMENT 💪
I think the kotlin extension mean to pointing to xml view by it's id like tv_title , so no need to search search the view using findViewById(R.id.tv_title) In the new version we can use view binding, then we need the enable viewbinding in gradle module, After that we can use: binding.tvTitle Yeah it automatically convert the tv_title to tvTitle
Although rather than using @Parcelize annotation I prefer use @SerializedName annotation on each of data class property data class Recipe ( @SerializedName('name') val name: String ) From GSON lib
Not short at all 😂, but great video, thank you! I've been using interfaces instead of data classes for domain models and then implementing them in a data class in the outter layers, but I don't know if it is a good practice or not, what do you think about it?
is there any bug in android studio canary 4.2? cause whenever i make changes in jetpack compose app i need to uninstall the app and then have to install it again in order to see changes. I'm not able to see changes after running app or instant run feature.
I think it would be more accurate to call this the application model, not business model. I think business model is not really a good name for any data structure