Skip to content

Set Android minSdkVersion 26 and react-native-webgpu 0.10.1 in fishjam-chat - #610

Merged
MiloszFilimowski merged 3 commits into
mainfrom
fix/fishjam-chat-android-min-sdk
Sep 16, 2026
Merged

MiloszFilimowski merged 3 commits into
mainfrom
fix/fishjam-chat-android-min-sdk

Conversation

@MiloszFilimowski

@MiloszFilimowski MiloszFilimowski commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Description

fishjam-chat now sets Android minSdkVersion to 26 through expo-build-properties. The example already had that package in its dependencies but never configured it.

["expo-build-properties", { "android": { "minSdkVersion": 26 } }]

Motivation and Context

After #606, a clean Android build of fishjam-chat fails:

react-native-webgpu/android/cpp/AndroidPlatformContext.h:232:15: error: 'AHardwareBuffer_allocate' is unavailable: introduced in Android 26

react-native-webgpu calls AHardwareBuffer APIs that exist only from Android 8.0 (API 26). Expo SDK 57 builds for API 24 by default, and nothing in the example raised it. A build from an existing android/ folder can still pass if that folder already had a higher minSdk.

Checked on main (fff4e57), arm64-v8a, with expo prebuild --platform android --clean and then ./gradlew app:assembleDebug:

  • Before: the build fails with the error above.
  • After: BUILD SUCCESSFUL.

Found while testing the React Native camera effects docs. The same step goes into those docs for apps that use @fishjam-cloud/video-effects.

react-native-webgpu 0.10.1

Second commit bumps react-native-webgpu from 0.5.15 to 0.10.1 in fishjam-chat and in the dev dependencies of react-native-custom-video-source and react-native-vision-camera-source (peer ranges unchanged). 0.10.1 fixes a leak in GPUExternalTexture.destroy() (wcandillon/react-native-webgpu#478): on 0.5.15 every WebGPU camera effect holds about one camera frame of graphics memory per frame until the JS garbage collector runs, a 200 MB to 1 GB saw-tooth on a Galaxy S23; on 0.10.1 it stays flat at about 145 MB. tsc passes for both packages and the example against the new version.

Note for apps on 0.8.4 or newer: GPUTextureUsage, GPUShaderStage and GPUBufferUsage imported from react-native-webgpu are undefined at import time (upstream evaluates them before its native install). Use the globals of the same name or plain numbers; @fishjam-cloud/video-effects 0.1.5 does the latter.

Documentation impact

  • Documentation update required
  • Documentation updated in another PR (camera effects docs in fishjam-cloud/documentation, FCE-3838)
  • No documentation update required

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

react-native-webgpu uses AHardwareBuffer APIs from Android 8.0 (API 26), and Expo SDK 57 builds for API 24 by default, so a clean prebuild of the example failed to compile react-native-webgpu. Raise minSdkVersion with expo-build-properties, which the example already depends on.
0.10.1 releases the imported camera frame on GPUExternalTexture.destroy()
(wcandillon/react-native-webgpu#478). On 0.5.15 every WebGPU camera effect
leaks about one frame of graphics memory per frame on Android until the JS
garbage collector runs (200 MB to 1 GB saw-tooth on a Galaxy S23).
@MiloszFilimowski MiloszFilimowski changed the title Set Android minSdkVersion 26 in fishjam-chat Set Android minSdkVersion 26 and react-native-webgpu 0.10.1 in fishjam-chat Sep 16, 2026
@MiloszFilimowski
MiloszFilimowski merged commit f29c95f into main Sep 16, 2026
2 checks passed
@MiloszFilimowski
MiloszFilimowski deleted the fix/fishjam-chat-android-min-sdk branch September 16, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants