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-07-15 10:50:02 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33d2b4c2552cdaf0c7ea13a8b4390897ce5424db
33d2b4c2
1 parent
8751ea2e
pacing fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
45 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/GiftsForYouActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/MoreForYouActivity.java
warply_android_sdk/build.gradle
View file @
33d2b4c
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta3
2
'
PUBLISH_VERSION
=
'4.5.4-cosbeta3
3
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/Warply.java
View file @
33d2b4c
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/java/ly/warp/sdk/activities/GiftsForYouActivity.java
View file @
33d2b4c
...
...
@@ -179,17 +179,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
dataItem
.
getCampaign
().
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
has
(
"type"
)
&&
extraFields
.
optString
(
"type"
).
equals
(
"telco"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
dataItem
.
getCampaign
().
getSessionUUID
()))
{
Intent
intent
=
new
Intent
(
GiftsForYouActivity
.
this
,
TelcoActivity
.
class
);
intent
.
putExtra
(
"ccms"
,
ccms
);
startActivity
(
intent
);
break
;
}
}
return
;
}
//
if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
//
for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
//
if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) {
//
Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class);
//
intent.putExtra("ccms", ccms);
//
startActivity(intent);
//
break;
//
}
//
}
//
return;
//
}
if
(
extraFields
.
has
(
"ccms_offer"
)
&&
extraFields
.
optString
(
"ccms_offer"
).
equals
(
"true"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
dataItem
.
getCampaign
().
getSessionUUID
()))
{
...
...
@@ -271,17 +271,17 @@ public class GiftsForYouActivity extends Activity implements View.OnClickListene
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
dataItem
.
getCampaign
().
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
has
(
"type"
)
&&
extraFields
.
optString
(
"type"
).
equals
(
"telco"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
dataItem
.
getCampaign
().
getSessionUUID
()))
{
Intent
intent
=
new
Intent
(
GiftsForYouActivity
.
this
,
TelcoActivity
.
class
);
intent
.
putExtra
(
"ccms"
,
ccms
);
startActivity
(
intent
);
break
;
}
}
return
;
}
//
if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
//
for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
//
if (ccms.getLoyaltyCampaignId().equals(dataItem.getCampaign().getSessionUUID())) {
//
Intent intent = new Intent(GiftsForYouActivity.this, TelcoActivity.class);
//
intent.putExtra("ccms", ccms);
//
startActivity(intent);
//
break;
//
}
//
}
//
return;
//
}
if
(
extraFields
.
has
(
"ccms_offer"
)
&&
extraFields
.
optString
(
"ccms_offer"
).
equals
(
"true"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
dataItem
.
getCampaign
().
getSessionUUID
()))
{
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/MoreForYouActivity.java
View file @
33d2b4c
...
...
@@ -123,17 +123,17 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
gift
.
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
has
(
"type"
)
&&
extraFields
.
optString
(
"type"
).
equals
(
"telco"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
gift
.
getSessionUUID
()))
{
Intent
intent
=
new
Intent
(
MoreForYouActivity
.
this
,
TelcoActivity
.
class
);
intent
.
putExtra
(
"ccms"
,
ccms
);
startActivity
(
intent
);
break
;
}
}
return
;
}
//
if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
//
for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
//
if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) {
//
Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class);
//
intent.putExtra("ccms", ccms);
//
startActivity(intent);
//
break;
//
}
//
}
//
return;
//
}
if
(
extraFields
.
has
(
"ccms_offer"
)
&&
extraFields
.
optString
(
"ccms_offer"
).
equals
(
"true"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
gift
.
getSessionUUID
()))
{
...
...
@@ -184,17 +184,17 @@ public class MoreForYouActivity extends Activity implements View.OnClickListener
try
{
JSONObject
extraFields
=
WarpJSONParser
.
getJSONFromString
(
gift
.
getExtraFields
());
if
(
extraFields
!=
null
)
{
if
(
extraFields
.
has
(
"type"
)
&&
extraFields
.
optString
(
"type"
).
equals
(
"telco"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
gift
.
getSessionUUID
()))
{
Intent
intent
=
new
Intent
(
MoreForYouActivity
.
this
,
TelcoActivity
.
class
);
intent
.
putExtra
(
"ccms"
,
ccms
);
startActivity
(
intent
);
break
;
}
}
return
;
}
//
if (extraFields.has("type") && extraFields.optString("type").equals("telco")) {
//
for (LoyaltyContextualOfferModel ccms : WarplyManagerHelper.getCCMSLoyaltyCampaigns()) {
//
if (ccms.getLoyaltyCampaignId().equals(gift.getSessionUUID())) {
//
Intent intent = new Intent(MoreForYouActivity.this, TelcoActivity.class);
//
intent.putExtra("ccms", ccms);
//
startActivity(intent);
//
break;
//
}
//
}
//
return;
//
}
if
(
extraFields
.
has
(
"ccms_offer"
)
&&
extraFields
.
optString
(
"ccms_offer"
).
equals
(
"true"
))
{
for
(
LoyaltyContextualOfferModel
ccms
:
WarplyManagerHelper
.
getCCMSLoyaltyCampaigns
())
{
if
(
ccms
.
getLoyaltyCampaignId
().
equals
(
gift
.
getSessionUUID
()))
{
...
...
Please
register
or
login
to post a comment