react-native-purchases 5.0.0 → 5.0.1

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/README.md CHANGED
@@ -16,7 +16,7 @@ React Native Purchases is a client for the [RevenueCat](https://www.revenuecat.c
16
16
  ➡️ | [Webhooks](https://docs.revenuecat.com/docs/webhooks) - enhanced server-to-server communication with events for purchases, renewals, cancellations, and more
17
17
  🎯 | Subscription status tracking - know whether a user is subscribed whether they're on iOS, Android or web
18
18
  📊 | Analytics - automatic calculation of metrics like conversion, mrr, and churn
19
- 📝 | [Online documentation](https://docs.revenuecat.com/docs) up to date
19
+ 📝 | [Online documentation](https://docs.revenuecat.com/docs) and [SDK reference](https://revenuecat.github.io/react-native-purchases-docs/) up to date
20
20
  🔀 | [Integrations](https://www.revenuecat.com/integrations) - over a dozen integrations to easily send purchase data where you need it
21
21
  💯 | Well maintained - [frequent releases](https://github.com/RevenueCat/purchases-ios/releases)
22
22
  📮 | Great support - [Help Center](https://revenuecat.zendesk.com)
@@ -24,6 +24,6 @@ Pod::Spec.new do |spec|
24
24
  ]
25
25
 
26
26
  spec.dependency "React-Core"
27
- spec.dependency "PurchasesHybridCommon", '4.1.4'
27
+ spec.dependency "PurchasesHybridCommon", '4.2.1'
28
28
  spec.swift_version = '5.0'
29
29
  end
@@ -29,7 +29,7 @@ android {
29
29
  minSdkVersion getExtOrIntegerDefault('minSdkVersion')
30
30
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
31
31
  versionCode 1
32
- versionName '5.0.0'
32
+ versionName '5.0.1'
33
33
  }
34
34
 
35
35
  buildTypes {
@@ -121,6 +121,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
121
121
  dependencies {
122
122
  //noinspection GradleDynamicVersion
123
123
  api 'com.facebook.react:react-native:+'
124
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:4.1.4'
124
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:4.2.1'
125
125
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
126
126
  }
package/ios/RNPurchases.m CHANGED
@@ -202,11 +202,19 @@ RCT_REMAP_METHOD(getPromotionalOffer,
202
202
  }
203
203
 
204
204
  RCT_EXPORT_METHOD(presentCodeRedemptionSheet) {
205
+ #if TARGET_OS_MACCATALYST
206
+ logUnavailablePresentCodeRedemptionSheet();
207
+ #else
205
208
  if (@available(iOS 14.0, *)) {
206
209
  [RCCommonFunctionality presentCodeRedemptionSheet];
207
210
  } else {
208
- NSLog(@"[Purchases] Warning: tried to present codeRedemptionSheet, but it's only available on iOS 14.0 or greater.");
211
+ logUnavailablePresentCodeRedemptionSheet();
209
212
  }
213
+ #endif
214
+ }
215
+
216
+ static void logUnavailablePresentCodeRedemptionSheet() {
217
+ NSLog(@"[Purchases] Warning: tried to present codeRedemptionSheet, but it's only available on iOS 14.0 or greater.");
210
218
  }
211
219
 
212
220
  #pragma mark - Subscriber Attributes
@@ -346,7 +354,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
346
354
  }
347
355
 
348
356
  - (NSString *)platformFlavorVersion {
349
- return @"5.0.0";
357
+ return @"5.0.1";
350
358
  }
351
359
 
352
360
  @end
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-purchases",
3
3
  "title": "React Native Purchases",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android. ",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  <!DOCTYPE html>
3
3
  <html>
4
4
  <head>
5
- <meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/react-native-purchases-docs/5.0.0/" />
5
+ <meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/react-native-purchases-docs/5.0.1/" />
6
6
  </head>
7
7
  <body>
8
8
  </body>