Commit c71e8f4f by Kunj Gupta

Changed variables name for URL.

parent 5221d3ea
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.vsoft.servicenow">
xmlns:tools="http://schemas.android.com/tools"
package="com.vsoft.servicenow">
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
tools:replace="android:icon"
android:icon="@mipmap/ge_launcher"
>
tools:replace="android:icon">
<activity
android:name=".chat.ChatActivity"
android:label="@string/chat_activity_label"
......
......@@ -9,14 +9,14 @@ public class AppConfig {
public static final String APP_INTERNAL_NAME = "Arrow";
public static final String DOMAIN_PRODUCTION = "https://ven01199.service-now.com/";
public static final String DOMAIN_TEST = "https://vsoftconsultingdemo1.service-now.com/";
public static final String DOMAIN_RELEASE = "https://ven01199.service-now.com/";
public static final String DOMAIN_DEBUG = "https://vsoftconsultingdemo1.service-now.com/";
public static final String LOGIN_CLIENT_ID_PRODUCTION = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_PRODUCTION = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_TEST = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_TEST = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_DEBUG = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_DEBUG = "krD*!O}1.8";
/**
* Web services urls
......
......@@ -9,14 +9,14 @@ public class AppConfig {
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12910/";
public static final String DOMAIN_PRODUCTION = "https://ven01199.service-now.com/";
public static final String DOMAIN_TEST = "https://ven01199.service-now.com/";
public static final String DOMAIN_RELEASE = "https://ven01199.service-now.com/";
public static final String DOMAIN_DEBUG = "https://ven01199.service-now.com/";
public static final String LOGIN_CLIENT_ID_PRODUCTION = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_PRODUCTION = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_TEST = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_TEST = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_DEBUG = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_DEBUG = "krD*!O}1.8";
/**
* Web services urls
......
......@@ -9,14 +9,14 @@ public class AppConfig {
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12910/";
public static final String DOMAIN_PRODUCTION = "https://ven01199.service-now.com/";
public static final String DOMAIN_TEST = "https://geapplightrnd.service-now.com/";
public static final String DOMAIN_RELEASE = "https://ven01199.service-now.com/";
public static final String DOMAIN_DEBUG = "https://geapplightrnd.service-now.com/";
public static final String LOGIN_CLIENT_ID_PRODUCTION = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_PRODUCTION = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_TEST = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_TEST = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_DEBUG = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_DEBUG = "krD*!O}1.8";
/**
* Web services urls
......
......@@ -71,11 +71,11 @@ public class Constants {
/**
* Decides the URLS used
*/
private static final String DOMAIN_PRODUCTION = AppConfig.DOMAIN_PRODUCTION;
private static final String DOMAIN_TEST = AppConfig.DOMAIN_TEST;
private static final String DOMAIN_RELEASE = AppConfig.DOMAIN_RELEASE;
private static final String DOMAIN_DEBUG = AppConfig.DOMAIN_DEBUG;
private static final String API_PATH_PRODUCTION = "/api/now/table/";
private static final String API_PATH_TEST = "/api/now/table/";
private static final String API_PATH_RELEASE = "/api/now/table/";
private static final String API_PATH_DEBUG = "/api/now/table/";
private static final int BUILD_TYPE_DEBUG = 1;
private static final int BUILD_TYPE_RELEASE = 2;
......@@ -83,44 +83,44 @@ public class Constants {
/**
* Decides the Api auth data used
*/
private static final String API_AUTH_PARAM_USER_NAME_PRODUCTION = "vsoft.admin";
private static final String API_AUTH_PARAM_PASSWORD_PRODUCTION = "v50ft@123456";
private static final String API_AUTH_PARAM_USER_NAME_RELEASE = "vsoft.admin";
private static final String API_AUTH_PARAM_PASSWORD_RELEASE = "v50ft@123456";
private static final String API_AUTH_PARAM_USER_NAME_TEST = "a0kuma18";
private static final String API_AUTH_PARAM_PASSWORD_TEST = "v$0ftA$win";
private static final String API_AUTH_PARAM_USER_NAME_DEBUG = "a0kuma18";
private static final String API_AUTH_PARAM_PASSWORD_DEBUG = "v$0ftA$win";
public static final String API_AUTH_PARAM_USER_NAME = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? API_AUTH_PARAM_USER_NAME_PRODUCTION
: API_AUTH_PARAM_USER_NAME_TEST);
? API_AUTH_PARAM_USER_NAME_RELEASE
: API_AUTH_PARAM_USER_NAME_DEBUG);
public static final String API_AUTH_PARAM_PASSWORD = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? API_AUTH_PARAM_PASSWORD_PRODUCTION
: API_AUTH_PARAM_PASSWORD_TEST);
? API_AUTH_PARAM_PASSWORD_RELEASE
: API_AUTH_PARAM_PASSWORD_DEBUG);
private static final String API_PATH = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? API_PATH_PRODUCTION
: API_PATH_TEST);
? API_PATH_RELEASE
: API_PATH_DEBUG);
private static final String DOMAIN_FROM_BUILD = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? DOMAIN_PRODUCTION
: DOMAIN_TEST);
? DOMAIN_RELEASE
: DOMAIN_DEBUG);
/**
* Decides the Client data used
*/
private static final String LOGIN_CLIENT_ID_PRODUCTION = AppConfig.LOGIN_CLIENT_ID_PRODUCTION;
private static final String LOGIN_CLIENT_SECRET_PRODUCTION = AppConfig.LOGIN_CLIENT_SECRET_PRODUCTION;
private static final String LOGIN_CLIENT_ID_RELEASE = AppConfig.LOGIN_CLIENT_ID_RELEASE;
private static final String LOGIN_CLIENT_SECRET_RELEASE = AppConfig.LOGIN_CLIENT_SECRET_RELEASE;
private static final String LOGIN_CLIENT_ID_TEST = AppConfig.LOGIN_CLIENT_ID_TEST;
private static final String LOGIN_CLIENT_SECRET_TEST = AppConfig.LOGIN_CLIENT_SECRET_TEST;
private static final String LOGIN_CLIENT_ID_DEBUG = AppConfig.LOGIN_CLIENT_ID_DEBUG;
private static final String LOGIN_CLIENT_SECRET_DEBUG = AppConfig.LOGIN_CLIENT_SECRET_DEBUG;
public static final String LOGIN_CLIENT_ID = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? LOGIN_CLIENT_ID_PRODUCTION
: LOGIN_CLIENT_ID_TEST);
? LOGIN_CLIENT_ID_RELEASE
: LOGIN_CLIENT_ID_DEBUG);
public static final String LOGIN_CLIENT_SECRET = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? LOGIN_CLIENT_SECRET_PRODUCTION
: LOGIN_CLIENT_SECRET_TEST);
? LOGIN_CLIENT_SECRET_RELEASE
: LOGIN_CLIENT_SECRET_DEBUG);
/**
* Domain to use
......
......@@ -9,14 +9,14 @@ public class AppConfig {
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12910/";
public static final String DOMAIN_PRODUCTION = "https://ven01199.service-now.com/";
public static final String DOMAIN_TEST = "https://ven01199.service-now.com/";//"https://uofltest.service-now.com/";
public static final String DOMAIN_RELEASE = "https://ven01199.service-now.com/";
public static final String DOMAIN_DEBUG = "https://ven01199.service-now.com/";//"https://uofltest.service-now.com/";
public static final String LOGIN_CLIENT_ID_PRODUCTION = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_PRODUCTION = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_TEST = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_TEST = "krD*!O}1.8";
public static final String LOGIN_CLIENT_ID_DEBUG = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_DEBUG = "krD*!O}1.8";
/**
* Web services urls
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment