Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit d0e3a7d

Browse files
committed
chore(example): organize skus
1 parent 75fc846 commit d0e3a7d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
package dev.hyo.martie
22

33
object IapConstants {
4-
private fun isHorizon(): Boolean =
5-
dev.hyo.martie.BuildConfig.OPENIAP_STORE.equals("horizon", ignoreCase = true)
6-
7-
private val HORIZON_INAPP = listOf(
4+
val INAPP_SKUS = listOf(
85
"dev.hyo.martie.10bulbs",
96
"dev.hyo.martie.30bulbs",
107
"dev.hyo.martie.certified" // Non-consumable
@@ -19,10 +16,3 @@ object IapConstants {
1916
const val PREMIUM_MONTHLY_BASE_PLAN = "premium" // Monthly base plan
2017
const val PREMIUM_YEARLY_BASE_PLAN = "premium-year" // Yearly base plan
2118
}
22-
23-
val INAPP_SKUS: List<String>
24-
get() = if (isHorizon()) HORIZON_INAPP else PLAY_INAPP
25-
26-
val SUBS_SKUS: List<String>
27-
get() = if (isHorizon()) HORIZON_SUBS else PLAY_SUBS
28-
}

0 commit comments

Comments
 (0)