attachment_engine_android 0.0.1-dev.2
attachment_engine_android: ^0.0.1-dev.2 copied to clipboard
Android implementation of attachment_engine providing native PDF, audio/video playback, download, share, and intent handling.
0.0.1-dev.2 #
- Fix:
AudioChannel.loadcould throw a synchronous exception fromMediaPlayer.setDataSource/.prepareAsync(e.g. a malformed path/URI) beforesetOnErrorListener's callback ever had a chance to fire — so the Dart-side status stream never saw"error"for that specific failure, leavingattachment_engine's audio renderer stuck showing normal (unplayed) controls instead of its error/Retry UI. The catch block now emits"error"before rethrowing, matchingVideoPlatformView's (andattachment_engine_ios'sAudioChannel's) existing behavior.
0.0.1-dev.1 #
- Initial release: the Android implementation extracted from
attachment_engine0.1.0 as part of the federated-plugin split. ImplementsAttachmentEnginePlatformfromattachment_engine_platform_interfaceon top of hand-written Kotlin (Media3/ExoPlayer,PdfRenderer,WebView,HttpURLConnection-based resumable download,FileProvider-based share/open). - Migrates every request/response native call (PDF, audio/video control,
share, open-externally, paths, download start/resume/cancel) from
hand-written
MethodChannelstring dispatch to the pigeon-generatedHostApis inattachment_engine_platform_interface(Messages.g.kt). The audio/video/download event streams are unchanged, hand-writtenEventChannels.