Socket
Socket
Sign inDemoInstall

cordova-plugin-buildinfo

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

2

package.json
{
"name": "cordova-plugin-buildinfo",
"version": "1.0.0",
"version": "1.1.0",
"description": "Cordova/Phonegap Build Information Plugin. Get PackageName, Version, Debug and more...",

@@ -5,0 +5,0 @@ "cordova": {

@@ -0,1 +1,5 @@

[![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)
# cordova-plugin-buildinfo

@@ -11,10 +15,11 @@

function onDeviceReady() {
console.log('BuildInfo.packageName=' + BuildInfo.packageName);
console.log('BuildInfo.displayName=' + BuildInfo.displayName);
console.log('BuildInfo.name =' + BuildInfo.name);
console.log('BuildInfo.version =' + BuildInfo.version);
console.log('BuildInfo.versionCode=' + BuildInfo.versionCode);
console.log('BuildInfo.debug =' + BuildInfo.debug);
console.log('BuildInfo.buildType =' + BuildInfo.buildType);
console.log('BuildInfo.flavor =' + BuildInfo.flavor);
console.log('BuildInfo.packageName =' + BuildInfo.packageName);
console.log('BuildInfo.basePackageName=' + BuildInfo.basePackageName);
console.log('BuildInfo.displayName =' + BuildInfo.displayName);
console.log('BuildInfo.name =' + BuildInfo.name);
console.log('BuildInfo.version =' + BuildInfo.version);
console.log('BuildInfo.versionCode =' + BuildInfo.versionCode);
console.log('BuildInfo.debug =' + BuildInfo.debug);
console.log('BuildInfo.buildType =' + BuildInfo.buildType);
console.log('BuildInfo.flavor =' + BuildInfo.flavor);
}

@@ -36,10 +41,11 @@ ```

* BuildInfo.packageName
* BuildInfo.displayName
* BuildInfo.name
* BuildInfo.version
* BuildInfo.versionCode
* BuildInfo.debug
* BuildInfo.buildType
* BuildInfo.flavor
- `BuildInfo.packageName`
- `BuildInfo.basePackageName`
- `BuildInfo.displayName`
- `BuildInfo.name`
- `BuildInfo.version`
- `BuildInfo.versionCode`
- `BuildInfo.debug`
- `BuildInfo.buildType`
- `BuildInfo.flavor`

@@ -56,2 +62,18 @@ ### BuildInfo.packageName

### BuildInfo.basePackageName
Android only.
Get the packageName of BuildConfig class.
If you use the configure of "build types" or "product flavors", because you can specify a different package name is the id attribute of the widget element of config.xml, is the property to get the package name that BuildConfig class belongs.
(ought be the same as the id attribute of the widget element of config.xml)
|Platform|Value|Type|
|--------|-----|----|
|Android|Package name of BuildConfig class|String|
|iOS|Bundle Identifier(equals BuildInfo.packageName)|String|
### BuildInfo.displayName

@@ -72,3 +94,3 @@

|--------|-----|----|
|Android|Application Label(equals BuildInfo.displayName)|String|
|Android|Application Label(equal BuildInfo.displayName)|String|
|iOS|CFBundleName|String|

@@ -75,0 +97,0 @@

@@ -12,2 +12,7 @@ exports.defineAutoTests = function () {

it ('should contain a Base PackageName specification that is a string', function () {
expect(window.BuildInfo.basePackageName).toBeDefined();
expect((String(window.BuildInfo.basePackageName)).length > 0).toBe(true);
});
it ('should contain a DisplayName specification that is a string', function () {

@@ -14,0 +19,0 @@ expect(window.BuildInfo.displayName).toBeDefined();

@@ -30,2 +30,3 @@ /*

packageName: '',
basePackageName: '',
displayName: '',

@@ -62,2 +63,6 @@ name: '',

if ('undefined' !== typeof res.basePackageName) {
module.exports.basePackageName = res.basePackageName;
}
if ('undefined' !== typeof res.displayName) {

@@ -64,0 +69,0 @@ module.exports.displayName = res.displayName;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc