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
6c3966bf
authored
Oct 16, 2019
by
Krishna Vemulawada
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
upto demo fulton county
parent
3be92f3a
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
7 deletions
app/build.gradle
app/src/main/java/com/vsoft/vera/ui/ADALActivity.java
app/src/main/java/com/vsoft/vera/ui/ChatActivity.java
app/src/main/java/com/vsoft/vera/ui/HomeScreen.java
app/src/main/java/com/vsoft/vera/ui/OtpValidationActivity.java
app/src/main/java/com/vsoft/vera/utils/Constants.java
app/src/main/java/com/vsoft/vera/utils/PrefManager.java
app/vportal/staging/app-vportal-staging.apk
app/vportal/staging/output.json
app/build.gradle
View file @
6c3966bf
...
...
@@ -72,7 +72,7 @@ android {
vportal
{
applicationId
"com.vsoft.vera.vportal"
versionCode
1
versionName
"0.2.
5
"
versionName
"0.2.
6
"
}
}
}
...
...
app/src/main/java/com/vsoft/vera/ui/ADALActivity.java
View file @
6c3966bf
...
...
@@ -696,7 +696,6 @@ public class ADALActivity extends AppCompatActivity {
PrefManager
.
setSharedPref
(
ADALActivity
.
this
,
PrefManager
.
PREFERENCE_USER_LAST_NAME
,
lastName
);
PrefManager
.
setSharedPref
(
ADALActivity
.
this
,
PrefManager
.
PREFERENCE_USER_SYS_ID
,
sysid
);
/*For pre fill value in variable form*/
PrefManager
.
setSharedPref
(
ADALActivity
.
this
,
PrefManager
.
PREFERENCE_USER_ID
,
userId
);
new
GetyUserSysIDAsync
().
execute
();
...
...
app/src/main/java/com/vsoft/vera/ui/ChatActivity.java
View file @
6c3966bf
...
...
@@ -211,7 +211,7 @@ public class ChatActivity extends AppCompatActivity implements OnDSListener, OnD
if
(
TextUtils
.
isEmpty
(
mLoggedInUserSysId
)
||
TextUtils
.
isEmpty
(
mLoggedInUsername
))
{
CatalogueLog
.
e
(
"User Sys id or Name is Null"
);
Intent
intent
=
new
Intent
(
this
,
LoginScreen
.
class
);
Intent
intent
=
new
Intent
(
this
,
ADALActivity
.
class
);
intent
.
putExtra
(
Constants
.
DATA_KEY_LOGIN_REQUEST_CODE
,
Constants
.
LOGIN_SCREEN_REQUEST_CODE
);
startActivity
(
intent
);
finish
();
...
...
app/src/main/java/com/vsoft/vera/ui/HomeScreen.java
View file @
6c3966bf
...
...
@@ -222,6 +222,26 @@ public class HomeScreen extends HandleNotificationActivity {
});
AlertDialog
alert
=
builder
.
create
();
alert
.
show
();
}
else
{
String
mobileNumber
=
PrefManager
.
getSharedPref
(
HomeScreen
.
this
,
PrefManager
.
MOBILE_NUMBER
);
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
StringBuilder
stringBuilder
=
new
StringBuilder
();
stringBuilder
.
append
(
"Username: "
);
stringBuilder
.
append
(
mobileNumber
);
stringBuilder
.
append
(
"\n"
);
stringBuilder
.
append
(
"\n"
);
stringBuilder
.
append
(
"Version: "
+
BuildConfig
.
VERSION_NAME
);
builder
.
setMessage
(
stringBuilder
.
toString
())
.
setTitle
(
"User Details"
)
.
setCancelable
(
false
)
.
setPositiveButton
(
R
.
string
.
ok_string
,
new
DialogInterface
.
OnClickListener
()
{
public
void
onClick
(
DialogInterface
dialog
,
int
id
)
{
dialog
.
dismiss
();
}
});
AlertDialog
alert
=
builder
.
create
();
alert
.
show
();
}
}
...
...
@@ -330,6 +350,8 @@ public class HomeScreen extends HandleNotificationActivity {
PrefManager
.
setSharedPref
(
HomeScreen
.
this
,
PrefManager
.
PREFERENCE_USER_FULL_NAME
,
""
);
PrefManager
.
setSharedPref
(
HomeScreen
.
this
,
PrefManager
.
PREFERENCE_USER_EMAIL_ID
,
""
);
PrefManager
.
setSharedPref
(
HomeScreen
.
this
,
PrefManager
.
SESSION_ID
,
""
);
PrefManager
.
setSharedPref
(
HomeScreen
.
this
,
PrefManager
.
MOBILE_NUMBER
,
""
);
PrefManager
.
setSharedPref
(
HomeScreen
.
this
,
PrefManager
.
PREFERENCE_DYNAMIC_USER_SYS_ID
,
""
);
Intent
loginIntent
=
new
Intent
(
HomeScreen
.
this
,
ADALActivity
.
class
);
loginIntent
.
addFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
|
Intent
.
FLAG_ACTIVITY_CLEAR_TASK
);
...
...
app/src/main/java/com/vsoft/vera/ui/OtpValidationActivity.java
View file @
6c3966bf
...
...
@@ -246,6 +246,7 @@ public class OtpValidationActivity extends Activity {
}
if
(
apiStatus
==
1
){
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
MOBILE_NUMBER
,
phoneString
);
new
LoginDetailsSendToServer
().
execute
();
}
else
{
Toast
.
makeText
(
OtpValidationActivity
.
this
,
apiMessage
,
Toast
.
LENGTH_LONG
).
show
();
...
...
@@ -394,8 +395,8 @@ public class OtpValidationActivity extends Activity {
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
PREFERENCE_USER_LAST_NAME
,
lastName
);
/*For pre fill value in variable form*/
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
PREFERENCE_USER_FULL_NAME
,
""
);
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
PREFERENCE_USER_ID
,
userId
);
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
PREFERENCE_USER_SYS_ID
,
sysid
);
new
GetyUserSysIDAsync
().
execute
();
...
...
app/src/main/java/com/vsoft/vera/utils/Constants.java
View file @
6c3966bf
...
...
@@ -12,7 +12,7 @@ public class Constants {
public
static
final
String
TAG
=
AppConfig
.
APP_INTERNAL_NAME
;
//default set to us
public
static
String
TWILIO_COUNTRY_CODE
=
"+1"
;
public
static
String
TWILIO_COUNTRY_CODE
=
"+
9
1"
;
public
static
final
String
[]
month
=
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
};
/**
...
...
app/src/main/java/com/vsoft/vera/utils/PrefManager.java
View file @
6c3966bf
...
...
@@ -16,6 +16,7 @@ public class PrefManager {
public
static
final
String
PREFERENCE_USER_ID
=
"user_id"
;
public
static
final
String
PREFERENCE_USER_EMAIL_ID
=
"user_email_id"
;
public
static
final
String
SESSION_ID
=
"session_id"
;
public
static
final
String
MOBILE_NUMBER
=
"mobile_number"
;
//Chat Server Url
public
static
final
String
PREFERENCE_CHAT_SERVER_URL
=
"chat_server_url"
;
...
...
app/vportal/staging/app-vportal-staging.apk
View file @
6c3966bf
No preview for this file type
app/vportal/staging/output.json
View file @
6c3966bf
[{
"outputType"
:{
"type"
:
"APK"
},
"apkData"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
1
,
"versionName"
:
"0.2.4"
,
"enabled"
:
true
,
"outputFile"
:
"app-vportal-staging.apk"
,
"fullName"
:
"vportalStaging"
,
"baseName"
:
"vportal-staging"
},
"path"
:
"app-vportal-staging.apk"
,
"properties"
:{}}]
\ No newline at end of file
[{
"outputType"
:{
"type"
:
"APK"
},
"apkData"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
1
,
"versionName"
:
"0.2.6"
,
"enabled"
:
true
,
"outputFile"
:
"app-vportal-staging.apk"
,
"fullName"
:
"vportalStaging"
,
"baseName"
:
"vportal-staging"
},
"path"
:
"app-vportal-staging.apk"
,
"properties"
:{}}]
\ No newline at end of file
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