@capacitor/background-runner 1.0.1-dev-20230721T103527.0 → 1.0.1-dev-20230721T105145.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/background-runner",
3
- "version": "1.0.1-dev-20230721T103527.0",
3
+ "version": "1.0.1-dev-20230721T105145.0",
4
4
  "description": "Capacitor Background Runner",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -11,6 +11,7 @@
11
11
  "android/build.gradle",
12
12
  "dist/",
13
13
  "ios/Plugin/",
14
+ "scripts/install_libs.js",
14
15
  "CapacitorBackgroundRunner.podspec"
15
16
  ],
16
17
  "author": "Ionic Team",
@@ -78,5 +79,5 @@
78
79
  "src": "android"
79
80
  }
80
81
  },
81
- "gitHead": "3d3d641181730bd72d0fedef5126d14f6e73300e"
82
+ "gitHead": "93219258eb254c84e386f0efaa6327f4be0ef3f8"
82
83
  }
@@ -0,0 +1,23 @@
1
+ const fs = require("fs");
2
+ const path = require('path');
3
+
4
+ console.log(process.env.INIT_CWD);
5
+
6
+ let workingDir = process.env.INIT_CWD;
7
+ if (!workingDir) {
8
+ workingDir = ".";
9
+ }
10
+
11
+ if (!fs.existsSync(path.join(workingDir, "android"))) {
12
+ throw new Error("cannot install android-js-engine library, not in correct parent directory.");
13
+ }
14
+
15
+ const releaseAARPath = path.join("android/src/main/libs/android-js-engine-release.aar");
16
+
17
+ const fullPath = path.join(workingDir, "android/app/libs")
18
+ fs.mkdirSync(fullPath);
19
+ fs.copyFileSync(releaseAARPath, path.join(fullPath, "android-js-engine-release.aar"))
20
+
21
+ console.log(`copied android-js-engine-release.aar to ${fullPath}`)
22
+
23
+