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-04-29 16:29:43 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
145f332edd46e1906a17462582902decfaf807a1
145f332e
1 parent
dc7668b6
minor fix, new sdk version for maven
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
warply_android_sdk/build.gradle
View file @
145f332
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4-cosbeta
5
'
PUBLISH_VERSION
=
'4.5.4-cosbeta
6
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
145f332
...
...
@@ -13,6 +13,8 @@ import androidx.constraintlayout.widget.ConstraintLayout;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.io.models.Campaign
;
import
ly.warp.sdk.io.models.CampaignList
;
import
ly.warp.sdk.io.models.Coupon
;
import
ly.warp.sdk.io.models.CouponList
;
import
ly.warp.sdk.utils.WarplyManagerHelper
;
...
...
@@ -116,6 +118,12 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
// ===========================================================
private
void
initViews
()
{
CouponList
cpnlist
=
new
CouponList
();
for
(
Coupon
cpn
:
WarplyManagerHelper
.
getCouponList
())
{
if
(
cpn
.
getStatus
()
==
1
)
cpnlist
.
add
(
cpn
);
}
if
(
WarplyManagerHelper
.
getConsumer
()
!=
null
)
{
mTvUsername
.
setText
(
String
.
format
(
getResources
().
getString
(
R
.
string
.
cos_profile_loyalty_name
),
WarplyManagerHelper
.
getConsumer
().
getFirstName
(),
WarplyManagerHelper
.
getConsumer
().
getLastName
()));
...
...
@@ -135,10 +143,10 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener {
mIvBack
.
setOnClickListener
(
this
);
// mTvAnalysisButton.setOnClickListener(this);
mLlQuestionnaire
.
setOnClickListener
(
this
);
mTvActiveCoupons
.
setText
(
String
.
format
(
getResources
().
getString
(
R
.
string
.
cos_active_coupons
),
String
.
valueOf
(
WarplyManagerHelper
.
getCouponList
().
size
()
)));
mTvActiveCoupons
.
setText
(
String
.
format
(
getResources
().
getString
(
R
.
string
.
cos_active_coupons
),
String
.
valueOf
(
cpnlist
)));
mClActiveCoupons
.
setOnClickListener
(
this
);
//TODO: change the parameter, for testing purposes only
mTvActiveRewards
.
setText
(
String
.
format
(
getResources
().
getString
(
R
.
string
.
cos_active_rewards
),
String
.
valueOf
(
WarplyManagerHelper
.
getCouponList
().
size
()
)));
mTvActiveRewards
.
setText
(
String
.
format
(
getResources
().
getString
(
R
.
string
.
cos_active_rewards
),
String
.
valueOf
(
cpnlist
)));
mClActiveRewards
.
setOnClickListener
(
this
);
mLlAnalysisButton
.
setOnClickListener
(
this
);
mLlPastCoupons
.
setOnClickListener
(
this
);
...
...
Please
register
or
login
to post a comment