Add premier and capIncompat metadata to plugins (#3453)

This commit is contained in:
Matt Netkow 2020-06-11 10:56:34 -05:00 committed by GitHub
parent 1567e8ff2f
commit 46bbf633e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
37 changed files with 46 additions and 0 deletions

View File

@ -15,6 +15,8 @@ interface Plugin {
cordovaPlugin: {
name: string;
};
premierSlug: string;
capacitorIncompatible: boolean;
}
const rootDir = resolve(__dirname, '../..');
@ -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,
@ -66,6 +71,8 @@ function processPlugin(pluginModule): Plugin {
cordovaPlugin: {
name: decorator.plugin,
},
premierSlug,
capacitorIncompatible,
};
}

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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 isnt running in the foreground.
*

View File

@ -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).
*

View File

@ -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.
*

View File

@ -123,6 +123,7 @@ export enum Direction {
/**
* @name Camera
* @premier camera
* @description
* Take a photo or capture video.
*

View File

@ -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.
*

View File

@ -300,6 +300,7 @@ export class ContactFindOptions implements IContactFindOptions {
/**
* @name Contacts
* @premier contacts
* @description
* Access and manage Contacts on the device.
*

View File

@ -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.
*

View File

@ -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.

View File

@ -5,6 +5,7 @@ declare const window: any;
/**
* @name Device
* @premier device
* @description
* Access information about the underlying device and platform.
*

View File

@ -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.
*

View File

@ -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).

View File

@ -18,6 +18,7 @@ export interface NotificationData {
/**
* @name FCM
* @capacitorincompatible true
* @description
* Provides basic functionality for Firebase Cloud Messaging
*

View File

@ -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.

View File

@ -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.
*

View File

@ -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).
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -252,6 +252,7 @@ export class InAppBrowserObject {
/**
* @name In App Browser
* @premier inappbrowser
* @description Launches in app Browser
* @usage
* ```typescript

View File

@ -3,6 +3,7 @@ import { CordovaProperty, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Ionic Webview
* @capacitorincompatible true
* @description
* Access Web View utilities.
*

View File

@ -16,6 +16,8 @@ export enum KeyboardResizeMode {
/**
* @name Keyboard
* @premier keyboard
* @capacitorincompatible true
* @description
* Keyboard plugin for Cordova.
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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.

View File

@ -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

View File

@ -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).
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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.
*

View File

@ -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

View File

@ -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.
*

View File

@ -3,6 +3,7 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
* @name Vibration
* @premier vibration
* @description Vibrates the device
* @usage
* ```typescript