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
6fa49ad1
authored
May 01, 2018
by
Niladri
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Updated Code
parent
216ba3ae
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
44 deletions
app/build.gradle
app/src/main/java/com/vsoft/servicenow/service/SyncService.java
app/src/vportal/java/com/vsoft/servicenow/AppConfig.java
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
app/vportal.jks
app/build.gradle
View file @
6fa49ad1
...
...
@@ -18,16 +18,16 @@ android {
flavorDimensions
"tier"
signingConfigs
{
debug
{
keyAlias
'
androiddebugkey
'
keyPassword
'
android
'
storeFile
file
(
'
/Users/chaukadev/.android/debug.keystore
'
)
storePassword
'
android
'
keyAlias
'
vportal
'
keyPassword
'
vportal
'
storeFile
file
(
'
vportal.jks
'
)
storePassword
'
vportal
'
}
config
{
keyAlias
'
Uof
l'
keyPassword
'
Vsoft@123
'
storeFile
file
(
'
/Users/apple/Desktop/uofl_builds/Uofl_key
s'
)
storePassword
'
Vsoft@123
'
keyAlias
'
vporta
l'
keyPassword
'
vportal
'
storeFile
file
(
'
vportal.jk
s'
)
storePassword
'
vportal
'
}
}
...
...
@@ -39,7 +39,7 @@ android {
minSdkVersion
15
targetSdkVersion
27
versionCode
1
versionName
"0.0.
33
"
versionName
"0.0.
1
"
multiDexEnabled
true
}
buildTypes
{
...
...
app/src/main/java/com/vsoft/servicenow/service/SyncService.java
View file @
6fa49ad1
...
...
@@ -97,23 +97,23 @@ public class SyncService extends IntentService {
if
(
Constants
.
DEBUG
)
CatalogueLog
.
d
(
"startSync: result of syncing attachment "
+
i
+
": "
+
result
);
}
/*Then we will work on dirty variable form*/
List
<
HRCaseItemInput
>
hrCaseItemInputList
=
HRCaseItemInputManager
.
getDirtyItemInput
();
if
(
Constants
.
DEBUG
)
CatalogueLog
.
d
(
"startSync: HRCase form to sync: "
+
hrCaseItemInputList
.
size
());
for
(
int
i
=
0
;
i
<
hrCaseItemInputList
.
size
();
i
++)
{
HRCaseItemInput
hrCaseItemInput
=
hrCaseItemInputList
.
get
(
i
);
result
=
syncHRCaseVariableForm
(
hrCaseItemInput
);
if
(
Constants
.
DEBUG
)
CatalogueLog
.
d
(
"startSync: result of syncing hrCaseItemInput "
+
i
+
": "
+
result
);
}
/*Then we will work on dirty HRCase attachment*/
List
<
HRCaseAttachment
>
hrCaseAttachmentList
=
HRCaseAttachmentManager
.
getDirtyHRCaseAttachment
();
if
(
Constants
.
DEBUG
)
CatalogueLog
.
d
(
"startSync: HRCaseAttachment to sync: "
+
hrCaseAttachmentList
.
size
());
for
(
int
i
=
0
;
i
<
hrCaseAttachmentList
.
size
();
i
++)
{
HRCaseAttachment
hrCaseAttachment
=
hrCaseAttachmentList
.
get
(
i
);
result
=
syncHRCaseAttachment
(
hrCaseAttachment
);
if
(
Constants
.
DEBUG
)
CatalogueLog
.
d
(
"startSync: result of syncing hrCaseAttachment "
+
i
+
": "
+
result
);
}
//
/*Then we will work on dirty variable form*/
//
List<HRCaseItemInput> hrCaseItemInputList = HRCaseItemInputManager.getDirtyItemInput();
//
if(Constants.DEBUG) CatalogueLog.d("startSync: HRCase form to sync: "+hrCaseItemInputList.size());
//
for (int i = 0; i < hrCaseItemInputList.size(); i++) {
//
HRCaseItemInput hrCaseItemInput = hrCaseItemInputList.get(i);
//
result = syncHRCaseVariableForm(hrCaseItemInput);
//
if(Constants.DEBUG) CatalogueLog.d("startSync: result of syncing hrCaseItemInput "+i+": "+result);
//
}
//
//
/*Then we will work on dirty HRCase attachment*/
//
List<HRCaseAttachment> hrCaseAttachmentList = HRCaseAttachmentManager.getDirtyHRCaseAttachment();
//
if(Constants.DEBUG) CatalogueLog.d("startSync: HRCaseAttachment to sync: "+hrCaseAttachmentList.size());
//
for (int i = 0; i < hrCaseAttachmentList.size(); i++) {
//
HRCaseAttachment hrCaseAttachment = hrCaseAttachmentList.get(i);
//
result = syncHRCaseAttachment(hrCaseAttachment);
//
if(Constants.DEBUG) CatalogueLog.d("startSync: result of syncing hrCaseAttachment "+i+": "+result);
//
}
/*Then we will work on dirty incident form*/
List
<
Incident
>
incidentInputList
=
ReportIncidentValueManager
.
getDirtyIncident
();
...
...
app/src/vportal/java/com/vsoft/servicenow/AppConfig.java
View file @
6fa49ad1
...
...
@@ -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_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://
test.vera.ai.vsoftconsulting.com
/"
;
}
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
View file @
6fa49ad1
...
...
@@ -36,25 +36,25 @@ public class MenuProvider {
.
setTitle
(
R
.
string
.
home_screen_report_incident_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_my_request_icon
)
.
build
(),
new
CreateHRCaseMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_create_hr_case_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_create_hr_case_icon
)
.
build
(),
new
ViewHRCaseMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_view_hr_case_title
)
.
setMenuIconResId
(
R
.
string
.
home_screen_view_hr_case_icon
)
.
build
(),
//
new CreateHRCaseMenuItemData.Builder()
//
.setTitle(R.string.home_screen_create_hr_case_title)
//
.setMenuIconResId(R.string.home_screen_create_hr_case_icon)
//
.build(),
//
new ViewHRCaseMenuItemData.Builder()
//
.setTitle(R.string.home_screen_view_hr_case_title)
//
.setMenuIconResId(R.string.home_screen_view_hr_case_icon)
//
.build(),
new
ChatMenuItemData
.
Builder
()
.
setTitle
(
R
.
string
.
home_screen_chat_title
)
.
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
()
// 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()
);
}
}
\ No newline at end of file
app/vportal.jks
0 → 100644
View file @
6fa49ad1
No preview for this file type
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