Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve transaction list for GraphQL requests #805

Merged
merged 11 commits into from
Sep 10, 2022
Prev Previous commit
Next Next commit
Add apollo3 library
  • Loading branch information
Canato authored and cortinico committed Sep 10, 2022
commit ed2b51b06aba907a3da8f681392b82b8f09dbb5d
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ buildscript {
ktLintGradleVersion = '11.0.0'
leakcanaryVersion = '2.9.1'

// Apollo
apolloVersion = '3.2.1'

// Testing
androidxTestCoreVersion = '1.4.0'
junitGradlePluignVersion = '1.8.2.1'
Expand All @@ -50,6 +53,7 @@ buildscript {
classpath "com.android.tools.build:gradle:$androidGradleVersion"
classpath "de.mannodermaus.gradle.plugins:android-junit5:$junitGradlePluignVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "com.apollographql.apollo3:apollo-gradle-plugin:$apolloVersion"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detektVersion"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$ktLintGradleVersion"
classpath "org.jetbrains.kotlinx:binary-compatibility-validator:$binaryCompatibilityValidator"
Expand Down
11 changes: 11 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.squareup.wire'
apply plugin: 'com.apollographql.apollo3'

wire {
kotlin {}
Expand Down Expand Up @@ -62,6 +63,14 @@ android {
}
}

apollo {
packageName.set("com.chuckerteam.chucker.sample")
schemaFile.set(file("src/main/graphql/com/chuckerteam/chucker/sample/schema.json.graphql"))
srcDir("src/main/graphql")
excludes.add("**/schema.json.graphql")
excludes.add("**/schema.json")
}

dependencies {
debugImplementation project(':library')
releaseImplementation project(':library-no-op')
Expand All @@ -78,6 +87,8 @@ dependencies {
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"

implementation "com.apollographql.apollo3:apollo-runtime:$apolloVersion"

debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanaryVersion"
}

Expand Down