@capgo/capacitor-env 8.1.6 → 8.1.8
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.swift
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import PackageDescription
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
|
-
name: "
|
|
5
|
+
name: "CapgoCapacitorEnv",
|
|
6
6
|
platforms: [.iOS(.v15)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
|
-
name: "
|
|
9
|
+
name: "CapgoCapacitorEnv",
|
|
10
10
|
targets: ["EnvPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
|
|
14
14
|
],
|
|
15
15
|
targets: [
|
|
16
16
|
.target(
|
package/README.md
CHANGED
|
@@ -12,6 +12,17 @@ Set Env var in Capacitor config and read them at runtime, This plugin is helpful
|
|
|
12
12
|
|
|
13
13
|
The most complete doc is available here: https://capgo.app/docs/plugins/env/
|
|
14
14
|
|
|
15
|
+
## Compatibility
|
|
16
|
+
|
|
17
|
+
| Plugin version | Capacitor compatibility | Maintained |
|
|
18
|
+
| -------------- | ----------------------- | ---------- |
|
|
19
|
+
| v8.\*.\* | v8.\*.\* | ✅ |
|
|
20
|
+
| v7.\*.\* | v7.\*.\* | On demand |
|
|
21
|
+
| v6.\*.\* | v6.\*.\* | ❌ |
|
|
22
|
+
| v5.\*.\* | v5.\*.\* | ❌ |
|
|
23
|
+
|
|
24
|
+
> **Note:** The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.
|
|
25
|
+
|
|
15
26
|
## Install
|
|
16
27
|
|
|
17
28
|
```bash
|
|
@@ -9,14 +9,14 @@ import com.getcapacitor.annotation.CapacitorPlugin;
|
|
|
9
9
|
@CapacitorPlugin(name = "Env")
|
|
10
10
|
public class EnvPlugin extends Plugin {
|
|
11
11
|
|
|
12
|
-
private final String pluginVersion = "8.1.
|
|
12
|
+
private final String pluginVersion = "8.1.8";
|
|
13
13
|
|
|
14
14
|
@PluginMethod
|
|
15
15
|
public void getKey(PluginCall call) {
|
|
16
16
|
String key = call.getString("key");
|
|
17
17
|
|
|
18
18
|
JSObject ret = new JSObject();
|
|
19
|
-
ret.put("value", this.getConfig().getString(
|
|
19
|
+
ret.put("value", this.getConfig().getString(key, ""));
|
|
20
20
|
call.resolve(ret);
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -7,7 +7,7 @@ import Capacitor
|
|
|
7
7
|
*/
|
|
8
8
|
@objc(EnvPlugin)
|
|
9
9
|
public class EnvPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
10
|
-
private let pluginVersion: String = "8.1.
|
|
10
|
+
private let pluginVersion: String = "8.1.8"
|
|
11
11
|
public let identifier = "EnvPlugin"
|
|
12
12
|
public let jsName = "Env"
|
|
13
13
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-env",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.8",
|
|
4
4
|
"description": "Set Env var in Capacitor config and read them at runtime",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
39
|
-
"verify:ios": "xcodebuild -scheme
|
|
39
|
+
"verify:ios": "xcodebuild -scheme CapgoCapacitorEnv -destination generic/platform=iOS",
|
|
40
40
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
41
41
|
"verify:web": "npm run build",
|
|
42
42
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|