react-native-purchases 5.0.2 → 5.1.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/README.md CHANGED
@@ -1,15 +1,28 @@
1
+ <h3 align="center">😻 In-App Subscriptions Made Easy 😻</h3>
1
2
 
2
- <p align="center">
3
- <img src="https://uploads-ssl.webflow.com/5e2613cf294dc30503dcefb7/5e752025f8c3a31d56a51408_logo_red%20(1).svg" width="350" alt="RevenueCat"/>
4
- <br>
5
- React Native in-app subscriptions made easy
6
- </p>
3
+ [![License](https://img.shields.io/cocoapods/l/RevenueCat.svg?style=flat)](http://cocoapods.org/pods/RevenueCat)
7
4
 
8
- # What is react-native-purchases?
5
+ RevenueCat is a powerful, reliable, and free to use in-app purchase server with cross-platform support. Our open-source framework provides a backend and a wrapper around StoreKit and Google Play Billing to make implementing in-app purchases and subscriptions easy.
9
6
 
10
- React Native Purchases is a client for the [RevenueCat](https://www.revenuecat.com/) subscription and purchase tracking system. It is an open source framework that provides a wrapper around `StoreKit`, `Google Play Billing` and the RevenueCat backend to make implementing in-app purchases in `React Native` easy.
7
+ Whether you are building a new app or already have millions of customers, you can use RevenueCat to:
11
8
 
12
- ## Features
9
+ * Fetch products, make purchases, and check subscription status with our [native SDKs](https://docs.revenuecat.com/docs/installation).
10
+ * Host and [configure products](https://docs.revenuecat.com/docs/entitlements) remotely from our dashboard.
11
+ * Analyze the most important metrics for your app business [in one place](https://docs.revenuecat.com/docs/charts).
12
+ * See customer transaction histories, chart lifetime value, and [grant promotional subscriptions](https://docs.revenuecat.com/docs/customers).
13
+ * Get notified of real-time events through [webhooks](https://docs.revenuecat.com/docs/webhooks).
14
+ * Send enriched purchase events to analytics and attribution tools with our easy integrations.
15
+
16
+ Sign up to [get started for free](https://app.revenuecat.com/signup).
17
+
18
+ ## React Native Purchases
19
+
20
+ React Native Purchases is the client for the [RevenueCat](https://www.revenuecat.com/) subscription and purchase tracking system. It is an open source framework that provides a wrapper around `StoreKit`, `Google Play Billing` and the RevenueCat backend to make implementing in-app purchases in `React Native` easy.
21
+
22
+ ## Migrating from Purchases v3
23
+ - See our [Migration guide](https://revenuecat-docs.netlify.app/documentation/revenuecat/v4_api_migration_guide)
24
+
25
+ ## RevenueCat SDK Features
13
26
  | | RevenueCat |
14
27
  | --- | --- |
15
28
  ✅ | Server-side receipt validation
@@ -21,25 +34,46 @@ React Native Purchases is a client for the [RevenueCat](https://www.revenuecat.c
21
34
  💯 | Well maintained - [frequent releases](https://github.com/RevenueCat/purchases-ios/releases)
22
35
  📮 | Great support - [Help Center](https://revenuecat.zendesk.com)
23
36
 
37
+ ## Getting Started
38
+ For more detailed information, you can view our complete documentation at [docs.revenuecat.com](https://docs.revenuecat.com/docs).
39
+
40
+ Please follow the [Quickstart Guide](https://docs.revenuecat.com/docs/) for more information on how to install the SDK.
41
+
42
+ Or view our React Native sample app:
43
+ - [MagicWeather](examples/MagicWeather)
44
+
24
45
  ## Requirements
25
46
 
26
47
  The minimum React Native version this SDK requires is `0.64`.
27
48
 
49
+ ## SDK Reference
50
+ Our full SDK reference [can be found here](https://revenuecat.github.io/react-native-purchases-docs/).
51
+
52
+ ---
53
+
28
54
  ## Installation
29
55
 
30
56
  ExpoKit projects of version 33 or higher can successfully use react-native-purchases. If you haven't upgraded, you can follow [the instructions here to upgrade](https://docs.expo.io/versions/latest/expokit/expokit/#upgrading-expokit).
31
57
 
32
- If you're planning on ejecting from Expo, upgrade your expo version _first_, THEN eject. It'll save you a whole lot of hassle.
58
+ > ❗️ If you're planning on ejecting from Expo, upgrade your expo version _first_, THEN eject. It'll save you a whole lot of hassle. ❗️
59
+
60
+ ### 1. Add the library to the project
33
61
 
34
- ### Add the library to the project
62
+ ```
63
+ $ npm install react-native-purchases --save
64
+ ```
35
65
 
36
- `$ npm install react-native-purchases --save`
37
66
  or
38
- `$ yarn add react-native-purchases`
39
67
 
40
- ### Link library to the project
68
+ ```
69
+ $ yarn add react-native-purchases
70
+ ```
41
71
 
42
- `$ react-native link react-native-purchases`
72
+ ### 2. Link library to the project
73
+
74
+ ```
75
+ $ react-native link react-native-purchases
76
+ ```
43
77
 
44
78
  ### Additional iOS Setup
45
79
 
@@ -77,11 +111,3 @@ During the old manual installation instructions, now deprecated, we indicated to
77
111
  The `react-native link` command should have added the `libRNPurchases.a` library to the _Linked Frameworks and Libraries_ section of your app target. If it hasn't add it like this:
78
112
 
79
113
  ![](https://media.giphy.com/media/U2MMgrdYlkRhEcy80J/giphy.gif)
80
-
81
- ## Getting Started
82
-
83
- Please follow the [Quickstart Guide](https://docs.revenuecat.com/docs/) for more information on how to use the SDK
84
-
85
- ## SDK Reference
86
- Our full SDK reference [can be found here](https://revenuecat.github.io/react-native-purchases-docs).
87
-
@@ -24,6 +24,6 @@ Pod::Spec.new do |spec|
24
24
  ]
25
25
 
26
26
  spec.dependency "React-Core"
27
- spec.dependency "PurchasesHybridCommon", '4.2.1'
27
+ spec.dependency "PurchasesHybridCommon", '4.3.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.2'
32
+ versionName '5.1.0'
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.2.1'
124
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:4.3.1'
125
125
  implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
126
126
  }
package/ios/RNPurchases.m CHANGED
@@ -354,7 +354,7 @@ readyForPromotedProduct:(RCStoreProduct *)product
354
354
  }
355
355
 
356
356
  - (NSString *)platformFlavorVersion {
357
- return @"5.0.2";
357
+ return @"5.1.0";
358
358
  }
359
359
 
360
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.2",
4
+ "version": "5.1.0",
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.2/" />
5
+ <meta http-equiv="refresh" content="0; url=https://revenuecat.github.io/react-native-purchases-docs/5.1.0/" />
6
6
  </head>
7
7
  <body>
8
8
  </body>