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
5156da6a
authored
Sep 30, 2019
by
Krishna Vemulawada
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
disabled otp
parent
43319b33
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
13 deletions
app/build.gradle
app/src/main/java/com/vsoft/vera/ui/ADALActivity.java
app/src/main/java/com/vsoft/vera/ui/OtpValidationActivity.java
app/src/main/java/com/vsoft/vera/utils/Constants.java
app/src/main/res/layout/activity_otp_validation.xml
app/vportal/staging/app-vportal-staging.apk
app/vportal/staging/output.json
app/build.gradle
View file @
5156da6a
...
...
@@ -72,7 +72,7 @@ android {
vportal
{
applicationId
"com.vsoft.vera.vportal"
versionCode
1
versionName
"0.1.
2
"
versionName
"0.1.
3
"
}
}
}
...
...
app/src/main/java/com/vsoft/vera/ui/ADALActivity.java
View file @
5156da6a
...
...
@@ -554,10 +554,9 @@ public class ADALActivity extends AppCompatActivity {
@Override
protected
Integer
doInBackground
(
Void
...
params
)
{
final
String
userName
=
"bkovi"
;
String
password
=
"123"
;
LoginApiManager
.
submitLoginValues
(
LoginApiResponse
.
Json
.
PASSWORD
,
Constants
.
LOGIN_CLIENT_ID
,
Constants
.
LOGIN_CLIENT_SECRET
,
userName
,
password
,
new
GetUserLoginApiListener
()
{
.
LOGIN_CLIENT_SECRET
,
Constants
.
FULTON_LOGIN_USERNAME
,
Constants
.
FULTON_LOGIN_PASSWORD
,
new
GetUserLoginApiListener
()
{
@Override
public
void
onDoneApiCall
(
LoginApiResponse
loginApiResponse
)
{
apiStatus
=
API_SUCCESS_USER_LOGIN
;
...
...
@@ -567,7 +566,7 @@ public class ADALActivity extends AppCompatActivity {
PrefManager
.
setSharedPref
(
ADALActivity
.
this
,
PrefManager
.
PREFERENCE_ACCESS_TOKEN
,
loginApiResponse
.
getAccessToken
());
PrefManager
.
setSharedPref
(
ADALActivity
.
this
,
PrefManager
.
PREFERENCE_REFRESH_TOKEN
,
loginApiResponse
.
getRefreshToken
());
UserApiManager
.
getUserDetailResponse
(
ADALActivity
.
this
,
userName
,
new
GetUserDetailApiListener
()
{
UserApiManager
.
getUserDetailResponse
(
ADALActivity
.
this
,
Constants
.
FULTON_LOGIN_USERNAME
,
new
GetUserDetailApiListener
()
{
@Override
public
void
onDoneApiCall
(
List
<
UserApiValues
>
userValues
)
{
mUserDetails
=
userValues
;
...
...
app/src/main/java/com/vsoft/vera/ui/OtpValidationActivity.java
View file @
5156da6a
...
...
@@ -86,7 +86,8 @@ public class OtpValidationActivity extends Activity {
@OnClick
(
R
.
id
.
otp_screen_text_view
)
void
onLoginClicked
()
{
callOtpAPI
();
// callOtpAPI();
new
LoginDetailsSendToServer
().
execute
();
}
@OnClick
(
R
.
id
.
otp_screen_validate_text_view
)
...
...
@@ -301,10 +302,8 @@ public class OtpValidationActivity extends Activity {
@Override
protected
Integer
doInBackground
(
Void
...
params
)
{
final
String
userName
=
"bkovi"
;
String
password
=
"123"
;
LoginApiManager
.
submitLoginValues
(
LoginApiResponse
.
Json
.
PASSWORD
,
Constants
.
LOGIN_CLIENT_ID
,
Constants
.
LOGIN_CLIENT_SECRET
,
userName
,
password
,
new
GetUserLoginApiListener
()
{
.
LOGIN_CLIENT_SECRET
,
Constants
.
FULTON_LOGIN_USERNAME
,
Constants
.
FULTON_LOGIN_PASSWORD
,
new
GetUserLoginApiListener
()
{
@Override
public
void
onDoneApiCall
(
LoginApiResponse
loginApiResponse
)
{
apiStatus
=
API_SUCCESS_USER_LOGIN
;
...
...
@@ -314,7 +313,7 @@ public class OtpValidationActivity extends Activity {
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
PREFERENCE_ACCESS_TOKEN
,
loginApiResponse
.
getAccessToken
());
PrefManager
.
setSharedPref
(
OtpValidationActivity
.
this
,
PrefManager
.
PREFERENCE_REFRESH_TOKEN
,
loginApiResponse
.
getRefreshToken
());
UserApiManager
.
getUserDetailResponse
(
OtpValidationActivity
.
this
,
userName
,
new
GetUserDetailApiListener
()
{
UserApiManager
.
getUserDetailResponse
(
OtpValidationActivity
.
this
,
Constants
.
FULTON_LOGIN_USERNAME
,
new
GetUserDetailApiListener
()
{
@Override
public
void
onDoneApiCall
(
List
<
UserApiValues
>
userValues
)
{
mUserDetails
=
userValues
;
...
...
app/src/main/java/com/vsoft/vera/utils/Constants.java
View file @
5156da6a
...
...
@@ -59,6 +59,8 @@ public class Constants {
public
static
final
String
LANGUAGE
=
"ln"
;
public
static
final
String
VIA
=
"via"
;
public
static
final
String
FULTON_LOGIN_USERNAME
=
"fulton"
;
public
static
final
String
FULTON_LOGIN_PASSWORD
=
"123"
;
/**
* Broadcast custom intent
...
...
app/src/main/res/layout/activity_otp_validation.xml
View file @
5156da6a
...
...
@@ -58,7 +58,7 @@
android:layout_marginLeft=
"@dimen/extra_large_margin"
android:layout_marginRight=
"@dimen/extra_large_margin"
android:background=
"@drawable/username_under_bg_box"
android:hint=
"Please enter
phon
e number"
android:hint=
"Please enter
mobil
e number"
android:lines=
"1"
android:inputType=
"number"
android:padding=
"@dimen/normal_margin"
...
...
app/vportal/staging/app-vportal-staging.apk
View file @
5156da6a
The file could not be displayed because it is too large.
app/vportal/staging/output.json
View file @
5156da6a
[{
"outputType"
:{
"type"
:
"APK"
},
"apkData"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
1
,
"versionName"
:
"0.1.2"
,
"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.1.3"
,
"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