Skip to content

Commit

Permalink
Preparing for 4.5.1 (#322)
Browse files Browse the repository at this point in the history
* Preparing for next release

* update changelog
  • Loading branch information
vegaro authored Jan 3, 2022
1 parent 6aa76db commit 7e0f8f7
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 29 deletions.
26 changes: 1 addition & 25 deletions CHANGELOG.latest.md
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
This release has some changes that should help prevent "There is no singleton instance" errors [issue](https://github.com/RevenueCat/react-native-purchases/issues/101), [PR](https://github.com/RevenueCat/react-native-purchases/pull/310).
- Added `isConfigured` function to be able to check if the instance of Purchases has been configured before calling any function that accesses the singleton instance.
- These functions that were returning `void`, now return `Promise<void>`:

| Integrations | Subscriber attributes | Configuration and other |
| :------------------: | :------------------------: | :----------------------------: |
| `addAttributionData` | `collectDeviceIdentifiers` | `invalidatePurchaserInfoCache` |
| `setAd` | `setAttributes` | `presentCodeRedemptionSheet` |
| `setAdGroup` | `setDisplayName` | `setAllowSharingStoreAccount` |
| `setAdjustID` | `setEmail` | `setAutomaticAppleSearchAdsAttributionCollection` |
| `setAirshipChannelID`| `setPhoneNumber` | `setDebugLogsEnabled` |
| `setAppsflyerID` | `setPushToken` | `setFinishTransactions` |
| `setCampaign` | | `setSimulatesAskToBuyInSandbox` |
| `setCreative` | | `syncPurchases` |
| `setFBAnonymousID` | | |
| `setKeyword` | | |
| `setMediaSource` | | |
| `setMparticleID` | | |
| `setOnesignalID` | | |

- Accessing a function that accesses the singleton instance before it has been setup will now reject with a `UninitializedPurchasesError`.

- Bump`purchases-hybrid-common` to `1.11.1` [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/1.10.1)
- Bump `purchases-ios` to `3.13.1` ([Changelog here](https://github.com/RevenueCat/purchases-ios/releases/3.13.1))
- Bump `purchases-android` to `4.6.0` ([Changelog here](https://github.com/RevenueCat/purchases-android/releases/4.6.0))
- Fix Expo 44 compatibility by fixing `RCTEventEmitter` import [PR](https://github.com/RevenueCat/react-native-purchases/commit/75e3c5a99430168fac3a2a28c17238408580fcb3) [Issue](https://github.com/RevenueCat/react-native-purchases/issues/160)
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.5.1

- Fix Expo 44 compatibility by fixing `RCTEventEmitter` import [PR](https://github.com/RevenueCat/react-native-purchases/commit/75e3c5a99430168fac3a2a28c17238408580fcb3) [Issue](https://github.com/RevenueCat/react-native-purchases/issues/160)

## 4.5.0

This release has some changes that should help prevent "There is no singleton instance" errors [issue](https://github.com/RevenueCat/react-native-purchases/issues/101), [PR](https://github.com/RevenueCat/react-native-purchases/pull/310).
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,12 @@ GEM

PLATFORMS
arm64-darwin-20
arm64-darwin-21
x86_64-darwin-20

DEPENDENCIES
cocoapods
fastlane

BUNDLED WITH
2.2.24
2.2.33
1 change: 1 addition & 0 deletions VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
| Version | iOS version | Android version | Common files version |
|---------|-------------|-----------------|----------------------|
| 4.5.1 | 3.13.1 | 4.6.0 | 1.11.1 |
| 4.5.0 | 3.13.1 | 4.6.0 | 1.11.1 |
| 4.4.1 | 3.10.0 | 4.4.0 | 1.10.0 |
| 4.4.0 | 3.10.0 | 4.4.0 | 1.10.0 |
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ android {
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
versionCode 1
versionName '4.5.0'
versionName '4.5.1'
}

buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion ios/RNPurchases.m
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ - (NSString *)platformFlavor {
}

- (NSString *)platformFlavorVersion {
return @"4.5.0";
return @"4.5.1";
}

@end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-purchases",
"title": "React Native Purchases",
"version": "4.5.0",
"version": "4.5.1",
"description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android. ",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 7e0f8f7

Please sign in to comment.