Repository navigation
Streams: AsyncStream → Kotlin Flow
- A non-async
@AndroidBridgeprotocol requirement returningAsyncStream<T>orAsyncThrowingStream<T, Error>becomes a coldFlow<T>on the generated bridge. - New
StreamObservation<Element>inSwiftAndroidCodegen: pull-basednext()/cancel()over anyAsyncSequence. bridge-gen --swift-output-dir/ GradleswiftOutputDir: writes<P>+AndroidStreams.swift(commit it; add the directory to jextract'sswiftFilterInclude; rungenerateSwiftAndroidBridgesbefore jextract).- Runtime:
observationFlow(open, next, cancel). Completion,first()/take()and collector cancellation all call the Swiftcancel()exactly once. - Streams are bridged on protocols only. Unsupported shapes are skipped with a warning.
Consumers: generated Swift is unguarded, so every platform that builds the shared package needs this version of the SwiftAndroidCodegen library. Bump the Swift package, the Gradle plugin and the runtime together.