app url changed
This commit is contained in:
@@ -4,8 +4,8 @@ public class ApiConstants {
|
||||
public static final int API_READ_TIMEOUT = 30;
|
||||
public static final int API_CONNECT_TIMEOUT = 10;
|
||||
//public static final String API_PATH = "http://www.pizzalink.ch/";
|
||||
//public static final String API_PATH = "http://pizzaleu.ddns.net/";
|
||||
public static final String API_PATH = "http://pizzamaxx.ch/";
|
||||
public static final String API_PATH = "http://pizzaleu.ddns.net/";
|
||||
//public static final String API_PATH = "http://pizzamaxx.ch/";
|
||||
public static final int CATEGORY_ID_WUNSCHPIZZA = 9999;
|
||||
public static final int CATEGORY_ID_EKSTRA_KEBAP = 9998;
|
||||
public static final int PRODUCT_ID_WUNSCHPIZZA = 56;
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.google.gson.GsonBuilder;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import ch.pizzaleu.android.BuildConfig;
|
||||
import okhttp3.Interceptor;
|
||||
import okhttp3.OkHttpClient;
|
||||
import okhttp3.Request;
|
||||
@@ -50,7 +51,10 @@ public class ApiService {
|
||||
|
||||
HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); // set your desired log level
|
||||
logging.setLevel(HttpLoggingInterceptor.Level.BODY);
|
||||
//builder.addInterceptor(logging);
|
||||
|
||||
if(BuildConfig.DEBUG){
|
||||
builder.addInterceptor(logging);
|
||||
}
|
||||
|
||||
OkHttpClient client = builder.build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user