cordova-plugin-buildinfo
Advanced tools
Comparing version 3.0.1 to 4.0.0
{ | ||
"name": "cordova-plugin-buildinfo", | ||
"version": "3.0.1", | ||
"description": "Cordova/Phonegap Build Information Plugin. Get PackageName, Version, Debug and more...", | ||
"version": "4.0.0", | ||
"description": "Cordova/PhoneGap Build Information Plugin. Get PackageName, Version, Debug and more...", | ||
"cordova": { | ||
@@ -10,2 +10,3 @@ "id": "cordova-plugin-buildinfo", | ||
"ios", | ||
"osx", | ||
"windows", | ||
@@ -30,2 +31,3 @@ "browser", | ||
"cordova-windows", | ||
"cordova-osx", | ||
"cordova-browser", | ||
@@ -58,2 +60,11 @@ "cordova-electron" | ||
"4.0.0": { | ||
"cordova": ">=5.4.0", | ||
"cordova-ios": ">=4.0.0", | ||
"cordova-android": ">=5.0.0", | ||
"cordova-windows": ">=4.0.0", | ||
"cordova-osx": ">=4.0.0", | ||
"cordova-browser": ">=6.0.0", | ||
"cordova-electron": ">=1.1.0" | ||
}, | ||
"5.0.0": { | ||
"cordova": ">100" | ||
@@ -60,0 +71,0 @@ } |
@@ -37,2 +37,3 @@ # cordova-plugin-buildinfo | ||
* Windows | ||
* macOS(OS X) | ||
* Browser | ||
@@ -43,16 +44,17 @@ * Electron | ||
* BuildInfo.baseUrl | ||
* BuildInfo.packageName | ||
* BuildInfo.displayName | ||
* BuildInfo.name | ||
* BuildInfo.version | ||
* BuildInfo.versionCode | ||
* BuildInfo.debug | ||
* BuildInfo.buildType | ||
* BuildInfo.flavor | ||
* BuildInfo.buildDate | ||
* BuildInfo.installDate | ||
* BuildInfo.windows | ||
- logo | ||
- version | ||
- [`BuildInfo.baseUrl`](#BuildInfo.baseUrl) | ||
- [`BuildInfo.packageName`](#BuildInfo.packageName) | ||
- [`BuildInfo.basePackageName`](#BuildInfo.basePackageName) | ||
- [`BuildInfo.displayName`](#BuildInfo.displayName) | ||
- [`BuildInfo.name`](#BuildInfo.name) | ||
- [`BuildInfo.version`](#BuildInfo.version) | ||
- [`BuildInfo.versionCode`](#BuildInfo.versionCode) | ||
- [`BuildInfo.debug`](#BuildInfo.debug) | ||
- [`BuildInfo.buildType`](#BuildInfo.buildType) | ||
- [`BuildInfo.flavor`](#BuildInfo.flavor) | ||
- [`BuildInfo.buildDate`](#BuildInfo.buildDate) | ||
- [`BuildInfo.installDate`](#BuildInfo.installDate) | ||
- [`BuildInfo.windows`](#BuildInfo.windows) | ||
- [`logo`](#BuildInfo.windows.logo) | ||
- [`version`](#BuildInfo.windows.version) | ||
@@ -69,2 +71,3 @@ ### BuildInfo.baseUrl | ||
|Windows|Path|String| | ||
|macOS(OS X)|Path|String| | ||
|Browser|Path|String| | ||
@@ -82,2 +85,3 @@ |Electron|Path|String| | ||
|Windows|Identity name|String| | ||
|macOS(OS X)|Bundle Identifier|String| | ||
|Browser|config.xml の widget 要素に設定されている id 属性の値が入ります|String| | ||
@@ -102,2 +106,3 @@ |Electron|config.xml の widget 要素に設定されている id 属性の値が入ります|String| | ||
|Windows|Identity name(BuildInfo.packageNameと同一)|String| | ||
|macOS(OS X)|Bundle Identifier(BuildInfo.packageNameと同一)|String| | ||
|Browser|BuildInfo.packageName と同一|String| | ||
@@ -114,4 +119,5 @@ |Electron|BuildInfo.packageName と同一|String| | ||
|Android|Application Label|String| | ||
|iOS|CFBundleDisplayName|String| | ||
|iOS|CFBundleDisplayName(存在しない場合はCFBundleName)|String| | ||
|Windows|AppxManifest.xmlのVisualElements要素にあるDisplayName属性|String| | ||
|macOS(OS X)|CFBundleDisplayName(存在しない場合はCFBundleName)|String| | ||
|Browser|config.xml の name 要素の short 属性の値が入ります|String| | ||
@@ -130,2 +136,3 @@ |Electron|config.xml の name 要素の short 属性の値が入ります|String| | ||
|Windows|Windows Store display name|String| | ||
|macOS(OS X)|CFBundleName|String| | ||
|Browser|config.xml の name 要素の内容が入ります|String| | ||
@@ -144,2 +151,3 @@ |Electron|config.xml の name 要素の内容が入ります|String| | ||
|Windows|Major.Minor.Build 例) "1.2.3"|String| | ||
|macOS(OS X)|CFBundleShortVersionString|String| | ||
|Browser|config.xml の widget 要素の version 属性の値が入ります|String| | ||
@@ -159,2 +167,3 @@ |Electron|config.xml の widget 要素の version 属性の値が入ります|String| | ||
|Windows|Major.Minor.Build.Revision 例) "1.2.3.4"|String| | ||
|macOS(OS X)|CFBundleVersion|string| | ||
|Browser|BuildInfo.version と同一|String| | ||
@@ -186,2 +195,3 @@ |Electron|BuildInfo.version と同一|String| | ||
|Windows|"release" or "debug"|String| | ||
|macOS(OS X)|empty string|String| | ||
|Browser|empty string|String| | ||
@@ -200,2 +210,3 @@ |Electron|empty string|String| | ||
|Windows|empty string|String| | ||
|macOS(OS X)|empty string|String| | ||
|Browser|empty string|String| | ||
@@ -227,2 +238,3 @@ |Electron|empty string|String| | ||
|Windows|文字列リソースの "/buildinfo/Timestamp" 値を返します|Date| | ||
|macOS(OS X)|メインバンドルのリソースから取得したconfig.xmlの更新日時|Date| | ||
|Browser|```cordova prepare```が実行された日時|Date| | ||
@@ -244,2 +256,3 @@ |Electron|```cordova prepare```が実行された日時|Date| | ||
|Windows|Windows.ApplicatinoModel.Package.currentのinstalledDateプロパティ|Date| | ||
|macOS(OS X)|アプリケーションパッケージのFile Metadataに記録されている kMDItemDateAdded の日時|Date| | ||
|Browser|常に null|null| | ||
@@ -260,2 +273,3 @@ |Electron|常に null|null| | ||
|Windows|Object|Object| | ||
|macOS(OS X)|(未定義)|undefined| | ||
|Browser|(未定義)|undefined| | ||
@@ -262,0 +276,0 @@ |Electron|(未定義)|undefined| |
[![Build Status](https://travis-ci.org/lynrin/cordova-plugin-buildinfo.svg?branch=master)](https://travis-ci.org/lynrin/cordova-plugin-buildinfo) | ||
[![Code Climate](https://codeclimate.com/github/lynrin/cordova-plugin-buildinfo/badges/gpa.svg)](https://codeclimate.com/github/lynrin/cordova-plugin-buildinfo) | ||
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) | ||
[![MIT License](https://img.shields.io/github/license/lynrin/cordova-plugin-buildinfo)](LICENSE) | ||
[![downloads](https://img.shields.io/npm/dm/cordova-plugin-buildinfo)](https://www.npmjs.com/package/cordova-plugin-buildinfo) | ||
# cordova-plugin-buildinfo | ||
@@ -41,2 +43,3 @@ | ||
* Windows | ||
* macOS(OS X) | ||
* Browser | ||
@@ -47,17 +50,17 @@ * Electron | ||
- `BuildInfo.baseUrl` | ||
- `BuildInfo.packageName` | ||
- `BuildInfo.basePackageName` | ||
- `BuildInfo.displayName` | ||
- `BuildInfo.name` | ||
- `BuildInfo.version` | ||
- `BuildInfo.versionCode` | ||
- `BuildInfo.debug` | ||
- `BuildInfo.buildType` | ||
- `BuildInfo.flavor` | ||
- `BuildInfo.buildDate` | ||
- `BuildInfo.installDate` | ||
- `BuildInfo.windows` | ||
- `logo` | ||
- `version` | ||
- [`BuildInfo.baseUrl`](#BuildInfo.baseUrl) | ||
- [`BuildInfo.packageName`](#BuildInfo.packageName) | ||
- [`BuildInfo.basePackageName`](#BuildInfo.basePackageName) | ||
- [`BuildInfo.displayName`](#BuildInfo.displayName) | ||
- [`BuildInfo.name`](#BuildInfo.name) | ||
- [`BuildInfo.version`](#BuildInfo.version) | ||
- [`BuildInfo.versionCode`](#BuildInfo.versionCode) | ||
- [`BuildInfo.debug`](#BuildInfo.debug) | ||
- [`BuildInfo.buildType`](#BuildInfo.buildType) | ||
- [`BuildInfo.flavor`](#BuildInfo.flavor) | ||
- [`BuildInfo.buildDate`](#BuildInfo.buildDate) | ||
- [`BuildInfo.installDate`](#BuildInfo.installDate) | ||
- [`BuildInfo.windows`](#BuildInfo.windows) | ||
- [`logo`](#BuildInfo.windows.logo) | ||
- [`version`](#BuildInfo.windows.version) | ||
@@ -74,2 +77,3 @@ ### BuildInfo.baseUrl | ||
|Windows|Path|String| | ||
|macOS(OS X)|Path|String| | ||
|Browser|Path|String| | ||
@@ -87,2 +91,3 @@ |Electron|Path|String| | ||
|Windows|Identity name|String| | ||
|macOS(OS X)|Bundle Identifier|String| | ||
|Browser|Get the id attribute of the widget element in config.xml file.|String| | ||
@@ -107,2 +112,3 @@ |Electron|Get the id attribute of the widget element in config.xml file.|String| | ||
|Windows|Identity name(equals BuildInfo.packageName)|String| | ||
|macOS(OS X)|Bundle Identifier(equals BuildInfo.packageName)|String| | ||
|Browser|equals BuildInfo.packageName|String| | ||
@@ -119,4 +125,5 @@ |Electron|equals BuildInfo.packageName|String| | ||
|Android|Application Label|String| | ||
|iOS|CFBundleDisplayName|String| | ||
|iOS|CFBundleDisplayName (CFBundleName if not present)|String| | ||
|Windows|Get the DisplayName attribute of the VisualElements element in AppxManifest.xml file.|String| | ||
|macOS(OS X)|CFBundleDisplayName (CFBundleName if not present)|String| | ||
|Browser|Get the short attribute of the name element in config.xml file.|String| | ||
@@ -134,2 +141,3 @@ |Electron|Get the short attribute of the name element in config.xml file.|String| | ||
|Windows|Windows Store display name|String| | ||
|macOS(OS X)|CFBundleName|String| | ||
|Browser|Get value of the name element in config.xml file.|String| | ||
@@ -148,2 +156,3 @@ |Electron|Get value of the name element in config.xml file.|String| | ||
|Windows|Major.Minor.Build ex) "1.2.3"|String| | ||
|macOS(OS X)|CFBundleShortVersionString|String| | ||
|Browser|Get the version attribute of the widget element in config.xml file.|String| | ||
@@ -162,2 +171,3 @@ |Electron|Get the version attribute of the widget element in config.xml file.|String| | ||
|Windows|Major.Minor.Build.Revision ex) "1.2.3.4"|String| | ||
|macOS(OS X)|CFBundleVersion|String| | ||
|Browser|equals BuildInfo.version|String| | ||
@@ -176,2 +186,3 @@ |Electron|equals BuildInfo.version|String| | ||
|Windows|isDevelopmentMode is true|Boolean| | ||
|macOS(OS X)|defined "DEBUG" is true|Boolean| | ||
|Browser|Always false|Boolean| | ||
@@ -192,2 +203,3 @@ |Electron|True when ```cordova build electron --debug``` is executed with the "--debug" flag.|Boolean| | ||
|Windows|"release" or "debug"|String| | ||
|macOS(OS X)|empty string|String| | ||
|Browser|empty string|String| | ||
@@ -208,2 +220,3 @@ |Electron|empty string|String| | ||
|Windows|empty string|String| | ||
|macOS(OS X)|empty string|String| | ||
|Browser|empty string|String| | ||
@@ -233,2 +246,3 @@ |Electron|empty string|String| | ||
|Windows|Resource value of "/buildinfo/Timestamp" string.|Date| | ||
|macOS(OS X)|Get the modification date and time of the config.xml file acquired from the resource of the main bundle.|Date| | ||
|Browser|The date and time when ```cordova prepare``` was executed.|Date| | ||
@@ -250,2 +264,3 @@ |Electron|The date and time when ```cordova prepare``` was executed.|Date| | ||
|Windows|The installedDate property of Windows.ApplicatinoModel.Package.current|Date| | ||
|macOS(OS X)|Date and time of kMDItemDateAdded recorded in File Metadata of application package.|Date| | ||
|Browser|Not available.|null| | ||
@@ -266,2 +281,3 @@ |Electron|Not available.|null| | ||
|Windows|Object|Object| | ||
|macOS(OS X)|undefined|undefined| | ||
|Browser|undefined|undefined| | ||
@@ -268,0 +284,0 @@ |Electron|undefined|undefined| |
@@ -44,3 +44,3 @@ /* | ||
function _buldinfoCheckCordovaPlatform() { | ||
var allowPlatforms = ['android', 'ios', 'windows', 'browser', 'electron']; | ||
var allowPlatforms = ['android', 'ios', 'windows', 'osx', 'browser', 'electron']; | ||
var platformId = (cordova && cordova.platformId) ? cordova.platformId : null; | ||
@@ -73,3 +73,3 @@ return (-1 !== allowPlatforms.indexOf(platformId)); | ||
// Platform Check | ||
var allowPlatforms = ['android', 'ios', 'windows', 'browser', 'electron']; | ||
var allowPlatforms = ['android', 'ios', 'windows', 'osx', 'browser', 'electron']; | ||
var platformId = (cordova && cordova.platformId) ? cordova.platformId : null; | ||
@@ -76,0 +76,0 @@ if (-1 == allowPlatforms.indexOf(platformId)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76821
21
303