import {Plugin, Cordova} from './plugin'; /** * @name AppVersion * @description * Reads the version of your app from the target build settings. * * Requires Cordova plugin: `cordova-plugin-app-version`. For more info, please see the [Cordova App Version docs](https://github.com/whiteoctober/cordova-plugin-app-version). * * @usage * ```js * AppVersion.getAppName(); * AppVersion.getPackageName(); * AppVersion.getVersionCode(); * AppVersion.getVersionNumber(); * ``` */ @Plugin({ plugin: 'cordova-plugin-app-version', pluginRef: 'cordova.getAppVersion', repo: 'https://github.com/whiteoctober/cordova-plugin-app-version' }) export class AppVersion { /** * Returns the name of the app * @returns {Promise} */ @Cordova() static getAppName(): Promise { return } /** * Returns the package name of the app * @returns {Promise} */ @Cordova() static getPackageName(): Promise { return } /** * Returns the build identifier of the app * @returns {Promise} */ @Cordova() static getVersionCode(): Promise { return } /** * Returns the version of the app * @returns {Promise} */ @Cordova() static getVersionNumber(): Promise { return } }