Skip to content

mendess12/retrofit

Repository files navigation

retrofit

Konu

 API'ye istek atılıp API'deki verileri recyclerview içinde göstermek 

API Url


Navigation component dependencies

- build.gradle (:app)

dependencies {
    def nav_version = "2.5.3"
    implementation("androidx.navigation:navigation-fragment-ktx:$nav_version")
    implementation("androidx.navigation:navigation-ui-ktx:$nav_version")
}
plugins{ id 'androidx.navigation.safeargs.kotlin' }
- build.gradle(project) dependencies { def nav_version = "2.5.3" classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version") }

View model dependencies

- build.gradle (:app)

dependencies {
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
    implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.1"
}

Retrofit-okHttp-Gson dependencies

- build.gradle (:app)

    - retrofit
    implementation 'com.squareup.retrofit2:retrofit:2.9.0'
    - Gson
    implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
    - okhttp
    implementation "com.squareup.okhttp3:logging-interceptor:4.9.0"
}

Kaynaklar


Uı Tasarımları

untitled