Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e44ee2f8
authored
Apr 04, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added socket URL according to build type.
parent
752f45ec
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
66 additions
and
9 deletions
app/src/arrow/AndroidManifest.xml
app/src/arrow/java/com/vsoft/servicenow/AppConfig.java
app/src/citrix/java/com/vsoft/servicenow/AppConfig.java
app/src/ge/java/com/vsoft/servicenow/AppConfig.java
app/src/main/java/com/vsoft/servicenow/CatalogueApplication.java
app/src/main/java/com/vsoft/servicenow/utils/Constants.java
app/src/uofl/java/com/vsoft/servicenow/AppConfig.java
app/src/vportal/java/com/vsoft/servicenow/AppConfig.java
app/src/arrow/AndroidManifest.xml
View file @
e44ee2f8
...
...
@@ -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>
app/src/arrow/java/com/vsoft/servicenow/AppConfig.java
View file @
e44ee2f8
...
...
@@ -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/"
;
}
app/src/citrix/java/com/vsoft/servicenow/AppConfig.java
View file @
e44ee2f8
...
...
@@ -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/"
;
}
app/src/ge/java/com/vsoft/servicenow/AppConfig.java
View file @
e44ee2f8
...
...
@@ -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/"
;
}
app/src/main/java/com/vsoft/servicenow/CatalogueApplication.java
View file @
e44ee2f8
...
...
@@ -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
);
}
...
...
app/src/main/java/com/vsoft/servicenow/utils/Constants.java
View file @
e44ee2f8
...
...
@@ -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
));
}
app/src/uofl/java/com/vsoft/servicenow/AppConfig.java
View file @
e44ee2f8
...
...
@@ -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/"
;
}
app/src/vportal/java/com/vsoft/servicenow/AppConfig.java
View file @
e44ee2f8
...
...
@@ -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/"
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment