fix(purchases): remove duplicated imports

This commit is contained in:
Daniel Sogl 2021-08-02 22:46:52 +02:00
parent 50d91103cc
commit 1ff54f64da

View File

@ -430,7 +430,7 @@ export class Purchases extends IonicNativePlugin {
* whether the user has just been created for the first time in the RevenueCat backend.
*/
@Cordova()
public static logIn(appUserID: string): Promise<LogInResult> {
static logIn(appUserID: string): Promise<LogInResult> {
return;
}
@ -440,7 +440,7 @@ export class Purchases extends IonicNativePlugin {
* @return {Promise<PurchaserInfo>} new purchaser info after resetting.
*/
@Cordova()
public static logOut(): Promise<PurchaserInfo> {
static logOut(): Promise<PurchaserInfo> {
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.