Skip to content

Commit

Permalink
Update to 3.0.0 (#23)
Browse files Browse the repository at this point in the history
* Update to 3.0.0

* Remove ignored files
  • Loading branch information
vegaro authored Dec 3, 2019
1 parent 0340158 commit 3d982ff
Show file tree
Hide file tree
Showing 71 changed files with 2,690 additions and 1,370 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.vscode
.vscode
/.idea/
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
## 1.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
- 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

## 0.3.2

- Fixes EntitlementInfo's `expirationDate` in iOS.
Expand Down
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 |
|---------|-------------|-----------------|----------------------|
| 1.0.0 | 3.0.0 | 3.0.2 | 1.0.1 |
| 0.3.2 | 2.6.0 | 2.4.0 | 0.1.4 |
| 0.3.1 | 2.6.0 | 2.4.0 | 0.1.3 |
| 0.3.0 | 2.6.0 | 2.4.0 | 0.1.3 |
Expand Down
11 changes: 11 additions & 0 deletions cordova-plugin-purchases.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/android" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-purchases",
"version": "0.3.2",
"version": "1.0.0",
"description": "Purchases Cordova Plugin",
"cordova": {
"id": "cordova-plugin-purchases",
Expand All @@ -21,8 +21,8 @@
"cordova-android"
],
"scripts": {
"fetch:ios:sdk": "./scripts/download-purchases-framework.sh 2.6.0",
"fetch:ios:common": "./scripts/download-purchases-common.sh 0.1.4",
"fetch:ios:sdk": "./scripts/download-purchases-framework.sh 3.0.0",
"fetch:ios:common": "./scripts/download-purchases-common.sh 1.0.1",
"build": "tsc",
"tslint": "tslint -c tslint.json 'src/plugin/*.ts'",
"test": "jest"
Expand Down
23 changes: 16 additions & 7 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-purchases" version="0.3.2">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-purchases" version="1.0.0">

<dependency id="cordova-annotated-plugin-android" />

Expand All @@ -16,11 +16,10 @@
<param name="android-package" value="com.revenuecat.purchases.PurchasesPlugin" />
</feature>
</config-file>
<framework src="com.revenuecat.purchases:purchases:2.4.0" />
<framework src="com.revenuecat.purchases:purchases:3.0.2" />
<lib-file src="src/android/common-release.aar"/>
<framework src="src/android/common.gradle" custom="true" type="gradleReference"/>
<source-file src="src/android/PurchasesPlugin.java" target-dir="src/com/revenuecat/purchases"/>
<source-file src="src/android/PurchasesPeriod.java" target-dir="src/com/revenuecat/purchases"/>
<source-file src="src/android/PurchasesMath.java" target-dir="src/com/revenuecat/purchases"/>
<source-file src="src/android/Mappers.java" target-dir="src/com/revenuecat/purchases"/>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
Expand All @@ -30,14 +29,24 @@
</config-file>
<header-file src="src/ios/CDVPurchasesPlugin.h" />
<source-file src="src/ios/CDVPurchasesPlugin.m" />
<header-file src="src/ios/Common/RCEntitlement+HybridAdditions.h" />
<source-file src="src/ios/Common/RCEntitlement+HybridAdditions.m" />
<header-file src="src/ios/Common/RCPurchaserInfo+HybridAdditions.h" />
<source-file src="src/ios/Common/RCPurchaserInfo+HybridAdditions.m" />
<header-file src="src/ios/Common/SKProduct+HybridAdditions.h" />
<source-file src="src/ios/Common/SKProduct+HybridAdditions.m" />
<source-file src="src/ios/Common/RCEntitlementInfo+HybridAdditions.h" />
<source-file src="src/ios/Common/RCEntitlementInfo+HybridAdditions.m" />
<source-file src="src/ios/Common/RCEntitlementInfos+HybridAdditions.h" />
<source-file src="src/ios/Common/RCEntitlementInfos+HybridAdditions.m" />
<source-file src="src/ios/Common/RCCommonFunctionality.h" />
<source-file src="src/ios/Common/RCCommonFunctionality.m" />
<source-file src="src/ios/Common/RCErrorContainer.h" />
<source-file src="src/ios/Common/RCErrorContainer.m" />
<source-file src="src/ios/Common/RCOffering+HybridAdditions.h" />
<source-file src="src/ios/Common/RCOffering+HybridAdditions.m" />
<source-file src="src/ios/Common/RCOfferings+HybridAdditions.h" />
<source-file src="src/ios/Common/RCOfferings+HybridAdditions.m" />
<source-file src="src/ios/Common/RCPackage+HybridAdditions.h" />
<source-file src="src/ios/Common/RCPackage+HybridAdditions.m" />
<framework src="src/ios/Purchases.framework" embed="true" custom="true" />
</platform>
</plugin>
53 changes: 0 additions & 53 deletions src/android/Mappers.java

This file was deleted.

39 changes: 0 additions & 39 deletions src/android/PurchasesMath.java

This file was deleted.

107 changes: 0 additions & 107 deletions src/android/PurchasesPeriod.java

This file was deleted.

Loading

0 comments on commit 3d982ff

Please sign in to comment.