Added Apollo plugin

This commit is contained in:
Johannes Schmelz 2021-06-28 15:53:29 +02:00
parent 5eafba0249
commit b175584ab9

View File

@ -1,6 +1,12 @@
plugins { plugins {
id 'com.android.application' id 'com.android.application'
id 'kotlin-android' id 'kotlin-android'
id ("com.apollographql.apollo").version("2.5.9")
}
apollo {
// instruct the compiler to generate Kotlin models
generateKotlinModels.set(true)
} }
android { android {
@ -49,4 +55,12 @@ dependencies {
testImplementation 'junit:junit:4.+' testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2' androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
} }
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')
}