/*

Copyright 2015 Akexorcist

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

package com.akexorcist.googledirection.network;

import com.akexorcist.googledirection.constant.DirectionUrl;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.logging.HttpLoggingInterceptor;

import retrofit.GsonConverterFactory;
import retrofit.Retrofit;

/**
 * Created by Akexorcist on 11/29/15 AD.
 */
public class DirectionAndPlaceConnection {
    private static DirectionAndPlaceService service;
    public static DirectionAndPlaceService createService() {
        if(service == null) {
            OkHttpClient client = new OkHttpClient();
            HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
            interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
            client.interceptors().add(interceptor);

            Retrofit retrofit = new Retrofit.Builder()
                    .baseUrl(DirectionUrl.MAPS_API_URL)
                    .client(client)
                    .addConverterFactory(GsonConverterFactory.create())
                    .build();
            service = retrofit.create(DirectionAndPlaceService.class);
        }
        return service;
    }
}

@@ -662,108 +662,8 @@
 Url;
-%0Aimport com.squareup.okhttp.OkHttpClient;%0Aimport com.squareup.okhttp.logging.HttpLoggingInterceptor;
 %0A%0Aim
@@ -965,263 +965,8 @@
 ) %7B%0A
-            OkHttpClient client = new OkHttpClient();%0A            HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();%0A            interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);%0A            client.interceptors().add(interceptor);%0A%0A
     
@@ -1076,44 +1076,8 @@
 RL)%0A
-                    .client(client)%0A
     

Remove logging