From 4c5d70eacd3a811e328d625fbe81dc23ee195b2d Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 18 Oct 2019 07:14:30 +0200 Subject: [PATCH] Revert "fix(barcode-scanner): add missing shouldAutorotate property (#3096)" (#3192) This reverts commit 8ce541ff9ac35130f147a04e858795d9c4bab8c7. --- .../plugins/barcode-scanner/index.ts | 47 +++++++++---------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/src/@ionic-native/plugins/barcode-scanner/index.ts b/src/@ionic-native/plugins/barcode-scanner/index.ts index 761170496..453d0e899 100644 --- a/src/@ionic-native/plugins/barcode-scanner/index.ts +++ b/src/@ionic-native/plugins/barcode-scanner/index.ts @@ -27,11 +27,6 @@ export interface BarcodeScannerOptions { */ disableSuccessBeep?: boolean; - /** - * Disable or enable Autorotate. Supported on IOS only. - */ - shouldAutorotate?: boolean; - /** * Prompt text. Supported on Android only. */ @@ -60,22 +55,22 @@ export interface BarcodeScannerOptions { export interface BarcodeScanResult { format: - | 'QR_CODE' - | 'DATA_MATRIX' - | 'UPC_E' - | 'UPC_A' - | 'EAN_8' - | 'EAN_13' - | 'CODE_128' - | 'CODE_39' - | 'CODE_93' - | 'CODABAR' - | 'ITF' - | 'RSS14' - | 'RSS_EXPANDED' - | 'PDF_417' - | 'AZTEC' - | 'MSI'; + | 'QR_CODE' + | 'DATA_MATRIX' + | 'UPC_E' + | 'UPC_A' + | 'EAN_8' + | 'EAN_13' + | 'CODE_128' + | 'CODE_39' + | 'CODE_93' + | 'CODABAR' + | 'ITF' + | 'RSS14' + | 'RSS_EXPANDED' + | 'PDF_417' + | 'AZTEC' + | 'MSI'; cancelled: boolean; text: string; } @@ -121,11 +116,11 @@ export class BarcodeScanner extends IonicNativePlugin { PHONE_TYPE: string; SMS_TYPE: string; } = { - TEXT_TYPE: 'TEXT_TYPE', - EMAIL_TYPE: 'EMAIL_TYPE', - PHONE_TYPE: 'PHONE_TYPE', - SMS_TYPE: 'SMS_TYPE' - }; + TEXT_TYPE: 'TEXT_TYPE', + EMAIL_TYPE: 'EMAIL_TYPE', + PHONE_TYPE: 'PHONE_TYPE', + SMS_TYPE: 'SMS_TYPE' + }; /** * Open the barcode scanner.