Commit e5aacfd
authored
feat(enh): only include obfuscatedProfileIdAndroid for new purchase (#3039)
Check if the subscription is `upgrade` and filter
`obfuscatedProfileIdAndroid` field which is done in
hyodotdev/openiap-google#13.
```kt
val isUpgrade = !androidRequest.purchaseTokenAndroid.isNullOrEmpty()
obfuscatedProfileIdAndroid = if (isUpgrade) null else androidRequest.obfuscatedProfileIdAndroid,
```
> Exact line:
https://github.com/hyodotdev/openiap-google/blob/c7af9f04fbdeb42721315185d0e4ed3d8a056cfb/openiap/src/main/java/dev/hyo/openiap/OpenIapModule.kt#L309-L313
Add tests and example codes related to this.
Resolve #3032
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Plan-change UI with upgrade/downgrade controls, current plan, expiry,
auto-renew, and transaction display; added yearly subscription option.
* **Documentation**
* Simplified example links and note blocks for
Purchase/Subscription/Available-Purchases/Offer-Code guides.
* Updated API docs and guides to show useIAP invoked with
onPurchaseSuccess/onPurchaseError callbacks (removing
currentPurchase/currentPurchaseError examples).
* **Tests**
* Expanded subscription tests covering Android flows, ownership states,
retries, connection transitions, modals, and logging.
* **Chores**
* Bumped a dependency patch version.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 5c00b99 commit e5aacfd
File tree
14 files changed
+1881
-1005
lines changed- docs/docs
- api
- methods
- examples
- guides
- example
- __tests__/screens
- ios
- screens
- src/utils
14 files changed
+1881
-1005
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
395 | 390 | | |
396 | 391 | | |
397 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | | - | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
144 | 141 | | |
145 | 142 | | |
146 | 143 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 144 | | |
161 | 145 | | |
162 | 146 | | |
| |||
235 | 219 | | |
236 | 220 | | |
237 | 221 | | |
238 | | - | |
| 222 | + | |
239 | 223 | | |
240 | 224 | | |
241 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments