Skip to content

Commit 1ff54f6

Browse files
author
Daniel Sogl
committed
fix(purchases): remove duplicated imports
1 parent 50d9110 commit 1ff54f6

File tree

1 file changed

+6
-22
lines changed
  • src/@ionic-native/plugins/purchases

1 file changed

+6
-22
lines changed

src/@ionic-native/plugins/purchases/index.ts

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -422,15 +422,15 @@ export class Purchases extends IonicNativePlugin {
422422
}
423423

424424
/**
425-
* This function will logIn the current user with an appUserID. Typically this would be used after a log in
425+
* This function will logIn the current user with an appUserID. Typically this would be used after a log in
426426
* to identify a user without calling configure.
427427
* @param {String} appUserID The appUserID that should be linked to the currently user
428-
*
429-
* @return {Promise<LogInResult>} an object that contains the purchaserInfo after logging in, as well as a boolean indicating
430-
* whether the user has just been created for the first time in the RevenueCat backend.
428+
*
429+
* @return {Promise<LogInResult>} an object that contains the purchaserInfo after logging in, as well as a boolean indicating
430+
* whether the user has just been created for the first time in the RevenueCat backend.
431431
*/
432432
@Cordova()
433-
public static logIn(appUserID: string): Promise<LogInResult> {
433+
static logIn(appUserID: string): Promise<LogInResult> {
434434
return;
435435
}
436436

@@ -440,7 +440,7 @@ export class Purchases extends IonicNativePlugin {
440440
* @return {Promise<PurchaserInfo>} new purchaser info after resetting.
441441
*/
442442
@Cordova()
443-
public static logOut(): Promise<PurchaserInfo> {
443+
static logOut(): Promise<PurchaserInfo> {
444444
return;
445445
}
446446

@@ -515,14 +515,6 @@ export class Purchases extends IonicNativePlugin {
515515
@Cordova({ sync: true })
516516
setDebugLogsEnabled(enabled: boolean): void {}
517517

518-
/**
519-
* iOS only.
520-
* @param {boolean} simulatesAskToBuyInSandbox Set this property to true *only* when testing the ask-to-buy / SCA purchases flow.
521-
* More information: http://errors.rev.cat/ask-to-buy
522-
*/
523-
@Cordova({ sync: true })
524-
setSimulatesAskToBuyInSandbox(enabled: boolean): void {}
525-
526518
/**
527519
* This method will send all the purchases to the RevenueCat backend. Call this when using your own implementation
528520
* for subscriptions anytime a sync is needed, like after a successful purchase.
@@ -532,14 +524,6 @@ export class Purchases extends IonicNativePlugin {
532524
@Cordova({ sync: true })
533525
syncPurchases(): void {}
534526

535-
/**
536-
* iOS only. Presents a code redemption sheet, useful for redeeming offer codes
537-
* Refer to https://docs.revenuecat.com/docs/ios-subscription-offers#offer-codes for more information on how
538-
* to configure and use offer codes.
539-
*/
540-
@Cordova({ sync: true })
541-
presentCodeRedemptionSheet(): void {}
542-
543527
/**
544528
* iOS only.
545529
* @param {Boolean} enabled Set this property to true *only* when testing the ask-to-buy / SCA purchases flow.

0 commit comments

Comments
 (0)