flutter_deepar 0.1.3
flutter_deepar: ^0.1.3 copied to clipboard
Flutter plugin for the DeepAR augmented reality SDK. Provides camera capture, AR effect loading/switching, and a stream of AR-processed frames (RGBA/BGRA) for use in live streaming, recording, or preview.
0.1.3 #
- Fix (Android): Camera capture and the YUV→NV21 conversion now run on a dedicated background thread instead of the main/UI thread. On the main thread they saturated it in release (AOT) builds, starving the host's preview surface compositor and producing a blank (white/black) preview that only reproduced in release. iOS already used a background queue.
- Fix (Android): Marked cross-thread state (
isCapturing,isSdkInitialized,frameEventSink) as@Volatileso the release-mode ART optimizer cannot cache stale values on worker threads. - Fix (Android): Guarded
ImageReader.acquireLatestImage()against a reader-closed race now that the listener runs off the main thread.
0.1.2 #
- Fix: Resolved a race condition on iOS and Android where
startCapturecould crash in release mode due to asynchronous engine initialization. - Fix: Added ProGuard rules to prevent DeepAR classes from being stripped by R8 during release builds on Android.
0.1.1 #
- Fix: DeepAR Maven repository now injects into root project so consuming apps can resolve
ai.deepar.ar:DeepARwithout manual repo setup
0.1.0 #
- Initial release
- Camera capture via Camera2 (Android) and AVFoundation (iOS)
- AR effect loading/switching
- Processed frame output via EventChannel stream
- Front/back camera switching
- Off-screen rendering support