Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2022-09-27 19:12:47 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
694576d91a0b591c804dcf64c707a59cbd9b93bd
694576d9
1 parent
c7fb5262
minor fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/VolleyTransformer.java
warply_android_sdk/build.gradle
View file @
694576d
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta7
5
'
PUBLISH_VERSION
=
'4.5.4-cosbeta7
6
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/VolleyTransformer.java
View file @
694576d
...
...
@@ -146,6 +146,16 @@ public class VolleyTransformer implements Listener<JSONObject>, ErrorListener {
WarpUtils
.
log
(
"*************************************************"
);
if
(
response
.
has
(
"result"
))
{
JSONObject
obj
=
response
.
optJSONObject
(
"result"
);
if
(
obj
!=
null
)
{
if
(
obj
.
has
(
"status"
)
&&
obj
.
optString
(
"status"
).
equals
(
"accepted"
))
{
mListener
.
onSuccess
(
response
);
return
;
}
}
}
if
(
response
.
has
(
"code"
))
{
mListener
.
onSuccess
(
response
);
return
;
...
...
@@ -168,7 +178,7 @@ public class VolleyTransformer implements Listener<JSONObject>, ErrorListener {
// Check for server related error.
int
serverResult
=
response
.
optInt
(
WARPLY_STATUS
);
if
(
serverResult
==
WarpConstants
.
RESULT_CODE_ERROR
||
serverResult
==
WarpConstants
.
RESULT_CODE_NO_ACCESS
if
(
serverResult
==
WarpConstants
.
RESULT_CODE_ERROR
||
serverResult
==
WarpConstants
.
RESULT_CODE_NO_ACCESS
||
serverResult
==
WarpConstants
.
RESULT_CODE_INVALID_CAMPAIGN
)
{
mListener
.
onSuccess
(
response
);
return
;
...
...
Please
register
or
login
to post a comment