Commit e44ee2f8 by Kunj Gupta

Added socket URL according to build type.

parent 752f45ec
......@@ -15,5 +15,28 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.vsoft.servicenow.ui.NotificationScreen"
android:screenOrientation="portrait"/>
<service android:name=".service.NotificationInstanceIdService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
<service
android:name=".service.NotificationMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/notification_icon"/>
</application>
</manifest>
......@@ -5,8 +5,6 @@ package com.vsoft.servicenow;
*/
public class AppConfig {
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12910/";
public static final String APP_INTERNAL_NAME = "Arrow";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
......@@ -39,4 +37,11 @@ public class AppConfig {
public static final String URL_GET_UI_POLICY = "/api/vsng2/uofl_mobile/uipolicy";
public static final String URL_GET_VARIABLE_CHOICE = "/api/vsng2/uofl_mobile/question_choice";
public static final String URL_POST_CATALOGUE_ITEM = "api/vsng2/uofl_mobile";
/**
* Socket Chat server URLs
* */
public static final String CHAT_SERVER_URL_RELEASE = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_DEBUG = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_STAGING = "http://111.93.6.218:12910/";
}
......@@ -7,8 +7,6 @@ public class AppConfig {
public static final String APP_INTERNAL_NAME = "Citrix";
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12910/";
public static final String DOMAIN_RELEASE = "https://ven01199.service-now.com/";
public static final String DOMAIN_DEBUG = "https://ven01199.service-now.com/";
......@@ -34,4 +32,11 @@ public class AppConfig {
public static final String URL_GET_UI_POLICY = "/api/vsng2/app_apis/uipolicy";
public static final String URL_GET_VARIABLE_CHOICE = "/api/vsng2/app_apis/question_choice";
public static final String URL_POST_CATALOGUE_ITEM = "api/vsng2/app_apis";
/**
* Socket Chat server URLs
* */
public static final String CHAT_SERVER_URL_RELEASE = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_DEBUG = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_STAGING = "http://111.93.6.218:12910/";
}
......@@ -7,8 +7,6 @@ public class AppConfig {
public static final String APP_INTERNAL_NAME = "GE";
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12910/";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
......@@ -39,4 +37,11 @@ public class AppConfig {
public static final String URL_GET_UI_POLICY = "/api/vsng2/uofl_mobile/uipolicy";
public static final String URL_GET_VARIABLE_CHOICE = "/api/vsng2/uofl_mobile/question_choice";
public static final String URL_POST_CATALOGUE_ITEM = "api/vsng2/uofl_mobile";
/**
* Socket Chat server URLs
* */
public static final String CHAT_SERVER_URL_RELEASE = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_DEBUG = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_STAGING = "http://111.93.6.218:12910/";
}
......@@ -136,7 +136,7 @@ public class CatalogueApplication extends Application {
private void initializeSocket() {
try {
mSocket = IO.socket(AppConfig.CHAT_SERVER_URL);
mSocket = IO.socket(Constants.CHAT_SERVER_URL);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
......
......@@ -163,4 +163,11 @@ public class Constants {
/*Chat Activity*/
public static final String CHAT_USER_API_URL = DOMAIN + URL_GET_USERDETAILS.substring(1);
/**
* Chat Server URL
* */
public static final String CHAT_SERVER_URL = (BUILD_TYPE_RELEASE == BuildConfig.BUILD_TYPE_INT
? AppConfig.CHAT_SERVER_URL_RELEASE
: (BUILD_TYPE_DEBUG == BuildConfig.BUILD_TYPE_INT ? AppConfig.CHAT_SERVER_URL_DEBUG : AppConfig.CHAT_SERVER_URL_STAGING));
}
......@@ -6,7 +6,6 @@ package com.vsoft.servicenow;
public class AppConfig {
public static final String APP_INTERNAL_NAME = "UofL";
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12912";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
......@@ -38,4 +37,11 @@ public class AppConfig {
public static final String URL_GET_UI_POLICY = "/api/vsng2/uofl_mobile/uipolicy";
public static final String URL_GET_VARIABLE_CHOICE = "/api/vsng2/uofl_mobile/question_choice";
public static final String URL_POST_CATALOGUE_ITEM = "api/vsng2/uofl_mobile";
/**
* Socket Chat server URLs
* */
public static final String CHAT_SERVER_URL_RELEASE = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_DEBUG = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_STAGING = "http://111.93.6.218:12910/";
}
......@@ -8,7 +8,6 @@ import android.content.Context;
public class AppConfig {
public static final String APP_INTERNAL_NAME = "V-Portal";
public static final String CHAT_SERVER_URL = "http://111.93.6.218:12912"; // "http://10.1.8.170:12912/";
public static final String LOGIN_CLIENT_ID_RELEASE = "d958eb06b0f3830093781f441d59febc";
public static final String LOGIN_CLIENT_SECRET_RELEASE = "krD*!O}1.8";
......@@ -40,4 +39,11 @@ public class AppConfig {
public static final String URL_GET_UI_POLICY = "/api/vsng2/uofl_mobile/uipolicy";
public static final String URL_GET_VARIABLE_CHOICE = "/api/vsng2/uofl_mobile/question_choice";
public static final String URL_POST_CATALOGUE_ITEM = "api/vsng2/uofl_mobile";
/**
* Socket Chat server URLs
* */
public static final String CHAT_SERVER_URL_RELEASE = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_DEBUG = "http://111.93.6.218:12910/";
public static final String CHAT_SERVER_URL_STAGING = "http://111.93.6.218:12910/";
}
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