Skip to content

Commit

Permalink
Release/4.5.2 (#329)
Browse files Browse the repository at this point in the history
* bumped purchases-hybrid-common to latest

* bumped version number, added changelog

* updated versions

* added `dangerousSettings:nil`

* updated changelog

* fix typo in link

* fix typo in link
  • Loading branch information
aboedo authored Feb 9, 2022
1 parent dbf2b7f commit 6df3927
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 39 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.latest.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
- 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)
- Fix [an issue](https://github.com/RevenueCat/react-native-purchases/issues/328) where calling `checkTrialOrIntroductoryPriceEligibility` could cause a log in prompt
- Bump `purchases-hybrid-common` to 2.0.1. [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/2.0.1)
- Bump `purchases-ios` to 3.14.1. [Changelog here](https://github.com/RevenueCat/purchases-ios/releases/3.14.1))
- Bump `purchases-android` to 4.6.1. [Changelog here](https://github.com/RevenueCat/purchases-android/releases/4.6.1)
https://github.com/RevenueCat/react-native-purchases/pull/329
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 4.5.2

- Fix [an issue](https://github.com/RevenueCat/react-native-purchases/issues/328) where calling `checkTrialOrIntroductoryPriceEligibility` could cause a log in prompt
- Bump `purchases-hybrid-common` to 2.0.1. [Changelog here](https://github.com/RevenueCat/purchases-hybrid-common/releases/tag/2.0.1)
- Bump `purchases-ios` to 3.14.1. [Changelog here](https://github.com/RevenueCat/purchases-ios/releases/3.14.1))
- Bump `purchases-android` to 4.6.1. [Changelog here](https://github.com/RevenueCat/purchases-android/releases/4.6.1)
https://github.com/RevenueCat/react-native-purchases/pull/329

## 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)
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ GEM
PLATFORMS
arm64-darwin-20
arm64-darwin-21
ruby
x86_64-darwin-20

DEPENDENCIES
Expand Down
2 changes: 1 addition & 1 deletion RNPurchases.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Pod::Spec.new do |spec|
]

spec.dependency "React-Core"
spec.dependency "PurchasesHybridCommon", '1.11.1'
spec.dependency "PurchasesHybridCommon", '2.0.1'
spec.swift_version = '5.0'
end
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.2 | 3.14.1 | 4.6.1 | 2.0.1 |
| 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 |
Expand Down
4 changes: 2 additions & 2 deletions 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.1'
versionName '4.5.2'
}

buildTypes {
Expand Down Expand Up @@ -122,6 +122,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
dependencies {
//noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation 'com.revenuecat.purchases:purchases-hybrid-common:1.11.1'
implementation 'com.revenuecat.purchases:purchases-hybrid-common:2.0.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
26 changes: 13 additions & 13 deletions examples/purchaseTester/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ PODS:
- glog (0.3.5)
- libevent (2.1.12)
- OpenSSL-Universal (1.1.180)
- Purchases (3.13.1):
- PurchasesCoreSwift (= 3.13.1)
- PurchasesCoreSwift (3.13.1)
- PurchasesHybridCommon (1.11.1):
- Purchases (= 3.13.1)
- Purchases (3.14.1):
- PurchasesCoreSwift (= 3.14.1)
- PurchasesCoreSwift (3.14.1)
- PurchasesHybridCommon (2.0.1):
- Purchases (= 3.14.1)
- RCT-Folly (2020.01.13.00):
- boost-for-react-native
- DoubleConversion
Expand Down Expand Up @@ -323,8 +323,8 @@ PODS:
- React-perflogger (= 0.64.3)
- RNGestureHandler (1.10.3):
- React-Core
- RNPurchases (4.5.0):
- PurchasesHybridCommon (= 1.11.1)
- RNPurchases (4.5.1):
- PurchasesHybridCommon (= 2.0.1)
- React-Core
- RNScreens (2.18.1):
- React-Core
Expand Down Expand Up @@ -473,7 +473,7 @@ SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
FBLazyVector: c71c5917ec0ad2de41d5d06a5855f6d5eda06971
FBReactNativeSpec: 6a7ee9cb0839006f75cc5c23f6d5283dc6080c4d
FBReactNativeSpec: bf1a0bd6e1145709fdfc7775605a70b4370f6759
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
Expand All @@ -484,9 +484,9 @@ SPEC CHECKSUMS:
glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
Purchases: 2693d6444609de044ab25fcda9561bef038f24da
PurchasesCoreSwift: ca55f9ef671f89abed133775dd9e53f55007828d
PurchasesHybridCommon: a0313de4f31fbaf137518b2686ccdca4c91dd2b4
Purchases: b714751c386c2204d2d5aafaa903fd424a25cd59
PurchasesCoreSwift: 2cf98c52dd4b785177539fbfd1c32f60c89eafe7
PurchasesHybridCommon: e9bc1677cb11fe584ad29c0309f78142a8f14b5a
RCT-Folly: ec7a233ccc97cc556cf7237f0db1ff65b986f27c
RCTRequired: d34bf57e17cb6e3b2681f4809b13843c021feb6c
RCTTypeSafety: 8dab4933124ed39bb0c1d88d74d61b1eb950f28f
Expand All @@ -511,11 +511,11 @@ SPEC CHECKSUMS:
React-runtimeexecutor: 493d9abb8b23c3f84e19ae221eeba92cadcb70dc
ReactCommon: 8fea6422328e2fc093e25c9fac67adbcf0f04fb4
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
RNPurchases: aa1b4dff749eb760c6de50f1d987aa45455e58a8
RNPurchases: 8c62ee16c85e629844685dcc7d689f5f45040c96
RNScreens: f7ad633b2e0190b77b6a7aab7f914fad6f198d8d
Yoga: e6ecf3fa25af9d4c87e94ad7d5d292eedef49749
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: ef0169631a326f7a668fc6ea8da5bdfe60d83f4c

COCOAPODS: 1.11.2
COCOAPODS: 1.10.1
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-ReactNativeSample/Pods-ReactNativeSample-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
Expand Down
28 changes: 14 additions & 14 deletions examples/purchaseTesterTypescript/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ PODS:
- glog (0.3.5)
- libevent (2.1.12)
- OpenSSL-Universal (1.1.180)
- Purchases (3.13.1):
- PurchasesCoreSwift (= 3.13.1)
- PurchasesCoreSwift (3.13.1)
- PurchasesHybridCommon (1.11.1):
- Purchases (= 3.13.1)
- Purchases (3.14.1):
- PurchasesCoreSwift (= 3.14.1)
- PurchasesCoreSwift (3.14.1)
- PurchasesHybridCommon (2.0.1):
- Purchases (= 3.14.1)
- RCT-Folly (2021.06.28.00-v2):
- boost
- DoubleConversion
Expand Down Expand Up @@ -344,10 +344,10 @@ PODS:
- React-jsi (= 0.66.4)
- React-logger (= 0.66.4)
- React-perflogger (= 0.66.4)
- RNPurchases (4.5.0):
- PurchasesHybridCommon (= 1.11.1)
- RNPurchases (4.5.2):
- PurchasesHybridCommon (= 2.0.1)
- React-Core
- RNScreens (3.10.1):
- RNScreens (3.10.2):
- React-Core
- React-RCTImage
- Yoga (1.14.0)
Expand Down Expand Up @@ -519,9 +519,9 @@ SPEC CHECKSUMS:
glog: 5337263514dd6f09803962437687240c5dc39aa4
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
Purchases: 2693d6444609de044ab25fcda9561bef038f24da
PurchasesCoreSwift: ca55f9ef671f89abed133775dd9e53f55007828d
PurchasesHybridCommon: a0313de4f31fbaf137518b2686ccdca4c91dd2b4
Purchases: b714751c386c2204d2d5aafaa903fd424a25cd59
PurchasesCoreSwift: 2cf98c52dd4b785177539fbfd1c32f60c89eafe7
PurchasesHybridCommon: e9bc1677cb11fe584ad29c0309f78142a8f14b5a
RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9
RCTRequired: 4bf86c70714490bca4bf2696148638284622644b
RCTTypeSafety: c475a7059eb77935fa53d2c17db299893f057d5d
Expand All @@ -547,11 +547,11 @@ SPEC CHECKSUMS:
React-RCTVibration: e3ffca672dd3772536cb844274094b0e2c31b187
React-runtimeexecutor: dec32ee6f2e2a26e13e58152271535fadff5455a
ReactCommon: 57b69f6383eafcbd7da625bfa6003810332313c4
RNPurchases: aa1b4dff749eb760c6de50f1d987aa45455e58a8
RNScreens: 522705f2e5c9d27efb17f24aceb2bf8335bc7b8e
RNPurchases: fbae56ea06b0d4bf88df691f26d4b8906f918917
RNScreens: d6da2b9e29cf523832c2542f47bf1287318b1868
Yoga: e7dc4e71caba6472ff48ad7d234389b91dadc280
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: cd6af7a9d5d8dd302a106b9b100d159909f7f592

COCOAPODS: 1.11.2
COCOAPODS: 1.10.1
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ lane :build_hybrid_example do |options|
sh("yarn example")
end
Dir.chdir(File.expand_path("examples/purchaseTester/ios", get_root_folder)) do
sh("pod update PurchasesHybridCommon")
sh("pod update PurchasesHybridCommon --repo-update")
end
end

Expand Down Expand Up @@ -148,7 +148,7 @@ lane :update_ios_pod do |options|
end
end

desc "Update Hybrid Common, Build PurchaseTester, and updates download scrips. Calls update_hybrid_common, then build_hybrid_example then update_ios_pod"
desc "Update Hybrid Common, Build PurchaseTester, and updates download scripts. Calls update_hybrid_common, then build_hybrid_example then update_ios_pod"
lane :update_hybrid_common do |options|
update_hybrid_common_versions(options)
build_hybrid_example(options)
Expand Down
2 changes: 1 addition & 1 deletion fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Update iOS pod version during hybrid update
```
fastlane update_hybrid_common
```
Update Hybrid Common, Build PurchaseTester, and updates download scrips. Calls update_hybrid_common, then build_hybrid_example then update_ios_pod
Update Hybrid Common, Build PurchaseTester, and updates download scripts. Calls update_hybrid_common, then build_hybrid_example then update_ios_pod

----

Expand Down
5 changes: 3 additions & 2 deletions ios/RNPurchases.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ - (dispatch_queue_t)methodQueue {
observerMode:observerMode
userDefaultsSuiteName:userDefaultsSuiteName
platformFlavor:self.platformFlavor
platformFlavorVersion:self.platformFlavorVersion];
platformFlavorVersion:self.platformFlavorVersion
dangerousSettings:nil];
RCPurchases.sharedPurchases.delegate = self;
[RCCommonFunctionality configure];
}
Expand Down Expand Up @@ -368,7 +369,7 @@ - (NSString *)platformFlavor {
}

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

@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.1",
"version": "4.5.2",
"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
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (os.type() === "Linux") {
console.log("Skipping iOS Dependencies");
} else if (os.type() === "Darwin") {
const downloadProcess = exec(
"./scripts/download-purchases-framework.sh 3.13.1"
"./scripts/download-purchases-framework.sh 3.14.1"
);
downloadProcess.stdout.pipe(process.stdout);
const downloadProcessCommon = exec(
Expand Down

0 comments on commit 6df3927

Please sign in to comment.