Skip to content

Commit ad3f733

Browse files
committed
Don't override coupons from the source online
1 parent f1d29b1 commit ad3f733

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
## [0.50.3]
55

6+
### Fixed
7+
- Coupon deletion from metadata
8+
9+
## [0.50.3]
10+
611
### Fixed
712
- Interrupted coupons observer
813

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ allprojects {
3131
}
3232

3333
project.ext {
34-
sdkVersion='0.50.3'
34+
sdkVersion='0.50.4'
3535
versionCode=1
3636

3737
compileSdkVersion=31

core/src/main/java/io/snabble/sdk/Project.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ void parse(JsonObject jsonObject) {
318318
Logger.e("Could not parse coupons");
319319
}
320320

321-
this.coupons.setInternalProjectCoupons(couponList);
321+
if (this.coupons.getSource().getValue() != CouponSource.Online) {
322+
this.coupons.setInternalProjectCoupons(couponList);
323+
}
322324

323325
notifyUpdate();
324326
}

0 commit comments

Comments
 (0)