Skip to content

Commit 5b2e5c0

Browse files
authored
[Virtual Currencies]: State That Hybrid SDK Support is Coming Soon (#1003)
1 parent 9fe0445 commit 5b2e5c0

File tree

4 files changed

+2
-93
lines changed

4 files changed

+2
-93
lines changed

code_blocks/virtual-currency/vc-android-experimental-api-annotation-example.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

code_blocks/virtual-currency/vc-balance-sdk-flutter.dart

Lines changed: 0 additions & 11 deletions
This file was deleted.

code_blocks/virtual-currency/vc-balance-sdk-react-native.ts.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/offerings/virtual-currency.mdx

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -40,45 +40,6 @@ You can associate as many products as you want with your virtual currency and yo
4040

4141
Once your customer purchase the associated products they will get the defined amount of your virtual currency. You can inspect the virtual currency balances of your customer in the right side-panel of the customer page.
4242

43-
## SDK Beta Installation
44-
45-
SDK support for virtual currencies is currently in beta, and as such requires the usage of a beta build. Please note that the virtual currency APIs in these betas are subject to change without warning in future releases. The beta virtual currency features are currently available in the native iOS and Android SDKs.
46-
47-
### iOS
48-
49-
Virtual currency functionality is available in the native iOS SDK in versions 5.32.0 and above.
50-
51-
### Android
52-
53-
Virtual currency functionality is available in the native Android SDK in versions 9.1.0 and above.
54-
55-
### React Native
56-
57-
When installing the purchases SDK in your app, use the latest virtual currencies beta version:
58-
59-
[![Latest Virtual Currency React Native Beta Release](https://img.shields.io/github/release/RevenueCat/react-native-purchases.svg?filter=*vc-beta*&style=flat)](https://github.com/RevenueCat/react-native-purchases/releases)
60-
61-
```json
62-
// Package.json
63-
64-
"dependencies": {
65-
"react-native-purchases": "8.9.1-vc-beta.1",
66-
}
67-
```
68-
69-
### Flutter
70-
71-
When installing the purchases SDK in your app, use the latest virtual currencies beta version in your `pubspec.yaml` file:
72-
73-
[![Latest Virtual Currency Flutter Beta Release](https://img.shields.io/github/release/RevenueCat/purchases-flutter.svg?filter=*vc-beta*&style=flat)](https://github.com/RevenueCat/purchases-flutter/releases)
74-
75-
```yaml
76-
# pubspec.yaml
77-
78-
dependencies:
79-
purchases_flutter: "8.7.0-vc-beta.1"
80-
```
81-
8243
## Usage
8344

8445
### Prerequisites
@@ -131,8 +92,6 @@ import content5 from "@site/code_blocks/virtual-currency/balance-response.json?r
13192

13293
#### From the SDK
13394

134-
##### iOS and Android
135-
13695
import fetchVCBalancesSwift from "@site/code_blocks/virtual-currency/vc-balance-sdk-ios.swift?raw";
13796
import fetchVCBalancesKotlin from "@site/code_blocks/virtual-currency/vc-balance-sdk-android.kt?raw";
13897
import fetchVCBalancesJava from "@site/code_blocks/virtual-currency/vc-balance-sdk-android.java?raw";
@@ -177,31 +136,8 @@ import cachedVirtualCurrenciesSwift from "@site/code_blocks/virtual-currency/cac
177136
]}
178137
/>
179138

180-
##### React Native and Flutter
181-
182-
If you're using the virtual currency SDK betas for React Native or Flutter, you can fetch the virtual currency balances from the [CustomerInfo](https://www.revenuecat.com/docs/customers/customer-info) object in the SDK:
183-
184-
import fetchVCBalancesReactNative from "@site/code_blocks/virtual-currency/vc-balance-sdk-react-native.ts.txt?raw";
185-
import fetchVCBalancesFlutter from "@site/code_blocks/virtual-currency/vc-balance-sdk-flutter.dart?raw";
186-
187-
<RCCodeBlock
188-
tabs={[
189-
{
190-
type: "rn",
191-
content: fetchVCBalancesReactNative,
192-
name: "React Native",
193-
},
194-
{
195-
type: "flutter",
196-
content: fetchVCBalancesFlutter,
197-
name: "Flutter",
198-
},
199-
]}
200-
/>
201-
202-
:::warning CustomerInfo does not update automatically when balance changes
203-
When a customer's balance is updated from your backend, the CustomerInfo object remains cached and is not automatically updated. In order to get the updated balance, you need to call `Purchases/invalidateCustomerInfoCache()` and fetch the CustomerInfo object again.
204-
:::
139+
##### Hybrid SDK Support
140+
Virtual currency support in the hybrid SDKs is coming soon!
205141

206142
### Depositing or spending
207143

0 commit comments

Comments
 (0)