From 54ac2bfdf5da9aefa719ca9626c92deebca4f36f Mon Sep 17 00:00:00 2001 From: Szymon Stasik Date: Mon, 1 Jul 2019 19:18:11 +0200 Subject: [PATCH] feat(diagnostic): add DENIED_ONCE introduced by diagnostic v5 (#3071) cordova.plugins.diagnostic@5.0.0 introduced breaking change moving from `DENIED` to `DENIED_ONCE` and make the statuses semantically equal for iOS and Android. For backward compatibility `DENIED` is untouched in this PR but marked as deprecated --- src/@ionic-native/plugins/diagnostic/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@ionic-native/plugins/diagnostic/index.ts b/src/@ionic-native/plugins/diagnostic/index.ts index 99d708625..acae41b6f 100644 --- a/src/@ionic-native/plugins/diagnostic/index.ts +++ b/src/@ionic-native/plugins/diagnostic/index.ts @@ -73,7 +73,11 @@ export class Diagnostic extends IonicNativePlugin { @CordovaProperty() permissionStatus: { GRANTED: string; + /** + * @deprecated cordova.plugins.diagnostic@5.0.0 uses DENIED_ONCE to unify DENIED* statuses across iOS/Android + */ DENIED: string; + DENIED_ONCE: string; NOT_REQUESTED: string; DENIED_ALWAYS: string; RESTRICTED: string;