From eb5014c3a367ff5fa13271a1d17abfaea9cc1e7e Mon Sep 17 00:00:00 2001 From: Peter Kurfer <peter.kurfer@fh-rosenheim.de> Date: Thu, 13 Dec 2018 23:57:00 +0100 Subject: [PATCH] Removed section about Retrofit CallAdapters as it's not required anymore --- README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/README.md b/README.md index 6d5e775..beb4380 100644 --- a/README.md +++ b/README.md @@ -20,16 +20,6 @@ _This is the CLI variant of the assignment. There's also an [Android variant](ht _Remark: the given unit tests won't succeed until you have completed the first part of this assignment as they require the `CompletableFuture<>` Call Adapter registered in Retrofit!_ -## Retrofit Call Adapter - -To be able to use the given `OpenMensaAPI` interface with Retrofit you have to do some extra work. -Retrofit is able to return `CompletableFuture<>` but you have to register a [Call Adapter](https://github.com/square/retrofit/wiki/Call-Adapters) to enable this feature. - -To accomplish this you have to include another dependency in the `build.gradle`-file and register the adapter within the Retrofit builder (`.addCallAdapterFactory(...)`). - -To validate that the Call Adapter is registered correctly run the given unit tests. -They're also a good starting point to get an idea how to use the API with `Future<>`s instead of the Retrofit specific `Call<>` objects. - ## Retrieving all canteens The given CLI application has a menu which asks the user which action he wants to perform. -- GitLab