Skip to content

kotlin cortounites, lifecycle runtime/view-model

Notifications You must be signed in to change notification settings

fekri8614/student2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

student2

Used kotlin coroutines components/(androix)


used back-end project of Student1 !


Dependency

in build.gradle( :app):

android {
    ...

    buildFeatures {
        viewBinding true
    }
 
}

dependencies {

    ...

    // kotlin coroutines -->
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'

    // RxJava2 -->
    implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
    implementation 'io.reactivex.rxjava2:rxjava:2.2.21'

    // Retrofit2 ->
    def retrofit2_version = "2.9.0"
    implementation "com.squareup.retrofit2:retrofit:$retrofit2_version"
    implementation "com.squareup.retrofit2:converter-gson:$retrofit2_version"
    implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit2_version"

    // lifecycle -->
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1'

}

Info:

I used 2.4.1 version for lifecycle-runitime/viewmodel.

2.6.1 is avilable but, I couldn't use it (couldn't set on project dependencies)

About

kotlin cortounites, lifecycle runtime/view-model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published