From 1ff54f64da88d12b6f2bd48ef1d6b462fa6e1665 Mon Sep 17 00:00:00 2001 From: Daniel Sogl Date: Mon, 2 Aug 2021 22:46:52 +0200 Subject: [PATCH] fix(purchases): remove duplicated imports --- src/@ionic-native/plugins/purchases/index.ts | 28 +++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/@ionic-native/plugins/purchases/index.ts b/src/@ionic-native/plugins/purchases/index.ts index 615cee62..07dfc528 100644 --- a/src/@ionic-native/plugins/purchases/index.ts +++ b/src/@ionic-native/plugins/purchases/index.ts @@ -422,15 +422,15 @@ export class Purchases extends IonicNativePlugin { } /** - * This function will logIn the current user with an appUserID. Typically this would be used after a log in + * This function will logIn the current user with an appUserID. Typically this would be used after a log in * to identify a user without calling configure. * @param {String} appUserID The appUserID that should be linked to the currently user - * - * @return {Promise} an object that contains the purchaserInfo after logging in, as well as a boolean indicating - * whether the user has just been created for the first time in the RevenueCat backend. + * + * @return {Promise} an object that contains the purchaserInfo after logging in, as well as a boolean indicating + * whether the user has just been created for the first time in the RevenueCat backend. */ @Cordova() - public static logIn(appUserID: string): Promise { + static logIn(appUserID: string): Promise { return; } @@ -440,7 +440,7 @@ export class Purchases extends IonicNativePlugin { * @return {Promise} new purchaser info after resetting. */ @Cordova() - public static logOut(): Promise { + static logOut(): Promise { return; } @@ -515,14 +515,6 @@ export class Purchases extends IonicNativePlugin { @Cordova({ sync: true }) setDebugLogsEnabled(enabled: boolean): void {} - /** - * iOS only. - * @param {boolean} simulatesAskToBuyInSandbox 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 {} - /** * This method will send all the purchases to the RevenueCat backend. Call this when using your own implementation * for subscriptions anytime a sync is needed, like after a successful purchase. @@ -532,14 +524,6 @@ export class Purchases extends IonicNativePlugin { @Cordova({ sync: true }) syncPurchases(): void {} - /** - * iOS only. Presents a code redemption sheet, useful for redeeming offer codes - * Refer to https://docs.revenuecat.com/docs/ios-subscription-offers#offer-codes for more information on how - * to configure and use offer codes. - */ - @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.