Skip to content

Commit f1d29b1

Browse files
committed
Fix JVM visibility
1 parent fb2ab99 commit f1d29b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/main/java/io/snabble/sdk/Coupons.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class Coupons (
140140
}
141141

142142
// Visibility for Project class. Used for setting the data asap if on main thread
143+
@JvmName("setInternalProjectCoupons")
143144
internal fun setProjectCoupons(coupons: List<Coupon>) {
144145
if (Looper.getMainLooper().thread.id == Thread.currentThread().id) {
145146
value = coupons

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

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

321-
this.coupons.setProjectCoupons$core_debug(couponList); // call internal setProjectCoupons
321+
this.coupons.setInternalProjectCoupons(couponList);
322322

323323
notifyUpdate();
324324
}

0 commit comments

Comments
 (0)