@chipmobilesdk/rn-payment 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +482 -334
- package/README.md +925 -897
- package/package.json +52 -54
- package/skills/sdk-rn-payment/SKILL.md +175 -174
- package/src/adapter/createStoreProvider.ts +116 -118
- package/src/adapter/iap-adapter.ts +627 -660
- package/src/adapter/port.ts +209 -215
- package/src/config/types.ts +298 -310
- package/src/config/validate.ts +224 -232
- package/src/core/mutex.ts +25 -128
- package/src/core/retry.ts +95 -133
- package/src/core/timers.ts +272 -267
- package/src/diagnostics/errors.ts +124 -117
- package/src/diagnostics/events.ts +282 -266
- package/src/diagnostics/messageKeys.ts +93 -95
- package/src/engine/engine.ts +921 -999
- package/src/engine/finalize.ts +343 -346
- package/src/engine/foreground.ts +29 -0
- package/src/engine/products.ts +259 -259
- package/src/engine/purchase.ts +589 -614
- package/src/engine/subscriptions.ts +146 -157
- package/src/entitlements/aggregate.ts +261 -242
- package/src/entitlements/mapping.ts +67 -67
- package/src/entitlements/policy.ts +121 -129
- package/src/index.ts +5 -9
- package/src/persistence/mmkv-store.ts +158 -158
- package/src/persistence/snapshot.ts +220 -247
- package/src/react/PaymentProvider.tsx +90 -79
- package/src/react/hooks.ts +236 -274
- package/src/testing/conformance.ts +169 -0
- package/src/testing/fakeStore.ts +360 -393
- package/src/testing/index.ts +19 -10
package/src/testing/index.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@chipmobilesdk/rn-payment/testing` — test doubles.
|
|
3
|
-
*
|
|
4
|
-
* A separate entrypoint so the fake store cannot reach a production bundle
|
|
5
|
-
* (LIB-003). Nothing here is part of the package's public runtime contract.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export { createFakeStore, makePurchase } from './fakeStore';
|
|
9
|
-
export type { FakeStore, FakeStoreOptions } from './fakeStore';
|
|
10
|
-
export { createMemorySnapshotStore } from '../persistence/mmkv-store';
|
|
1
|
+
/**
|
|
2
|
+
* `@chipmobilesdk/rn-payment/testing` — test doubles.
|
|
3
|
+
*
|
|
4
|
+
* A separate entrypoint so the fake store cannot reach a production bundle
|
|
5
|
+
* (LIB-003). Nothing here is part of the package's public runtime contract.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export { createFakeStore, makePurchase } from './fakeStore';
|
|
9
|
+
export type { FakeStore, FakeStoreOptions } from './fakeStore';
|
|
10
|
+
export { createMemorySnapshotStore } from '../persistence/mmkv-store';
|
|
11
|
+
|
|
12
|
+
export { CONFORMANCE_STORE, providerPortChecks, runProviderPortConformance } from './conformance';
|
|
13
|
+
export type {
|
|
14
|
+
OwnedPurchaseSpec,
|
|
15
|
+
ProviderHarness,
|
|
16
|
+
ProviderSubject,
|
|
17
|
+
StoreProductSpec,
|
|
18
|
+
StoreScenario,
|
|
19
|
+
} from './conformance';
|