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
6bcc8602
authored
May 01, 2018
by
Prabhu Chaitanya Areti
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Changes domain name for chat bot
parent
216ba3ae
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
50 additions
and
50 deletions
app/build.gradle
app/src/main/java/com/vsoft/servicenow/db/managers/HRCaseItemInputManager.java
app/src/vportal/java/com/vsoft/servicenow/AppConfig.java
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
build.gradle
gradle/wrapper/gradle-wrapper.properties
app/build.gradle
View file @
6bcc8602
...
@@ -18,16 +18,16 @@ android {
...
@@ -18,16 +18,16 @@ android {
flavorDimensions
"tier"
flavorDimensions
"tier"
signingConfigs
{
signingConfigs
{
debug
{
debug
{
keyAlias
'androiddebugkey'
//
keyAlias 'androiddebugkey'
keyPassword
'android'
//
keyPassword 'android'
storeFile
file
(
'/Users/chaukadev/.android/debug.keystore'
)
//
storeFile file('/Users/chaukadev/.android/debug.keystore')
storePassword
'android'
//
storePassword 'android'
}
}
config
{
config
{
keyAlias
'Uofl'
//
keyAlias 'Uofl'
keyPassword
'Vsoft@123'
//
keyPassword 'Vsoft@123'
storeFile
file
(
'/Users/apple/Desktop/uofl_builds/Uofl_keys'
)
//
storeFile file('/Users/apple/Desktop/uofl_builds/Uofl_keys')
storePassword
'Vsoft@123'
//
storePassword 'Vsoft@123'
}
}
}
}
...
...
app/src/main/java/com/vsoft/servicenow/db/managers/HRCaseItemInputManager.java
View file @
6bcc8602
...
@@ -135,27 +135,28 @@ public class HRCaseItemInputManager implements DBConstants {
...
@@ -135,27 +135,28 @@ public class HRCaseItemInputManager implements DBConstants {
}
}
public
static
List
<
HRCaseItemInput
>
getDirtyItemInput
()
{
public
static
List
<
HRCaseItemInput
>
getDirtyItemInput
()
{
SQLiteDatabase
db
=
CatalogueApplication
.
getDatabase
();
// SQLiteDatabase db = CatalogueApplication.getDatabase();
//
if
(
db
!=
null
)
{
// if(db!=null) {
Cursor
c
=
db
.
rawQuery
(
"select * from "
+
TABLE_HR_CASE_ITEM_INPUT
// Cursor c = db.rawQuery("select * from " + TABLE_HR_CASE_ITEM_INPUT
+
" where "
+
HR_CASE_ITEM_INPUT_SYNC_DIRTY
+
">"
+
SYNC_FLAG_NONE
,
null
);
// + " where " + HR_CASE_ITEM_INPUT_SYNC_DIRTY + ">" + SYNC_FLAG_NONE , null);
ArrayList
<
HRCaseItemInput
>
itemInputList
;
// ArrayList<HRCaseItemInput> itemInputList;
if
(
c
.
getCount
()
>
0
)
{
// if (c.getCount() > 0) {
itemInputList
=
new
ArrayList
<>(
c
.
getCount
());
// itemInputList = new ArrayList<>(c.getCount());
while
(
c
.
moveToNext
())
{
// while (c.moveToNext()) {
HRCaseItemInput
.
HRCaseItemInputBuilder
builder
=
HRCaseItemInput
.
HRCaseItemInputBuilder
.
aHRCaseItemInput
();
// HRCaseItemInput.HRCaseItemInputBuilder builder = HRCaseItemInput.HRCaseItemInputBuilder.aHRCaseItemInput();
fillAllItemInputDetails
(
c
,
builder
);
// fillAllItemInputDetails(c, builder);
itemInputList
.
add
(
builder
.
build
());
// itemInputList.add(builder.build());
}
// }
}
else
{
// } else {
itemInputList
=
new
ArrayList
<>(
0
);
// itemInputList = new ArrayList<>(0);
}
// }
c
.
close
();
// c.close();
return
itemInputList
;
// return itemInputList;
}
else
{
// } else {
return
new
ArrayList
<>(
0
);
// return new ArrayList<>(0);
}
// }
return
null
;
}
}
private
static
void
fillAllItemInputDetails
(
Cursor
c
,
HRCaseItemInput
.
HRCaseItemInputBuilder
builder
)
{
private
static
void
fillAllItemInputDetails
(
Cursor
c
,
HRCaseItemInput
.
HRCaseItemInputBuilder
builder
)
{
...
...
app/src/vportal/java/com/vsoft/servicenow/AppConfig.java
View file @
6bcc8602
...
@@ -61,5 +61,5 @@ public class AppConfig {
...
@@ -61,5 +61,5 @@ public class AppConfig {
* */
* */
public
static
final
String
CHAT_SERVER_URL_RELEASE
=
"http://111.93.6.218:12914/"
;
public
static
final
String
CHAT_SERVER_URL_RELEASE
=
"http://111.93.6.218:12914/"
;
public
static
final
String
CHAT_SERVER_URL_DEBUG
=
"http://111.93.6.218:12911/"
;
public
static
final
String
CHAT_SERVER_URL_DEBUG
=
"http://111.93.6.218:12911/"
;
public
static
final
String
CHAT_SERVER_URL_STAGING
=
"http://
111.93.6.218:12912
/"
;
public
static
final
String
CHAT_SERVER_URL_STAGING
=
"http://
ai.test.vsoftconsulting.com:3000
/"
;
}
}
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
View file @
6bcc8602
...
@@ -36,25 +36,25 @@ public class MenuProvider {
...
@@ -36,25 +36,25 @@ public class MenuProvider {
.
setTitle
(
R
.
string
.
home_screen_report_incident_title
)
.
setTitle
(
R
.
string
.
home_screen_report_incident_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_my_request_icon
)
.
setMenuIconResId
(
R
.
string
.
home_screen_my_request_icon
)
.
build
(),
.
build
(),
new
CreateHRCaseMenuItemData
.
Builder
()
//
new CreateHRCaseMenuItemData.Builder()
.
setTitle
(
R
.
string
.
home_screen_create_hr_case_title
)
//
.setTitle(R.string.home_screen_create_hr_case_title)
.
setMenuIconResId
(
R
.
string
.
home_screen_create_hr_case_icon
)
//
.setMenuIconResId(R.string.home_screen_create_hr_case_icon)
.
build
(),
//
.build(),
new
ViewHRCaseMenuItemData
.
Builder
()
//
new ViewHRCaseMenuItemData.Builder()
.
setTitle
(
R
.
string
.
home_screen_view_hr_case_title
)
//
.setTitle(R.string.home_screen_view_hr_case_title)
.
setMenuIconResId
(
R
.
string
.
home_screen_view_hr_case_icon
)
//
.setMenuIconResId(R.string.home_screen_view_hr_case_icon)
.
build
(),
//
.build(),
new
ChatMenuItemData
.
Builder
()
new
ChatMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_chat_title
)
.
setTitle
(
R
.
string
.
home_screen_chat_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_chat_icon
)
.
setMenuIconResId
(
R
.
string
.
home_screen_chat_icon
)
.
build
(),
new
NotificationMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_notification_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_notification_icon
)
.
build
(),
new
ApprovalsMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_approvals_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_approvals_icon
)
.
build
()
.
build
()
// new NotificationMenuItemData.Builder()
// .setTitle(R.string.home_screen_notification_title)
// .setMenuIconResId(R.string.home_screen_notification_icon)
// .build(),
// new ApprovalsMenuItemData.Builder()
// .setTitle(R.string.home_screen_approvals_title)
// .setMenuIconResId(R.string.home_screen_approvals_icon)
// .build()
);
);
}
}
build.gradle
View file @
6bcc8602
...
@@ -6,7 +6,7 @@ buildscript {
...
@@ -6,7 +6,7 @@ buildscript {
google
()
google
()
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:3.
0
.1'
classpath
'com.android.tools.build:gradle:3.
1
.1'
classpath
'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath
'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath
'com.google.gms:google-services:3.1.0'
classpath
'com.google.gms:google-services:3.1.0'
...
...
gradle/wrapper/gradle-wrapper.properties
View file @
6bcc8602
#
Wed Mar 07 21:00:49
IST 2018
#
Mon Apr 30 19:16:01
IST 2018
distributionBase
=
GRADLE_USER_HOME
distributionBase
=
GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.4-all.zip
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