From 5d71d0d2bbbbf8696a0d42e1e8b99fc1ee63ce16 Mon Sep 17 00:00:00 2001 From: aboedo Date: Mon, 5 Apr 2021 18:28:23 -0300 Subject: [PATCH] feat(purchases): bump cordova-plugin-purchases from 2.0.0 to 2.1.1 (#3639) * feat(purchases): bump cordova-plugin-purchases from 2.0.0 to 2.1.0 * bump version number to 2.1.1 --- src/@ionic-native/plugins/purchases/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/purchases/index.ts b/src/@ionic-native/plugins/purchases/index.ts index a12ab37484..516557ed64 100644 --- a/src/@ionic-native/plugins/purchases/index.ts +++ b/src/@ionic-native/plugins/purchases/index.ts @@ -207,7 +207,7 @@ export enum INTRO_ELIGIBILITY_STATUS { */ @Plugin({ pluginName: 'Purchases', - plugin: 'cordova-plugin-purchases@2.0.0', + plugin: 'cordova-plugin-purchases@2.1.1', pluginRef: 'Purchases', // the variable reference to call the plugin, example: navigator.geolocation repo: 'https://github.com/RevenueCat/cordova-plugin-purchases', // the github repository URL for the plugin platforms: ['Android', 'iOS'], // Array of platforms supported, example: ['Android', 'iOS'] @@ -467,6 +467,14 @@ export class Purchases extends IonicNativePlugin { @Cordova({ sync: true }) presentCodeRedemptionSheet(): void {} + /** + * iOS only. + * @param {Boolean} enabled Set this property to true *only* when testing the ask-to-buy / SCA purchases flow. + * More information: http://errors.rev.cat/ask-to-buy + */ + @Cordova({ sync: true }) + setSimulatesAskToBuyInSandbox(enabled: boolean): void {} + /** * Enable automatic collection of Apple Search Ads attribution. Disabled by default. * @param {Boolean} enabled Enable or not automatic collection