scandit-cordova-datacapture-core
Advanced tools
Comparing version 6.2.0 to 6.2.1
{ | ||
"name": "scandit-cordova-datacapture-core", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"description": "Scandit Data Capture SDK for Cordova", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
const fs = require('fs') | ||
const rmDirRecursive = (dirPath) => { | ||
try { | ||
const files = fs.readdirSync(dirPath) | ||
if (files.length > 0) { | ||
for (var i = 0; i < files.length; i++) { | ||
const filePath = dirPath + '/' + files[i] | ||
if (fs.statSync(filePath).isFile()) { | ||
fs.unlinkSync(filePath) | ||
} else { | ||
rmDirRecursive(filePath) | ||
} | ||
if (!fs.existsSync(dirPath)) { | ||
console.log(`${dirPath} does not exist, no need to remove it`); | ||
return; | ||
} | ||
const files = fs.readdirSync(dirPath) | ||
if (files.length > 0) { | ||
for (var i = 0; i < files.length; i++) { | ||
const filePath = dirPath + '/' + files[i] | ||
if (fs.statSync(filePath).isFile()) { | ||
fs.unlinkSync(filePath) | ||
} else { | ||
rmDirRecursive(filePath) | ||
} | ||
} | ||
fs.rmdirSync(dirPath) | ||
} catch (e) { | ||
console.log(`${dirPath} does not exist`) | ||
} | ||
fs.rmdirSync(dirPath) | ||
} | ||
module.exports = rmDirRecursive |
@@ -37,2 +37,3 @@ var xcode = require('xcode'); | ||
if (err) { | ||
console.log('Something went wrong while adding script to strip frameworks.'); | ||
reject(err); | ||
@@ -43,2 +44,3 @@ } | ||
fs.writeFileSync(projectPath, myProj.writeSync()); | ||
console.log('Script to strip frameworks added.'); | ||
resolve(); | ||
@@ -45,0 +47,0 @@ }) |
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
213726
2232