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
2023-10-16 13:21:34 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b5dd8adcc8b7b4a88d5f3c46df70ee87a8bac91a
b5dd8adc
1 parent
6dec5134
sm deals fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
24 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/MoreForYouActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/activities/UnifiedCouponInfoActivity.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/build.gradle
View file @
b5dd8ad
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc7
8
'
PUBLISH_VERSION
=
'4.5.4.6rc7
9
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/LoyaltyWallet.java
View file @
b5dd8ad
...
...
@@ -46,7 +46,6 @@ import io.github.inflationx.calligraphy3.CalligraphyTypefaceSpan;
import
io.github.inflationx.calligraphy3.TypefaceUtils
;
import
io.github.inflationx.viewpump.ViewPumpContextWrapper
;
import
ly.warp.sdk.R
;
import
ly.warp.sdk.io.callbacks.CallbackReceiver
;
import
ly.warp.sdk.io.models.ActiveDFYCouponEventModel
;
import
ly.warp.sdk.io.models.ActiveDFYCouponModel
;
import
ly.warp.sdk.io.models.Coupon
;
...
...
@@ -59,7 +58,6 @@ import ly.warp.sdk.utils.WarpUtils;
import
ly.warp.sdk.utils.WarplyManagerHelper
;
import
ly.warp.sdk.utils.managers.WarplyAnalyticsManager
;
import
ly.warp.sdk.utils.managers.WarplyEventBusManager
;
import
ly.warp.sdk.utils.managers.WarplyManager
;
import
ly.warp.sdk.views.adapters.ActiveCouponAdapter
;
import
ly.warp.sdk.views.adapters.MarketCouponAdapter
;
...
...
@@ -170,25 +168,25 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
mRecyclerCoupons
.
setLayoutManager
(
new
LinearLayoutManager
(
this
,
LinearLayoutManager
.
VERTICAL
,
false
));
initViews
();
// WarplyManager.getUnifiedCoupons(mUnifiedCallback);
}
@Override
protected
void
onStart
()
{
super
.
onStart
();
EventBus
.
getDefault
().
register
(
this
);
if
(!
EventBus
.
getDefault
().
isRegistered
(
this
))
EventBus
.
getDefault
().
register
(
this
);
}
@Override
protected
void
onStop
()
{
super
.
onStop
();
EventBus
.
getDefault
().
unregister
(
this
);
//
EventBus.getDefault().unregister(this);
}
@Override
public
void
onDestroy
()
{
super
.
onDestroy
();
EventBus
.
getDefault
().
unregister
(
this
);
}
@Override
...
...
@@ -816,19 +814,6 @@ public class LoyaltyWallet extends Activity implements View.OnClickListener, Vie
}
}
private
final
CallbackReceiver
<
ArrayList
<
UnifiedCoupon
>>
mUnifiedCallback
=
new
CallbackReceiver
<
ArrayList
<
UnifiedCoupon
>>()
{
@Override
public
void
onSuccess
(
ArrayList
<
UnifiedCoupon
>
result
)
{
mUnifiedCoupons
=
result
;
initViews
();
}
@Override
public
void
onFailure
(
int
errorCode
)
{
initViews
();
}
};
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/activities/MoreForYouActivity.java
View file @
b5dd8ad
This diff is collapsed. Click to expand it.
warply_android_sdk/src/main/java/ly/warp/sdk/activities/UnifiedCouponInfoActivity.java
View file @
b5dd8ad
...
...
@@ -341,9 +341,9 @@ public class UnifiedCouponInfoActivity extends Activity implements View.OnClickL
.
setTitle
(
R
.
string
.
cos_dlg_cancel_unified_coupon_success_title
)
.
setMessage
(
R
.
string
.
cos_dlg_cancel_unified_coupon_success_subtitle
)
.
setPositiveButton
(
R
.
string
.
cos_dlg_positive_button2
,
(
dialogPositive
,
whichPositive
)
->
{
dialogPositive
.
dismiss
();
RefreshUnifiedCouponsEventModel
couponsRefreshed
=
new
RefreshUnifiedCouponsEventModel
();
EventBus
.
getDefault
().
post
(
new
WarplyEventBusManager
(
couponsRefreshed
));
dialogPositive
.
dismiss
();
onBackPressed
();
})
.
setCancelable
(
false
)
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
b5dd8ad
...
...
@@ -2148,10 +2148,9 @@ public class WarplyManager {
if
(
tempUni
.
getStatus
().
trim
().
equals
(
"active"
))
couponList
.
add
(
tempUni
);
}
WarplyManagerHelper
.
setMarketCoupons
(
allCouponList
);
WarplyManagerHelper
.
setMarketCouponsList
(
couponList
);
}
WarplyManagerHelper
.
setMarketCoupons
(
allCouponList
);
WarplyManagerHelper
.
setMarketCouponsList
(
couponList
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
Please
register
or
login
to post a comment