@capgo/capacitor-jw-player 8.0.36 → 8.0.38
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/README.md +14 -0
- package/android/src/main/java/ee/forgr/capacitor_jw_player/JwPlayerPlugin.java +1 -1
- package/android/src/main/res/values/colors.xml +1 -1
- package/android/src/main/res/values/styles.xml +1 -1
- package/ios/Sources/JwPlayerPlugin/JwPlayerPlugin.swift +1 -1
- package/package.json +6 -3
- package/scripts/configure-ios-dsyms.js +18 -3
package/README.md
CHANGED
|
@@ -37,6 +37,20 @@ The most complete doc is available here: https://capgo.app/docs/plugins/jw-playe
|
|
|
37
37
|
|
|
38
38
|
## Install
|
|
39
39
|
|
|
40
|
+
You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx skills add https://github.com/cap-go/capacitor-skills --skill capacitor-plugins
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Then use the following prompt:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
Use the `capacitor-plugins` skill from `cap-go/capacitor-skills` to install the `@capgo/capacitor-jw-player` plugin in my project.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:
|
|
53
|
+
|
|
40
54
|
```bash
|
|
41
55
|
npm install @capgo/capacitor-jw-player
|
|
42
56
|
npx cap sync
|
|
@@ -22,7 +22,7 @@ import java.util.List;
|
|
|
22
22
|
@CapacitorPlugin(name = "JwPlayer")
|
|
23
23
|
public class JwPlayerPlugin extends Plugin {
|
|
24
24
|
|
|
25
|
-
private final String pluginVersion = "8.0.
|
|
25
|
+
private final String pluginVersion = "8.0.38";
|
|
26
26
|
|
|
27
27
|
private static final String TAG = "JwPlayerPlugin";
|
|
28
28
|
// Static reference to the plugin instance for activity communication
|
|
@@ -16,7 +16,7 @@ protocol CallbackHandler {
|
|
|
16
16
|
|
|
17
17
|
@objc(JwPlayerPlugin)
|
|
18
18
|
public class JwPlayerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
19
|
-
private let pluginVersion: String = "8.0.
|
|
19
|
+
private let pluginVersion: String = "8.0.38"
|
|
20
20
|
// public class JwPlayerPlugin: CAPPlugin, CAPBridgedPlugin, GCKLoggerDelegate {
|
|
21
21
|
public let identifier = "JwPlayerPlugin"
|
|
22
22
|
public let jsName = "JwPlayer"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-jw-player",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.38",
|
|
4
4
|
"description": "Playes videos from jwplayer.com",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -47,8 +47,11 @@
|
|
|
47
47
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
48
48
|
"clean": "rimraf ./dist",
|
|
49
49
|
"watch": "tsc --watch",
|
|
50
|
-
"prepublishOnly": "
|
|
51
|
-
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
|
|
50
|
+
"prepublishOnly": "bun run build",
|
|
51
|
+
"check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
|
|
52
|
+
"example:install": "cd example-app && bun install --frozen-lockfile",
|
|
53
|
+
"example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
|
|
54
|
+
"example:capgo:deploy": "bun run example:build && bun scripts/deploy-example-capgo.mjs"
|
|
52
55
|
},
|
|
53
56
|
"devDependencies": {
|
|
54
57
|
"@capacitor/android": "^8.0.0",
|
|
@@ -184,40 +184,55 @@ function shellScript() {
|
|
|
184
184
|
'copy_to_archive() {',
|
|
185
185
|
' dsym_path="$1"',
|
|
186
186
|
' framework="$2"',
|
|
187
|
+
' copy_failed=0',
|
|
187
188
|
' for archive_dsyms in "${ARCHIVE_DSYMS_PATH:-}" "${ARCHIVE_PATH:-}/dSYMs"; do',
|
|
188
189
|
' case "$archive_dsyms" in',
|
|
189
190
|
' ""|"/dSYMs") continue ;;',
|
|
190
191
|
' esac',
|
|
191
192
|
' mkdir -p "$archive_dsyms"',
|
|
192
193
|
' rm -rf "$archive_dsyms/$framework.framework.dSYM"',
|
|
193
|
-
' cp -R "$dsym_path" "$archive_dsyms/"',
|
|
194
|
+
' if ! cp -R "$dsym_path" "$archive_dsyms/"; then',
|
|
195
|
+
' copy_failed=1',
|
|
196
|
+
' fi',
|
|
194
197
|
' done',
|
|
198
|
+
' return "$copy_failed"',
|
|
195
199
|
'}',
|
|
196
200
|
'',
|
|
197
201
|
'mkdir -p "$DWARF_DSYM_FOLDER_PATH"',
|
|
202
|
+
'missing_dsyms=0',
|
|
198
203
|
'',
|
|
199
204
|
`for framework in ${frameworkNames.join(' ')}; do`,
|
|
200
205
|
' binary="$(find_framework_binary "$framework" || true)"',
|
|
201
206
|
' if [ -z "$binary" ]; then',
|
|
202
207
|
' log "Skipping $framework because a framework binary was not found."',
|
|
208
|
+
' missing_dsyms=1',
|
|
203
209
|
' continue',
|
|
204
210
|
' fi',
|
|
205
211
|
'',
|
|
206
212
|
' dsym_path="$DWARF_DSYM_FOLDER_PATH/$framework.framework.dSYM"',
|
|
207
213
|
' rm -rf "$dsym_path"',
|
|
208
214
|
' if copy_prebuilt_dsym "$framework" "$dsym_path" "$binary"; then',
|
|
209
|
-
' copy_to_archive "$dsym_path" "$framework"',
|
|
215
|
+
' if ! copy_to_archive "$dsym_path" "$framework"; then',
|
|
216
|
+
' log "Failed to copy $framework.framework.dSYM into the archive."',
|
|
217
|
+
' missing_dsyms=1',
|
|
218
|
+
' fi',
|
|
210
219
|
' continue',
|
|
211
220
|
' fi',
|
|
212
221
|
'',
|
|
213
222
|
' if xcrun dsymutil "$binary" -o "$dsym_path" >/dev/null; then',
|
|
214
223
|
' log "Prepared $framework.framework.dSYM."',
|
|
215
|
-
' copy_to_archive "$dsym_path" "$framework"',
|
|
224
|
+
' if ! copy_to_archive "$dsym_path" "$framework"; then',
|
|
225
|
+
' log "Failed to copy $framework.framework.dSYM into the archive."',
|
|
226
|
+
' missing_dsyms=1',
|
|
227
|
+
' fi',
|
|
216
228
|
' else',
|
|
217
229
|
' log "Failed to generate $framework.framework.dSYM."',
|
|
230
|
+
' missing_dsyms=1',
|
|
218
231
|
' fi',
|
|
219
232
|
'done',
|
|
220
233
|
'',
|
|
234
|
+
'exit "$missing_dsyms"',
|
|
235
|
+
'',
|
|
221
236
|
].join('\n');
|
|
222
237
|
}
|
|
223
238
|
|