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') +} +