package com.example.apollographql.sample;

import android.app.Application;

import com.apollographql.android.ApolloClient;

import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;

public class SampleApplication extends Application {

  private static final String BASE_URL = "https://githunt-api.herokuapp.com/graphql";
  private ApolloClient apolloClient;

  @Override public void onCreate() {
    super.onCreate();
    HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();
    loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
    OkHttpClient okHttpClient = new OkHttpClient.Builder()
        .addNetworkInterceptor(loggingInterceptor)
        .build();

    apolloClient = ApolloClient.builder()
            .serverUrl(BASE_URL)
            .okHttpClient(okHttpClient)
            .build();
  }

  public ApolloClient apolloClient() {
    return apolloClient;
  }
}

@@ -69,16 +69,17 @@
 ation;%0A%0A
+%0A
 import c
@@ -103,16 +103,123 @@
 android.
+ApolloCall;%0Aimport com.apollographql.android.impl.ApolloCallAdapter;%0Aimport com.apollographql.android.impl.
 ApolloCl
@@ -456,32 +456,44 @@
 ate ApolloClient
+%3CApolloCall%3E
  apolloClient;%0A%0A
@@ -858,16 +858,28 @@
 oClient.
+%3CApolloCall%3E
 builder(
@@ -953,16 +953,70 @@
 Client)%0A
+            .withCallAdapter(new ApolloCallAdapter())%0A
         
@@ -1055,16 +1055,28 @@
 loClient
+%3CApolloCall%3E
  apolloC

Update sample app to use CallAdapter (#248)