Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@holisticon/nativescript-buildhelper

Package Overview
Dependencies
Maintainers
2
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@holisticon/nativescript-buildhelper - npm Package Compare versions

Comparing version 0.1.0-develop-7 to 0.1.0-develop-8

9

lib/buildnumbering.js

@@ -13,3 +13,3 @@ #!/usr/bin/env node

var debugLog = util.debuglog(DEBUG_ENV);
var xmlParser = new xml2js.Parser(), builder = new xml2js.Builder(), manifestPath = 'app/App_Resources/Android/AndroidManifest.xml', plistPath = 'app/App_Resources/iOS/Info.plist', buildNo = ARGS[0] || process.env['BUILD_NUMBER'] || 1, packageJSON = require(path.resolve('.', 'package.json'));
var xmlParser = new xml2js.Parser(), builder = new xml2js.Builder(), manifestPath = 'app/App_Resources/Android/AndroidManifest.xml', plistPath = 'app/App_Resources/iOS/Info.plist', buildNo = ARGS[0] || process.env['BUILD_NUMBER'] || 1, packageJSON = require(path.resolve('.', 'package.json')), version = packageJSON.version;
console.log('Updating with build number: ' + buildNo);

@@ -21,3 +21,3 @@ fs.stat(manifestPath, function (error) {

xmlParser.parseString(manifestXML_1, function (err, manifestData) {
var appId = packageJSON.nativescript.id, version = packageJSON.version;
var appId = packageJSON.nativescript.id;
manifestData.manifest.$['android:versionCode'] = buildNo;

@@ -44,2 +44,7 @@ manifestData.manifest.$['android:versionName'] = version;

});
child_process_1.exec('/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ' + version + '" ' + path.resolve('.', plistPath), function (err) {
if (err) {
throw err;
}
});
}

@@ -46,0 +51,0 @@ else {

{
"name": "@holisticon/nativescript-buildhelper",
"version": "0.1.0-develop-7",
"version": "0.1.0-develop-8",
"description": "Basic NPM package for helping on automate releasing of NativeScript Apps",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc