@capgo/capacitor-jw-player 8.0.35 → 8.0.37

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.
@@ -76,7 +76,7 @@ dependencies {
76
76
  implementation 'com.android.volley:volley:1.2.1'
77
77
  implementation 'androidx.recyclerview:recyclerview:1.3.0'
78
78
  implementation 'androidx.mediarouter:mediarouter:1.7.0'
79
- implementation 'androidx.media:media:1.7.1'
79
+ implementation 'androidx.media:media:1.8.0'
80
80
 
81
81
  testImplementation "junit:junit:$junitVersion"
82
82
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
@@ -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.35";
25
+ private final String pluginVersion = "8.0.37";
26
26
 
27
27
  private static final String TAG = "JwPlayerPlugin";
28
28
  // Static reference to the plugin instance for activity communication
@@ -13,4 +13,4 @@
13
13
  <color name="jw_color_medium">#CCFFFFFF</color>
14
14
  <color name="jw_color_inactive">#66FFFFFF</color>
15
15
  <color name="jw_color_background">#CC000000</color>
16
- </resources>
16
+ </resources>
@@ -29,4 +29,4 @@
29
29
  <item name="cornerFamily">rounded</item>
30
30
  <item name="cornerSize">12dp</item>
31
31
  </style>
32
- </resources>
32
+ </resources>
@@ -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.35"
19
+ private let pluginVersion: String = "8.0.37"
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.35",
3
+ "version": "8.0.37",
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": "npm run build",
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