Skip to content

Commit

Permalink
Add premier and capIncompat metadata to plugins (#3453)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotNetkow authored Jun 11, 2020
1 parent 1567e8f commit 46bbf63
Show file tree
Hide file tree
Showing 37 changed files with 46 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/docs-json/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ interface Plugin {
cordovaPlugin: {
name: string;
};
premierSlug: string;
capacitorIncompatible: boolean;
}

const rootDir = resolve(__dirname, '../..');
Expand Down Expand Up @@ -55,6 +57,9 @@ function processPlugin(pluginModule): Plugin {
const displayName = getTag(pluginClass, 'name');
const usage = getTag(pluginClass, 'usage');
const description = getTag(pluginClass, 'description');
const premierSlug = getTag(pluginClass, 'premier');
const capIncompat = getTag(pluginClass, 'capacitorincompatible');
const capacitorIncompatible = capIncompat ? true : undefined;
return {
packageName,
displayName,
Expand All @@ -66,6 +71,8 @@ function processPlugin(pluginModule): Plugin {
cordovaPlugin: {
name: decorator.plugin,
},
premierSlug,
capacitorIncompatible,
};
}

Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/admob-pro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export interface AdExtras {
/**
* @paid
* @name AdMob Pro
* @capacitorincompatible true
* @description
* Plugin for Google Ads, including AdMob / DFP (DoubleClick for publisher) and mediations to other Ad networks.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/android-permissions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Android Permissions
* @premier android-permissions
* @description
* This plugin is designed to support Android new permissions checking mechanism.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/app-rate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export interface AppUrls {

/**
* @name App Rate
* @premier app-rate
* @description
* The AppRate plugin makes it easy to prompt the user to rate your app, either now, later, or never.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/app-version/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name App Version
* @premier app-version
* @description
* Reads the version of your app from the target build settings.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/apple-wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface WatchExistData {

/**
* @name Apple Wallet
* @premier apple-payment-pass
* @description
* A Cordova plugin that enables users from Add Payment Cards to their Apple Wallet.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/badge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Badge
* @premier badge
* @description
* The essential purpose of badge numbers is to enable an application to inform its users that it has something for them — for example, unread messages — when the application isn’t running in the foreground.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/braintree/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export interface PaymentUIResult {

/**
* @name Braintree
* @capacitorincompatible true
* @description
* This plugin enables the use of the Braintree Drop-In Payments UI in your Ionic applications on Android and iOS, using the native Drop-In UI for each platform (not the Javascript SDK).
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface NameOrOptions {

/**
* @name Calendar
* @premier calendar
* @description
* This plugin allows you to add events to the Calendar of the mobile device.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/camera/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export enum Direction {

/**
* @name Camera
* @premier camera
* @description
* Take a photo or capture video.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/clipboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Injectable } from '@angular/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Clipboard
* @premier clipboard
* @description
* Clipboard management plugin for Cordova that supports iOS, Android, and Windows Phone 8.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/contacts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ export class ContactFindOptions implements IContactFindOptions {

/**
* @name Contacts
* @premier contacts
* @description
* Access and manage Contacts on the device.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/deeplinks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface DeeplinkOptions {

/**
* @name Deeplinks
* @premier deeplinks
* @description This plugin handles deeplinks on iOS and Android for both custom URL scheme links
* and Universal App Links.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/device-feedback/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface DeviceFeedbackStatus {

/**
* @name Device Feedback
* @premier vibration
* @description
*
* Plugin that lets you provide haptic or acoustic feedback on Android devices.
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/device/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare const window: any;

/**
* @name Device
* @premier device
* @description
* Access information about the underlying device and platform.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/dialogs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface DialogsPromptCallback {

/**
* @name Dialogs
* @premier dialogs
* @description
* This plugin gives you ability to access and customize the device native dialogs.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/email-composer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface EmailComposerOptions {

/**
* @name Email Composer
* @premier email-composer
* @description
*
* Requires Cordova plugin: cordova-plugin-email-composer. For more info, please see the [Email Composer plugin docs](https://github.com/hypery2k/cordova-email-plugin).
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/fcm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface NotificationData {

/**
* @name FCM
* @capacitorincompatible true
* @description
* Provides basic functionality for Firebase Cloud Messaging
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/file-path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ declare const window: any;

/**
* @name File Path
* @premier filesystem
* @description
*
* This plugin allows you to resolve the native filesystem path for Android content URIs and is based on code in the aFileChooser library.
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/file/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ declare const window: Window;

/**
* @name File
* @premier filesystem
* @description
* This plugin implements a File API allowing read/write access to files residing on the device.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/firebase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Observable } from 'rxjs';

/**
* @name Firebase
* @capacitorincompatible true
* @description
* This plugin brings push notifications, analytics, event tracking, crash reporting and more from Google Firebase to your Cordova project! Android and iOS supported (including iOS 10).
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/geolocation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export interface GeolocationOptions {

/**
* @name Geolocation
* @premier geolocation
* @description
* This plugin provides information about the device's location, such as latitude and longitude. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/globalization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface GlobalizationOptions {

/**
* @name Globalization
* @premier globalization
* @description
* This plugin obtains information and performs operations specific to the user's locale, language, and timezone.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/in-app-browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export class InAppBrowserObject {

/**
* @name In App Browser
* @premier inappbrowser
* @description Launches in app Browser
* @usage
* ```typescript
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/ionic-webview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Ionic Webview
* @capacitorincompatible true
* @description
* Access Web View utilities.
*
Expand Down
2 changes: 2 additions & 0 deletions src/@ionic-native/plugins/keyboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export enum KeyboardResizeMode {

/**
* @name Keyboard
* @premier keyboard
* @capacitorincompatible true
* @description
* Keyboard plugin for Cordova.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/media-capture/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export interface ConfigurationData {

/**
* @name Media Capture
* @premier media-capture
* @description
* This plugin provides access to the device's audio, image, and video capture capabilities.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/media/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ export type MediaErrorCallback = (error: MediaError) => void;

/**
* @name Media
* @premier media
* @description
* This plugin provides the ability to record and play back audio files on a device.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/music-controls/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface MusicControlsOptions {

/**
* @name Music Controls
* @capacitorincompatible true
* @description
* Music controls for Cordova applications.
* Display a 'media' notification with play/pause, previous, next buttons, allowing the user to control the play.
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/native-storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Native Storage
* @premier nativestorage
* @description Native storage of variables in Android and iOS
*
* @usage
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/network/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum Connection {

/**
* @name Network
* @premier network-information
* @description
* Requires Cordova plugin: cordova-plugin-network-information. For more info, please see the [Network plugin docs](https://github.com/apache/cordova-plugin-network-information).
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/qr-scanner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface QRScannerStatus {

/**
* @name QR Scanner
* @capacitorincompatible true
* @description
* A fast, energy efficient, highly-configurable QR code scanner for Cordova apps.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/screen-orientation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Observable } from 'rxjs';

/**
* @name Screen Orientation
* @premier screen-orientation
* @description
* Cordova plugin to set/lock the screen orientation in a common way.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/social-sharing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Social Sharing
* @premier social-sharing
* @description
* Share text, files, images, and links via social networks, sms, and email.
*
Expand Down
2 changes: 2 additions & 0 deletions src/@ionic-native/plugins/splash-screen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Splash Screen
* @premier splashscreen
* @capacitorincompatible true
* @description This plugin displays and hides a splash screen during application launch. The methods below allows showing and hiding the splashscreen after the app has loaded.
* @usage
* ```typescript
Expand Down
2 changes: 2 additions & 0 deletions src/@ionic-native/plugins/status-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Cordova, CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-nati

/**
* @name Status Bar
* @premier statusbar
* @capacitorincompatible true
* @description
* Manage the appearance of the native status bar.
*
Expand Down
1 change: 1 addition & 0 deletions src/@ionic-native/plugins/vibration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';

/**
* @name Vibration
* @premier vibration
* @description Vibrates the device
* @usage
* ```typescript
Expand Down

0 comments on commit 46bbf63

Please sign in to comment.