Commit 9fe76da
docs: cross-link wrapper SDKs + doc pages to openiap.dev API references (#107)
## Summary
- Add doc comments on every public OpenIAP API across all wrapper SDKs
(apple, google, react-native-iap, expo-iap, flutter, kmp, godot) linking
to www.openiap.dev/docs/apis/<symbol>; full
@param/@returns/@throws/@example for the 5 core funcs (initConnection,
fetchProducts, requestPurchase, finishTransaction,
getAvailablePurchases). Preserves original Apple StoreKit / @platform /
@example content.
- GraphQL schema descriptions get canonical URLs, propagated to every
generated Types file via codegen.
- Docs site (~70 API + Type pages) get a one-paragraph iOS/Android
behaviour blurb with Apple/Google reference links.
- Mobile/tablet UI fixes: CodeBlock badge attached as tab-bar (no
overlap with scrolling code), sidebar drawer below sticky nav (no
z-index collision with hamburger), sidebar margin-left clamped so the
centering offset doesn't shove it right at 768–1400px.
## Test plan
- [x] `swift build` — packages/apple
- [x] `./gradlew :openiap:compilePlayDebugKotlin` — packages/google
- [x] `./gradlew :library:compileKotlinMetadata` — kmp-iap
- [x] `bun run lint:tsc` — expo-iap
- [x] `yarn typecheck` — react-native-iap (pre-existing example-expo
errors unrelated)
- [x] `dart analyze lib` — flutter_inapp_purchase
- [x] `bun run build` — packages/docs (vite + tsc)
- [ ] Visual QA: mobile sidebar opens, drawer items clickable, code
block badge stays inside the tab bar at narrow widths
- [ ] Visual QA: tablet 768–1300px viewport — sidebar stays at left
edge, content fills the rest
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Massive cross-SDK docs refresh: clearer API semantics,
platform-specific behavior notes, event-driven purchase flow guidance
(listener-delivered outcomes), timing/acknowledgement rules, deprecation
guidance (prefer verifyPurchase), expanded examples, and many
OpenIAP/Apple/Google reference links.
* **Style**
* Docs UI improvements: revamped code-block header/tabs and
sidebar/responsive layout for better navigation.
* **Bug Fixes**
* Adjusted fetchProducts default behavior: omitting type now defaults to
in-app products.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6bd5d34 commit 9fe76da
110 files changed
Lines changed: 8778 additions & 1660 deletions
File tree
- knowledge/internal
- libraries
- expo-iap/src
- modules
- flutter_inapp_purchase/lib
- godot-iap/addons/godot-iap
- kmp-iap/library/src
- androidMain/kotlin/io/github/hyochan/kmpiap
- commonMain/kotlin/io/github/hyochan/kmpiap/openiap
- iosMain/kotlin/io/github/hyochan/kmpiap
- react-native-iap/src
- hooks
- packages
- apple/Sources
- Models
- docs
- src
- components
- pages/docs
- apis
- android
- ios
- types
- android
- ios
- styles
- google/openiap/src/main/java/dev/hyo/openiap
- store
- gql/src
- generated
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
0 commit comments