@capacitor/background-runner
Advanced tools
Comparing version 1.0.1-dev-20230721T105145.0 to 1.0.1-dev-20230725T154856.0
{ | ||
"name": "@capacitor/background-runner", | ||
"version": "1.0.1-dev-20230721T105145.0", | ||
"version": "1.0.1-dev-20230725T154856.0", | ||
"description": "Capacitor Background Runner", | ||
@@ -82,3 +82,3 @@ "main": "dist/plugin.cjs.js", | ||
}, | ||
"gitHead": "93219258eb254c84e386f0efaa6327f4be0ef3f8" | ||
"gitHead": "75b4ed0cdb44c4caa506c9969b7fdbbe2e122779" | ||
} |
@@ -1,23 +0,30 @@ | ||
const fs = require("fs"); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
console.log(process.env.INIT_CWD); | ||
let workingDir = process.env.INIT_CWD; | ||
if (!workingDir) { | ||
workingDir = "."; | ||
workingDir = '.'; | ||
} | ||
if (!fs.existsSync(path.join(workingDir, "android"))) { | ||
throw new Error("cannot install android-js-engine library, not in correct parent directory."); | ||
if (!fs.existsSync(path.join(workingDir, 'android'))) { | ||
console.warn( | ||
'cannot install android-js-engine library: @capacitor/android not installed, or in wrong parent directory.', | ||
); | ||
return; | ||
} | ||
const releaseAARPath = path.join("android/src/main/libs/android-js-engine-release.aar"); | ||
const releaseAARPath = path.join( | ||
'android/src/main/libs/android-js-engine-release.aar', | ||
); | ||
const fullPath = path.join(workingDir, "android/app/libs") | ||
fs.mkdirSync(fullPath); | ||
fs.copyFileSync(releaseAARPath, path.join(fullPath, "android-js-engine-release.aar")) | ||
const fullPath = path.join(workingDir, 'android/app/libs'); | ||
if (!fs.existsSync(fullPath)) { | ||
fs.mkdirSync(fullPath); | ||
} | ||
console.log(`copied android-js-engine-release.aar to ${fullPath}`) | ||
fs.copyFileSync( | ||
releaseAARPath, | ||
path.join(fullPath, 'android-js-engine-release.aar'), | ||
); | ||
console.log(`copied android-js-engine-release.aar to ${fullPath}`); |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2411658
457
2
1