From b175584ab91727c87fd5baf5f7a8cbd17d861062 Mon Sep 17 00:00:00 2001 From: peet Date: Mon, 28 Jun 2021 15:53:29 +0200 Subject: [PATCH] Added Apollo plugin --- app/build.gradle | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index f6be205..df78305 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,12 @@ plugins { id 'com.android.application' id 'kotlin-android' + id ("com.apollographql.apollo").version("2.5.9") +} + +apollo { + // instruct the compiler to generate Kotlin models + generateKotlinModels.set(true) } android { @@ -49,4 +55,12 @@ dependencies { testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' -} \ No newline at end of file +} + +dependencies { + // The core runtime dependencies + implementation('com.apollographql.apollo:apollo-runtime:2.5.9') + // Coroutines extensions for easier asynchronicity handling + implementation('com.apollographql.apollo:apollo-coroutines-support:2.5.9') +} +