@simba-dev/react-native-media-player 1.5.2 → 1.5.3

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.
@@ -28,13 +28,37 @@ add_library(
28
28
  )
29
29
 
30
30
  # Locate pre-built libmpv.so shipped in jniLibs/{ABI}/libmpv.so
31
+ #
32
+ # V16.0.3 (1.5.3): replaced the silent `WARNING + link will fail` branch with a
33
+ # hard `FATAL_ERROR`. The previous behavior led to a downstream linker failure
34
+ # ("unable to find library -lmpv") that pointed at the wrong file — the build
35
+ # would technically succeed and only fail at the link step, masking the real
36
+ # root cause (libmpv.so is missing from the consumer's jniLibs/). Now CMake
37
+ # stops at configure time with an actionable error.
38
+ #
39
+ # If you see this error:
40
+ # 1. Confirm `android/src/main/jniLibs/${ANDROID_ABI}/libmpv.so` exists in
41
+ # the source repo (it is .gitignored by size — see .gitignore).
42
+ # 2. Reinstall the package: `npm install @simba-dev/react-native-media-player`
43
+ # so the jniLibs files are copied into node_modules.
44
+ # 3. If you are consuming this library from source (not npm), the jniLibs
45
+ # are shipped in the package tarball via the `files` allow-list in
46
+ # package.json.
31
47
  set(MPV_LIB_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../jniLibs/${ANDROID_ABI}/libmpv.so)
32
48
  if(EXISTS ${MPV_LIB_PATH})
33
49
  add_library(mpv SHARED IMPORTED)
34
50
  set_target_properties(mpv PROPERTIES IMPORTED_LOCATION ${MPV_LIB_PATH})
35
51
  message(STATUS "Found libmpv.so at ${MPV_LIB_PATH}")
36
52
  else()
37
- message(WARNING "libmpv.so not found at ${MPV_LIB_PATH} — link will fail")
53
+ message(FATAL_ERROR
54
+ "libmpv.so not found at ${MPV_LIB_PATH}\n"
55
+ "The prebuilt libmpv binary is shipped in this package's jniLibs/ directory.\n"
56
+ "Most likely cause: your install of @simba-dev/react-native-media-player is\n"
57
+ "missing the native prebuilts. Try:\n"
58
+ " rm -rf node_modules/@simba-dev/react-native-media-player\n"
59
+ " npm install @simba-dev/react-native-media-player\n"
60
+ "If consuming from a fork, ensure the package's `files` allow-list in\n"
61
+ "package.json includes android/ (which transitively covers jniLibs/).")
38
62
  endif()
39
63
 
40
64
  target_include_directories(
@@ -1134,7 +1134,7 @@ class MpvBridgeModule(reactContext: ReactApplicationContext) :
1134
1134
  val value: String? = try {
1135
1135
  if (nativePtr != 0L) MPVLib.nativeGetProperty(nativePtr, name) else null
1136
1136
  } catch (e: Exception) {
1137
- "<getPropertyString failed: ${e.message}>"
1137
+ "<nativeGetProperty failed: ${e.message}>"
1138
1138
  }
1139
1139
  Log.i(TAG, "[PlaybackTrace][Bridge][dumpProperties] property=$name value=\"$value\" requested=true")
1140
1140
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simba-dev/react-native-media-player",
3
- "version": "1.5.2",
4
- "description": "React Native video/audio player powered by libmpv — Picture-in-Picture, MediaSession, custom RN UI. **V16.0.0 stable release** (2026-09-07) — API hardening + type-safety sweep. `PlayerQueueItem` is generic; `<SimbaPlayer>` accepts a single `resumePolicy`; the 4 dead-feature stores (sleep/equalizer/liked/shuffle) are removed from the public surface. See `X:/Development/SIMBA/MOBILE_APP_REACT_NATIVE/md/SIMBA_PLAYER_MODULE_V16_*` for the V16 charter, tracker, and final QA report. Published under the `@simba-dev` org (the bare `simba` org-name on npmjs was reserved at publication time).",
3
+ "version": "1.5.3",
4
+ "description": "React Native video/audio player powered by libmpv — Picture-in-Picture, MediaSession, custom RN UI. **V16.0.3 patch release** (2026-09-12) — fail-fast on missing libmpv.so + stale API name in dumpProperties failure marker. See CHANGELOG.md for details. Published under the `@simba-dev` org (the bare `simba` org-name on npmjs was reserved at publication time).",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "react-native": "src/index.ts",