fd010d8f
Surendar D
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package com.e9ine.android.driver;
import android.content.pm.ActivityInfo;
import java.util.HashMap;
import java.util.Map;
/**
* @author Surendar D
*
* This class is responsible for keeping application configuration as constants.
*/
public class Config {
//--------------------------------------------------------------------------------
// App generic configurations
//--------------------------------------------------------------------------------
public static final boolean DEBUG = true;
public static final int ORIENTATION_PORTRAIT = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT;
public static final int ORIENTATION_LANDSCAPE = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
public static final int ORIENTATION_SENSOR = ActivityInfo.SCREEN_ORIENTATION_SENSOR;
public static final int ORIENTATION_DEFAULT = ORIENTATION_PORTRAIT;
//--------------------------------------------------------------------------------
// API related constants/configurations - used in ApiModule, should end with `/`
//--------------------------------------------------------------------------------
public static final String API_BASE_URL_PRODUCTION = "";
public static final String API_BASE_URL_DEVELOP = "";
public static final String API_BASE_URL_MOCK = "https://api.androidhive.info/";
// Active base url
public static final String API_BASE_URL = API_BASE_URL_MOCK;
// Headers required to be added by interceptor
public static final Map<String, String> API_HEADERS = new HashMap<String, String>() {{
put("User-Agent", "Tecsol-MVPStarter-App");
put("Content-Type", "application/json");
}};
}
|