Socket
Socket
Sign inDemoInstall

@capacitor/background-runner

Package Overview
Dependencies
Maintainers
7
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/background-runner - npm Package Compare versions

Comparing version 1.0.1-dev-20230721T105145.0 to 1.0.1-dev-20230725T154856.0

4

package.json
{
"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

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