This shows you the differences between two versions of the page.
smd:laboratoare:05 [2021/04/14 19:58] adriana.draghici [HttpUrlConnection] |
smd:laboratoare:05 [2021/05/18 22:17] (current) adriana.draghici [Tasks] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Lab 5. HTTP and web services ===== | ===== Lab 5. HTTP and web services ===== | ||
- | <note important>This page hasn't been updated yet for the 2021 semester and may contain outdated information</note> | ||
==== Objectives ==== | ==== Objectives ==== | ||
Line 169: | Line 168: | ||
</code> | </code> | ||
<code> | <code> | ||
+ | apply plugin: 'kotlin-kapt' | ||
+ | |||
dependencies { | dependencies { | ||
implementation 'com.squareup.retrofit2:retrofit:2.9.0' | implementation 'com.squareup.retrofit2:retrofit:2.9.0' | ||
- | implementation("com.squareup.moshi:moshi-kotlin:1.12.0") | + | implementation 'com.squareup.retrofit2:converter-moshi:2.9.0' |
+ | implementation 'com.squareup.moshi:moshi-kotlin:1.12.0' | ||
+ | |||
+ | kapt "com.squareup.moshi:moshi-kotlin-codegen:1.11.0" | ||
} | } | ||
</code> | </code> | ||
+ | <note>Kotlin example for retrofit on our lab's repo: [[https://github.com/SMD-UPB/labs/tree/main/lab5-demos/retrofit-demo-kotlin|retrofit-demo-kotlin]]</note> | ||
==== Tasks ==== | ==== Tasks ==== | ||
Line 224: | Line 228: | ||
=== Resources === | === Resources === | ||
- | {{:smd:laboratoare:lab5_skel.zip|}} | + | * {{:smd:laboratoare:lab5_skel.zip|}} |
+ | * [[https://github.com/SMD-UPB/labs/tree/main/demos|Demo app for Retrofit shown during a lab]] | ||