Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move and rename to new RC official plugin #96

Merged
merged 17 commits into from Aug 31, 2023
Merged

Conversation

tonidero
Copy link
Contributor

This PR brings the changes to the plugin performed by RC from an internal repo to the public repo. There will be a new major release v6.0.0 soon with all the changes. Some of the major changes:

  • NPM package has been renamed, from @capgo/capacitor-purchases to @revenuecat/purchases-capacitor.
  • Plugin has been renamed from CapacitorPurchases to Purchases.
  • Updated to support Google Play's BC5 data model.
  • Changes to match the API to the latest RevenueCat standard. For a full list of the API changes, see migration/v6-MIGRATION.md.

VERSIONS.md Outdated Show resolved Hide resolved
@tonidero tonidero force-pushed the revenuecat-base-branch branch 6 times, most recently from b44f47f to b1baae5 Compare August 28, 2023 12:08
@tonidero tonidero marked this pull request as ready for review August 28, 2023 13:53
@tonidero tonidero requested a review from a team August 28, 2023 13:54
android/build.gradle Outdated Show resolved Hide resolved
example/purchase-tester/capacitor.config.ts Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this file be removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it was generated when creating the ionic project... I don't think we will really use cypress for now, so we could probably remove it entirely, but will do that in a separate PR. Removing this file would also require removing other files so I prefer not to do it here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok! I was asking in case you had commented it out yourself

example/purchase-tester/src/pages/Home.css Outdated Show resolved Hide resolved
@tonidero tonidero merged commit d6cd0f4 into main Aug 31, 2023
4 checks passed
@tonidero tonidero deleted the revenuecat-base-branch branch August 31, 2023 09:17
@@ -60,7 +60,7 @@ public class PurchasesPlugin: CAPPlugin, PurchasesDelegate {
call.keepAlive = true
self.customerInfoUpdateListeners.append(call.callbackId)
if let lastReceivedCustomerInfo {
call.resolve(lastReceivedCustomerInfo.dictionary)
call.resolve(CommonFunctionality.encode(customerInfo: lastReceivedCustomerInfo))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants