capacitor-launchdarkly 0.0.0-stage → 0.1.1
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/CapacitorLaunchdarkly.podspec +20 -0
- package/LICENSE +21 -0
- package/Package.swift +32 -0
- package/README.md +747 -2
- package/android/build.gradle +68 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/Json.kt +67 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/LaunchDarklyClient.kt +250 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/LaunchDarklyPlugin.kt +148 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/LdConfigFactory.kt +34 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/StartOptions.kt +76 -0
- package/android/src/main/kotlin/io/github/maximbelov/launchdarkly/StoredContext.kt +47 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +1174 -0
- package/dist/esm/definitions.d.ts +520 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +46 -0
- package/dist/esm/web.js +204 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +221 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +224 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/LaunchDarklyPlugin/ConfigFactory.swift +29 -0
- package/ios/Sources/LaunchDarklyPlugin/JSONValues.swift +68 -0
- package/ios/Sources/LaunchDarklyPlugin/LaunchDarklyClient.swift +165 -0
- package/ios/Sources/LaunchDarklyPlugin/LaunchDarklyPlugin.swift +169 -0
- package/ios/Sources/LaunchDarklyPlugin/PrivacyInfo.xcprivacy +23 -0
- package/ios/Sources/LaunchDarklyPlugin/StartOptions.swift +79 -0
- package/ios/Sources/LaunchDarklyPlugin/StoredContext.swift +43 -0
- package/ios/Tests/LaunchDarklyPluginTests/BillingSafetyTests.swift +53 -0
- package/ios/Tests/LaunchDarklyPluginTests/JSONValuesTests.swift +67 -0
- package/ios/Tests/LaunchDarklyPluginTests/LaunchDarklyPluginTests.swift +37 -0
- package/ios/Tests/LaunchDarklyPluginTests/PluginConfigurationTests.swift +52 -0
- package/ios/Tests/LaunchDarklyPluginTests/StartContextTests.swift +36 -0
- package/package.json +105 -4
package/package.json
CHANGED
|
@@ -1,6 +1,107 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-launchdarkly",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "LaunchDarkly feature flags for Capacitor apps through the native iOS and Android client SDKs, started natively at app launch",
|
|
5
|
+
"main": "dist/plugin.cjs.js",
|
|
6
|
+
"module": "dist/esm/index.js",
|
|
7
|
+
"types": "dist/esm/index.d.ts",
|
|
8
|
+
"unpkg": "dist/plugin.js",
|
|
9
|
+
"files": [
|
|
10
|
+
"android/src/main/",
|
|
11
|
+
"android/build.gradle",
|
|
12
|
+
"dist/",
|
|
13
|
+
"ios/Sources",
|
|
14
|
+
"ios/Tests",
|
|
15
|
+
"Package.swift",
|
|
16
|
+
"CapacitorLaunchdarkly.podspec",
|
|
17
|
+
"LICENSE"
|
|
18
|
+
],
|
|
19
|
+
"author": "Maxim Belov",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/MaximBelov/capacitor-launchdarkly.git"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/MaximBelov/capacitor-launchdarkly/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/MaximBelov/capacitor-launchdarkly#readme",
|
|
29
|
+
"keywords": [
|
|
30
|
+
"capacitor",
|
|
31
|
+
"plugin",
|
|
32
|
+
"native",
|
|
33
|
+
"launchdarkly",
|
|
34
|
+
"feature flags",
|
|
35
|
+
"feature toggles",
|
|
36
|
+
"flags",
|
|
37
|
+
"ios",
|
|
38
|
+
"android"
|
|
39
|
+
],
|
|
40
|
+
"scripts": {
|
|
41
|
+
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
42
|
+
"verify:ios": "xcodebuild build -scheme CapacitorLaunchdarkly -destination generic/platform=iOS -derivedDataPath build/ios-device",
|
|
43
|
+
"verify:android": "cd android && ./gradlew clean build test",
|
|
44
|
+
"verify:web": "npm run build",
|
|
45
|
+
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
46
|
+
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
47
|
+
"eslint": "eslint",
|
|
48
|
+
"prettier": "prettier \"**/*.{css,html,ts,js,mjs,java}\" --plugin=prettier-plugin-java",
|
|
49
|
+
"swiftlint": "node-swiftlint",
|
|
50
|
+
"docgen": "docgen --api LaunchDarklyPlugin --output-readme README.md --output-json dist/docs.json",
|
|
51
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
52
|
+
"clean": "rimraf ./dist",
|
|
53
|
+
"watch": "tsc --watch",
|
|
54
|
+
"prepublishOnly": "npm run build",
|
|
55
|
+
"test": "npm run test:unit",
|
|
56
|
+
"test:unit": "vitest run",
|
|
57
|
+
"test:unit:coverage": "vitest run --coverage",
|
|
58
|
+
"test:parity": "node --test test/unit/platform-parity.test.mjs",
|
|
59
|
+
"test:android": "cd android && ./gradlew test",
|
|
60
|
+
"test:ios": "./scripts/test-ios.sh",
|
|
61
|
+
"example:install": "cd example-app && npm install --no-audit --no-fund",
|
|
62
|
+
"example:android:build": "npm run example:install && cd example-app && npm run build && npx cap sync android && cd android && ./gradlew assembleDebug",
|
|
63
|
+
"example:ios:build": "npm run example:install && cd example-app && npm run build && npx cap sync ios && xcodebuild build -project ios/App/App.xcodeproj -scheme App -destination generic/platform=iOS\\ Simulator -derivedDataPath ../build/example-ios CODE_SIGNING_ALLOWED=NO"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@capacitor/android": "^8.6.2",
|
|
67
|
+
"@capacitor/cli": "^8.6.2",
|
|
68
|
+
"@capacitor/core": "^8.6.2",
|
|
69
|
+
"@capacitor/docgen": "^0.3.1",
|
|
70
|
+
"@capacitor/ios": "^8.6.2",
|
|
71
|
+
"@ionic/eslint-config": "^0.5.0",
|
|
72
|
+
"@ionic/prettier-config": "^4.0.0",
|
|
73
|
+
"@ionic/swiftlint-config": "^2.0.0",
|
|
74
|
+
"@launchdarkly/js-client-sdk": "^4.14.2",
|
|
75
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
76
|
+
"eslint": "^10.15.0",
|
|
77
|
+
"prettier": "^3.10.1",
|
|
78
|
+
"prettier-plugin-java": "^2.12.0",
|
|
79
|
+
"rimraf": "^6.1.4",
|
|
80
|
+
"rollup": "^4.68.3",
|
|
81
|
+
"swiftlint": "^2.0.0",
|
|
82
|
+
"typescript": "^6.0.3",
|
|
83
|
+
"vitest": "^5.1.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"@capacitor/core": ">=8.0.0",
|
|
87
|
+
"@launchdarkly/js-client-sdk": ">=4.0.0"
|
|
88
|
+
},
|
|
89
|
+
"prettier": "@ionic/prettier-config",
|
|
90
|
+
"swiftlint": "@ionic/swiftlint-config",
|
|
91
|
+
"capacitor": {
|
|
92
|
+
"ios": {
|
|
93
|
+
"src": "ios"
|
|
94
|
+
},
|
|
95
|
+
"android": {
|
|
96
|
+
"src": "android"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"engines": {
|
|
100
|
+
"node": ">=20"
|
|
101
|
+
},
|
|
102
|
+
"peerDependenciesMeta": {
|
|
103
|
+
"@launchdarkly/js-client-sdk": {
|
|
104
|
+
"optional": true
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|