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
b2eef6f1
authored
Apr 04, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added VERA option in V-Portal.
parent
822fc36f
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
42 additions
and
14 deletions
app/src/arrow/AndroidManifest.xml
app/src/ge/AndroidManifest.xml
app/src/main/java/com/vsoft/servicenow/menu/ChatMenuItemData.java
app/src/main/java/com/vsoft/servicenow/menu/NotificationMenuItemData.java
app/src/main/java/com/vsoft/servicenow/speechRecognizer/DroidSpeech.java
app/src/main/java/com/vsoft/servicenow/chat/ChatActivity.java → app/src/main/java/com/vsoft/servicenow/ui/ChatActivity.java
app/src/main/java/com/vsoft/servicenow/ui/HomeScreen.java
app/src/main/res/layout/chat_activity.xml
app/src/vportal/AndroidManifest.xml
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
app/src/vportal/res/drawable/notifications.png
app/src/vportal/res/values/strings.xml
app/src/arrow/AndroidManifest.xml
View file @
b2eef6f1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:icon=
"@mipmap/ic_launcher"
android:icon=
"@mipmap/ic_launcher"
tools:replace=
"android:icon"
>
tools:replace=
"android:icon"
>
<activity
<activity
android:name=
".
chat
.ChatActivity"
android:name=
".
ui
.ChatActivity"
android:label=
"@string/chat_activity_label"
android:label=
"@string/chat_activity_label"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:windowSoftInputMode=
"adjustResize|stateHidden"
>
android:windowSoftInputMode=
"adjustResize|stateHidden"
>
...
...
app/src/ge/AndroidManifest.xml
View file @
b2eef6f1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:icon=
"@mipmap/ic_launcher"
android:icon=
"@mipmap/ic_launcher"
tools:replace=
"android:icon"
>
tools:replace=
"android:icon"
>
<activity
<activity
android:name=
".
chat
.ChatActivity"
android:name=
".
ui
.ChatActivity"
android:label=
"@string/chat_activity_label"
android:label=
"@string/chat_activity_label"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:windowSoftInputMode=
"adjustResize|stateHidden"
>
android:windowSoftInputMode=
"adjustResize|stateHidden"
>
...
...
app/src/main/java/com/vsoft/servicenow/menu/ChatMenuItemData.java
View file @
b2eef6f1
...
@@ -3,8 +3,7 @@ package com.vsoft.servicenow.menu;
...
@@ -3,8 +3,7 @@ package com.vsoft.servicenow.menu;
import
android.os.Parcel
;
import
android.os.Parcel
;
import
android.os.Parcelable
;
import
android.os.Parcelable
;
import
com.vsoft.servicenow.chat.ChatActivity
;
import
com.vsoft.servicenow.ui.ChatActivity
;
import
com.vsoft.servicenow.ui.ReportIncidentScreen
;
/**
/**
* Created by Kunj on 23/03/18.
* Created by Kunj on 23/03/18.
...
...
app/src/main/java/com/vsoft/servicenow/menu/NotificationMenuItemData.java
View file @
b2eef6f1
...
@@ -3,7 +3,6 @@ package com.vsoft.servicenow.menu;
...
@@ -3,7 +3,6 @@ package com.vsoft.servicenow.menu;
import
android.os.Parcel
;
import
android.os.Parcel
;
import
android.os.Parcelable
;
import
android.os.Parcelable
;
import
com.vsoft.servicenow.chat.ChatActivity
;
import
com.vsoft.servicenow.ui.NotificationScreen
;
import
com.vsoft.servicenow.ui.NotificationScreen
;
/**
/**
...
...
app/src/main/java/com/vsoft/servicenow/speechRecognizer/DroidSpeech.java
View file @
b2eef6f1
...
@@ -25,7 +25,7 @@ import android.widget.LinearLayout.LayoutParams;
...
@@ -25,7 +25,7 @@ import android.widget.LinearLayout.LayoutParams;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
com.vsoft.servicenow.R
;
import
com.vsoft.servicenow.R
;
import
com.vsoft.servicenow.
chat
.ChatActivity
;
import
com.vsoft.servicenow.
ui
.ChatActivity
;
import
java.util.List
;
import
java.util.List
;
...
...
app/src/main/java/com/vsoft/servicenow/
chat
/ChatActivity.java
→
app/src/main/java/com/vsoft/servicenow/
ui
/ChatActivity.java
View file @
b2eef6f1
package
com
.
vsoft
.
servicenow
.
chat
;
package
com
.
vsoft
.
servicenow
.
ui
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.graphics.Color
;
import
android.graphics.Color
;
...
@@ -25,11 +25,13 @@ import com.github.nkzawa.socketio.client.Socket;
...
@@ -25,11 +25,13 @@ import com.github.nkzawa.socketio.client.Socket;
import
com.vsoft.servicenow.CatalogueApplication
;
import
com.vsoft.servicenow.CatalogueApplication
;
import
com.vsoft.servicenow.R
;
import
com.vsoft.servicenow.R
;
import
com.vsoft.servicenow.api.managers.LoginApiManager
;
import
com.vsoft.servicenow.api.managers.LoginApiManager
;
import
com.vsoft.servicenow.chat.Message
;
import
com.vsoft.servicenow.chat.MessageAdapter
;
import
com.vsoft.servicenow.chat.Speaker
;
import
com.vsoft.servicenow.enums.SyncStatus
;
import
com.vsoft.servicenow.enums.SyncStatus
;
import
com.vsoft.servicenow.speechRecognizer.DroidSpeech
;
import
com.vsoft.servicenow.speechRecognizer.DroidSpeech
;
import
com.vsoft.servicenow.speechRecognizer.OnDSListener
;
import
com.vsoft.servicenow.speechRecognizer.OnDSListener
;
import
com.vsoft.servicenow.speechRecognizer.OnDSPermissionsListener
;
import
com.vsoft.servicenow.speechRecognizer.OnDSPermissionsListener
;
import
com.vsoft.servicenow.ui.HandleNotificationActivity
;
import
com.vsoft.servicenow.utils.CatalogueLog
;
import
com.vsoft.servicenow.utils.CatalogueLog
;
import
com.vsoft.servicenow.utils.Constants
;
import
com.vsoft.servicenow.utils.Constants
;
import
com.vsoft.servicenow.utils.PrefManager
;
import
com.vsoft.servicenow.utils.PrefManager
;
...
...
app/src/main/java/com/vsoft/servicenow/ui/HomeScreen.java
View file @
b2eef6f1
...
@@ -2,7 +2,6 @@ package com.vsoft.servicenow.ui;
...
@@ -2,7 +2,6 @@ package com.vsoft.servicenow.ui;
import
android.content.DialogInterface
;
import
android.content.DialogInterface
;
import
android.content.Intent
;
import
android.content.Intent
;
import
android.content.res.TypedArray
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.support.v7.app.AlertDialog
;
import
android.support.v7.app.AlertDialog
;
import
android.support.v7.widget.Toolbar
;
import
android.support.v7.widget.Toolbar
;
...
@@ -13,7 +12,6 @@ import com.vsoft.servicenow.CatalogueApplication;
...
@@ -13,7 +12,6 @@ import com.vsoft.servicenow.CatalogueApplication;
import
com.vsoft.servicenow.MenuProvider
;
import
com.vsoft.servicenow.MenuProvider
;
import
com.vsoft.servicenow.R
;
import
com.vsoft.servicenow.R
;
import
com.vsoft.servicenow.adapters.HomeScreenAdapter
;
import
com.vsoft.servicenow.adapters.HomeScreenAdapter
;
import
com.vsoft.servicenow.chat.ChatActivity
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.utils.PrefManager
;
import
com.vsoft.servicenow.utils.PrefManager
;
import
com.vsoft.servicenow.utils.Util
;
import
com.vsoft.servicenow.utils.Util
;
...
...
app/src/main/res/layout/chat_activity.xml
View file @
b2eef6f1
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
".
chat
.ChatActivity"
>
tools:context=
".
ui
.ChatActivity"
>
<include
layout=
"@layout/toolbar"
/>
<include
layout=
"@layout/toolbar"
/>
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:context=
".
chat
.ChatActivity"
>
tools:context=
".
ui
.ChatActivity"
>
<android.support.v7.widget.RecyclerView
<android.support.v7.widget.RecyclerView
android:id=
"@+id/messages"
android:id=
"@+id/messages"
...
...
app/src/vportal/AndroidManifest.xml
View file @
b2eef6f1
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
android:icon=
"@mipmap/ic_launcher"
android:icon=
"@mipmap/ic_launcher"
tools:replace=
"android:icon"
>
tools:replace=
"android:icon"
>
<activity
<activity
android:name=
".
chat
.ChatActivity"
android:name=
".
ui
.ChatActivity"
android:label=
"@string/chat_activity_label"
android:label=
"@string/chat_activity_label"
android:screenOrientation=
"portrait"
android:screenOrientation=
"portrait"
android:windowSoftInputMode=
"adjustResize|stateHidden"
>
android:windowSoftInputMode=
"adjustResize|stateHidden"
>
...
@@ -15,6 +15,28 @@
...
@@ -15,6 +15,28 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</intent-filter>
</activity>
</activity>
</application>
<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>
</manifest>
app/src/vportal/java/com/vsoft/servicenow/MenuProvider.java
View file @
b2eef6f1
...
@@ -4,6 +4,7 @@ import com.vsoft.servicenow.menu.ChatMenuItemData;
...
@@ -4,6 +4,7 @@ import com.vsoft.servicenow.menu.ChatMenuItemData;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.menu.HomeScreenMenuItemData
;
import
com.vsoft.servicenow.menu.MyIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.MyIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.MyRequestMenuItemData
;
import
com.vsoft.servicenow.menu.MyRequestMenuItemData
;
import
com.vsoft.servicenow.menu.NotificationMenuItemData
;
import
com.vsoft.servicenow.menu.OrderServicesMenuItemData
;
import
com.vsoft.servicenow.menu.OrderServicesMenuItemData
;
import
com.vsoft.servicenow.menu.ReportIncidentMenuItemData
;
import
com.vsoft.servicenow.menu.ReportIncidentMenuItemData
;
...
@@ -35,6 +36,10 @@ public class MenuProvider {
...
@@ -35,6 +36,10 @@ public class MenuProvider {
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
()
.
build
()
);
);
}
}
app/src/vportal/res/drawable/notifications.png
0 → 100644
View file @
b2eef6f1
32.9 KB
app/src/vportal/res/values/strings.xml
View file @
b2eef6f1
...
@@ -17,5 +17,8 @@
...
@@ -17,5 +17,8 @@
<string
name=
"home_screen_chat_title"
>
Chatbot
</string>
<string
name=
"home_screen_chat_title"
>
Chatbot
</string>
<string
name=
"home_screen_chat_icon"
>
chatbot
</string>
<string
name=
"home_screen_chat_icon"
>
chatbot
</string>
<string
name=
"home_screen_notification_title"
>
Notifications
</string>
<string
name=
"home_screen_notification_icon"
>
notifications
</string>
<!--End-->
<!--End-->
</resources>
</resources>
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