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-02 14:05:10 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4f52c7ebf7a28927ab28d667744cf8a9cff58529
4f52c7eb
1 parent
e06e1e48
minor fixes
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
5 deletions
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponsetInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/VolleyTransformer.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
app/src/main/java/warp/ly/android_sdk/activities/SplashActivity.java
View file @
4f52c7e
...
...
@@ -36,7 +36,7 @@ public class SplashActivity extends BaseActivity {
public
void
onWarplyReady
()
{
if
(!
WarplyDBHelper
.
getInstance
(
SplashActivity
.
this
).
isTableNotEmpty
(
"auth"
))
{
WarplyManager
.
getCosmoteUser
(
new
WarplyCosmoteUserRequest
()
.
setGuid
(
"
7000001407
"
),
//6012049321, 6012049322, 6012049323
.
setGuid
(
"
6012049139
"
),
//6012049321, 6012049322, 6012049323
mLoginReceiver
);
}
else
{
startNextActivity
();
...
...
warply_android_sdk/build.gradle
View file @
4f52c7e
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta5
4
'
PUBLISH_VERSION
=
'4.5.4-cosbeta5
5
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/CouponsetInfoActivity.java
View file @
4f52c7e
...
...
@@ -109,7 +109,7 @@ public class CouponsetInfoActivity extends Activity implements View.OnClickListe
.
setCouponsetUuid
(
mCouponset
.
getUuid
())
.
setCommunicationUuid
(
mLoyalty
.
getSessionUUID
())
.
setHasContextualOffer
(
true
)
.
setUserMsisdn
(
WarplyManagerHelper
.
getConsumer
().
getMsisdn
())
.
setUserMsisdn
(
WarplyManagerHelper
.
getConsumer
().
getMsisdn
())
//TODO: where to find the msisdn??
.
setBusinessService
(
mCcms
.
getBusinessService
())
.
setOfferName
(
mCcms
.
getOfferName
())
.
setProductType
(
mCcms
.
getProductType
())
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/callbacks/VolleyTransformer.java
View file @
4f52c7e
...
...
@@ -167,6 +167,12 @@ 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
||
serverResult
==
WarpConstants
.
RESULT_CODE_INVALID_CAMPAIGN
)
{
mListener
.
onSuccess
(
response
);
return
;
}
if
(
serverResult
!=
WarpConstants
.
RESULT_CODE_SUCCESS
)
{
if
((
serverResult
==
WarpConstants
.
RESULT_CODE_INVALID_WEB_ID
)
&&
(
Warply
.
isInitialized
()))
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
4f52c7e
...
...
@@ -2041,7 +2041,7 @@ public class WarplyManager {
@Override
public
void
onSuccess
(
JSONObject
result
)
{
int
status
=
result
.
optInt
(
"status"
,
2
);
if
(
status
==
1
)
if
(
status
==
1
||
status
==
4
||
status
==
5
)
receiver
.
onSuccess
(
result
);
else
receiver
.
onFailure
(
status
);
...
...
@@ -2165,7 +2165,7 @@ public class WarplyManager {
@Override
public
void
onSuccess
(
JSONObject
result
)
{
int
status
=
result
.
optInt
(
"status"
,
2
);
if
(
status
==
1
)
if
(
status
==
1
||
status
==
3
||
status
==
4
)
receiver
.
onSuccess
(
result
);
else
receiver
.
onFailure
(
status
);
...
...
Please
register
or
login
to post a comment