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

Commit 7fef0eb

Browse files
committed
chore(example): add more products
1 parent ff37417 commit 7fef0eb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CONVENTION.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Project Conventions
22

3+
## Naming Conventions
4+
5+
### Enum Values
6+
- Enum values in this codebase must use **kebab-case** (e.g., `non-consumable`, `in-app`, `user-cancelled`)
7+
- This matches the convention used in the auto-generated Types.kt from GraphQL schemas
8+
- Do not use snake_case (e.g., `non_consumable`) or camelCase for enum raw values
9+
310
## Generated GraphQL/Kotlin Models
411

512
- `openiap/src/main/Types.kt` is auto-generated. Regenerate it with `./scripts/generate-types.sh` after changing any GraphQL schema files.

Example/src/main/java/dev/hyo/martie/Constants.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ object IapConstants {
44
// App-defined SKU lists
55
val INAPP_SKUS = listOf(
66
"dev.hyo.martie.10bulbs",
7-
"dev.hyo.martie.30bulbs"
7+
"dev.hyo.martie.30bulbs",
8+
"dev.hyo.martie.certified" // Non-consumable
89
)
910

1011
val SUBS_SKUS = listOf(
11-
"dev.hyo.martie.premium"
12+
"dev.hyo.martie.premium",
13+
"dev.hyo.martie.premium_year"
1214
)
1315
}
1416

0 commit comments

Comments
 (0)