react-native-webrtc-kaleidoscope 2.7.10 → 2.7.12
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/llms.txt +15 -2
- package/package.json +6 -9
package/llms.txt
CHANGED
|
@@ -16,11 +16,11 @@ It is **not** a fork of `react-native-webrtc`, **not** a managed-cloud SaaS, and
|
|
|
16
16
|
|
|
17
17
|
```sh
|
|
18
18
|
bun add react-native-webrtc react-native-webrtc-kaleidoscope
|
|
19
|
-
bunx expo install expo-build-properties expo-dev-client
|
|
19
|
+
bunx expo install expo-asset expo-build-properties expo-dev-client
|
|
20
20
|
# or npm install / yarn add / pnpm add
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Peer dependencies: `expo` (>=51), `expo-asset` (>=10
|
|
23
|
+
Peer dependencies: `expo` (>=51), `expo-asset` (>=10; install it directly with `expo install` even though `expo` depends on it: `expo-doctor` requires native-module peers to be direct dependencies and warns the app may crash outside Expo Go otherwise), `react` (>=18.2), `react-native` (>=0.74). `react-native-webrtc` (>=124) is an **optional** peer you supply (or `@livekit/react-native-webrtc` + `livekit-client` if you use the `/livekit` adapter; pick ONE fork, never both). `nativewind` (>=4) and `@react-native-community/slider` (>=4.5) are **optional** peers, only needed for the styled UI / live-controls extras.
|
|
24
24
|
|
|
25
25
|
## Configure (copy-paste; every entry here is load-bearing)
|
|
26
26
|
|
|
@@ -563,6 +563,19 @@ setMaskTuning({ hardness: 0.2, threshold: 0.85 }); // the mask verb's twin on th
|
|
|
563
563
|
- **Android** native >= API 24; OpenGL ES 3.0 pipeline; MediaPipe Tasks segmentation.
|
|
564
564
|
- **Web** Chromium browsers with `MediaStreamTrackProcessor`; WebGL2 compositor; MediaPipe Selfie Segmentation (WASM).
|
|
565
565
|
|
|
566
|
+
## Upgrading dependencies: verify on Android, never on web alone
|
|
567
|
+
|
|
568
|
+
**Any dependency upgrade that can reach the binary MUST be verified with a real Android build before you ship it.** This is the fastest way to break a React Native app, and it is the failure mode web testing cannot see: the web pipeline fetches assets as URLs and runs entirely in JS, so it never exercises native autolinking, the Gradle build, native asset bundling, the manifest merger, or the ABI split. A change can be green on web and on every typecheck and unit test while the Android app fails to build or crashes on launch.
|
|
569
|
+
|
|
570
|
+
"Can reach the binary" covers more than it first appears: `react-native` and `expo` themselves, any package with an `android/` directory or a podspec (`react-native-webrtc`, `@react-native-async-storage/async-storage`, `@react-native-community/slider`, `react-native-webrtc-kaleidoscope`), anything an Expo config plugin touches (`expo-build-properties` and the SDK version that sets `minSdkVersion`, `compileSdkVersion`, and the iOS deployment target), and transitive native dependencies a lockfile refresh may move underneath you. A pure JS or types-only bump is the only safe exception, and a lockfile refresh can turn one of those into a native one without warning.
|
|
571
|
+
|
|
572
|
+
The verification, in order:
|
|
573
|
+
|
|
574
|
+
1. **Check alignment first.** Run `bunx expo-doctor` and `bunx react-native doctor` (or the `npx` equivalents) and resolve what they report. Doctor catches SDK-to-package version drift, duplicate or mismatched native dependencies, and misconfigured build settings faster than reading a diff does, and version compatibility is not something to settle by inspection.
|
|
575
|
+
2. **Build the Android app, do not just compile the module.** A Gradle module compile proves the Kotlin still typechecks; it does not prove the app links, packages, and starts. Produce an installable artifact (`npx expo run:android`, `./gradlew assembleRelease`, or an EAS build).
|
|
576
|
+
3. **Run it and look at it.** Install on an emulator or a device, launch, exercise the effects, and confirm no crash and no blank render. Bundled images and thumbnails in particular resolve by a native path that only a standalone build exercises, so a web run or a Metro dev-client run can hide a broken asset entirely.
|
|
577
|
+
4. **Then confirm on iOS and web.** Android is the first gate because it is where dependency drift surfaces soonest, not because the other two platforms are optional.
|
|
578
|
+
|
|
566
579
|
## The demo is the canonical working example
|
|
567
580
|
|
|
568
581
|
The repo's `demo/` is a complete consuming app exercising everything above on all three platforms: `demo/app.config.js` (the config-plugin + build-properties + permissions wiring, with comments explaining each entry), `demo/kaleidoscope.preset-book.ts` (a full book including a consumer-owned `wolf-cave.webp` background and per-preset `controls`), `demo/src/use-loopback-stream{,.web}.ts` and `demo/src/video-preview{,.web}.tsx` (the platform-split wiring), and `demo/app/index.tsx` (picker + editor + verbs on one screen). When this file and the demo disagree, trust the demo and file an issue: https://github.com/simiancraft/react-native-webrtc-kaleidoscope
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-webrtc-kaleidoscope",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.12",
|
|
4
4
|
"description": "Live video effects (blur, background replacement, generative backgrounds, flip/rotate) for react-native-webrtc, packaged as a managed-Expo-friendly Expo Module. Working on web, Android, and iOS. Active development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -557,9 +557,9 @@
|
|
|
557
557
|
],
|
|
558
558
|
"scripts": {
|
|
559
559
|
"clean": "rm -rf dist",
|
|
560
|
-
"build": "bun run clean &&
|
|
561
|
-
"typecheck": "
|
|
562
|
-
"typecheck:test": "
|
|
560
|
+
"build": "bun run clean && tsc -p tsconfig.build.json && bun run copy:assets",
|
|
561
|
+
"typecheck": "tsc --noEmit",
|
|
562
|
+
"typecheck:test": "tsc --noEmit --project tsconfig.test.json",
|
|
563
563
|
"typecheck:demo": "cd demo && bunx tsc --noEmit",
|
|
564
564
|
"prepare": "command -v lefthook >/dev/null 2>&1 && lefthook install || true",
|
|
565
565
|
"lint": "biome check",
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"check:assets": "bun run scripts/check-book-assets.ts",
|
|
571
571
|
"check:package": "publint --strict",
|
|
572
572
|
"check:knip": "knip",
|
|
573
|
-
"check:react-compiler": "eslint src/components 'catalog/composites/**/*.controls.tsx' 'catalog/shaders/**/*.form.tsx'",
|
|
573
|
+
"check:react-compiler": "bun install --cwd tools/lint --frozen-lockfile --silent && eslint src/components 'catalog/composites/**/*.controls.tsx' 'catalog/shaders/**/*.form.tsx'",
|
|
574
574
|
"check:kotlin": "bun run scripts/ktlint.ts",
|
|
575
575
|
"format:kotlin": "bun run scripts/ktlint.ts --format",
|
|
576
576
|
"check:swift": "bun run scripts/swift.ts",
|
|
@@ -643,10 +643,7 @@
|
|
|
643
643
|
"@semantic-release/npm": "^13.1.5",
|
|
644
644
|
"@types/bun": "^1.4.2",
|
|
645
645
|
"@types/react": "~18.2.79",
|
|
646
|
-
"@typescript-eslint/parser": "^8.70.0",
|
|
647
|
-
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
648
646
|
"eslint": "^10.11.0",
|
|
649
|
-
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
|
|
650
647
|
"expo": "^51.0.39",
|
|
651
648
|
"expo-modules-core": "^56.0.26",
|
|
652
649
|
"knip": "^6.37.0",
|
|
@@ -659,7 +656,7 @@
|
|
|
659
656
|
"react-native": "0.74.5",
|
|
660
657
|
"react-native-webrtc": "^124.0.8",
|
|
661
658
|
"semantic-release": "^25.0.9",
|
|
662
|
-
"typescript": "^
|
|
659
|
+
"typescript": "^7.0.2"
|
|
663
660
|
},
|
|
664
661
|
"publishConfig": {
|
|
665
662
|
"access": "public",
|