Skip to content

Commit

Permalink
Preparing for version 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Dec 3, 2019
1 parent 90733d5 commit eac6aac
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## 3.0.0

- Support for new Offerings system.
- Deprecates `makePurchase` methods. Replaces with `purchasePackage`
- Deprecates `getEntitlements` method. Replaces with `getOfferings`
- See our migration guide for more info: https://docs.revenuecat.com/v3.0/docs/offerings-migration
- Updates to BillingClient 2.0.3. If finishTransactions is set to false (or observerMode is true when configuring the SDK),
this SDK won't acknowledge any purchase and you have to do it yourself.
- Adds proration mode support on upgrades/downgrades
- Adds more PurchaserInfo missing properties. `activeEntitlements`, `expirationsForActiveEntitlements`
and `purchaseDatesForActiveEntitlements` have been removed from PurchaserInfo
- `intro_price`, `intro_price_period_number_of_units` and `intro_price_cycles` are a number now or null instead of empty
strings, `intro_price_period_unit` can also be null.
- Added Typescript types (#72)
- New identity changes:
- The .createAlias() method is no longer required, use .identify() instead
- .identify() will create an alias if being called from an anonymous ID generated by RevenueCat
- Added an isAnonymous property to Purchases.sharedInstance
- Improved offline use


## 2.4.1

- Fixes expirationDate in the EntitlementInfo object in iOS
Expand Down
2 changes: 1 addition & 1 deletion VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
| Version | iOS version | Android version | Common files version |
|---------|-------------|-----------------|----------------------|
| 3.0.0 | 3.0.0 | 3.0.2 | 1.0.0 |
| 3.0.0 | 3.0.0 | 3.0.2 | 1.0.1 |
| 2.4.1 | 2.6.0 | 2.4.0 | 0.1.4 |
| 2.4.0 | 2.6.0 | 2.4.0 | 0.1.3 |
| 2.3.4 | 2.5.0 | 2.3.1 | 0.1.2 |
Expand Down
2 changes: 1 addition & 1 deletion example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class App extends React.Component {

async componentDidMount() {
Purchases.setDebugLogsEnabled(true);
Purchases.setup("VtDdmbdWBySmqJeeQUTyrNxETUVkhuaJ", "cesarsandbox1");
Purchases.setup("api_key");
try {
const purchaserInfo = await Purchases.getPurchaserInfo();
if (typeof purchaserInfo.entitlements.active.pro_cat !== "undefined") {
Expand Down

0 comments on commit eac6aac

Please sign in to comment.