consultantsvur.blogg.se

Android clean architecture kotlin github
Android clean architecture kotlin github




android clean architecture kotlin github

collect”: just like observe in LiveData or Subscribe in RxJava, to receive the emitted variables. lifecycleScope: to launch the background thread of Flow in this certain scope, if this scope is not exist any more you don’t have to worry about the background threads.We get out our ViewModel by very useful Kotlin function ‘viewModels()’.‘AndroidEntryPoint’ to tell Hilt this is an entry point.LoadingState -> textView.text = "loading "Īctivity_splash.xml is a simple xml file with TextView with id textview1 in the center Implementation ':kotlinx-coroutines-core:1.4.2 ' Implementation "agment:fragment-ktx:1.3.5 " Implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.3.1 ' Implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1 ' Implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1 ' Implementation "androidx.lifecycle:lifecycle-extensions:2.2.0 " Implementation 'nstraintlayout:constraintlayout:2.0.4 '

android clean architecture kotlin github

Implementation ":kotlin-stdlib: $k otlin_version " ProguardFiles getDefaultProguardFile( 'proguard-android-optimize.txt '), 'proguard-rules.pro ' ApplicationId "com.cleanarchitectkotlinflowhiltsimplestway "






Android clean architecture kotlin github