$ the-wire · showcase
Flutter tools shed globals, mDNS attach surfaces port 5353 conflicts
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
Flutter's tooling takes its biggest structural step of the day, moving four command and build subsystems off global state onto explicit injection, while Kotlin's K/N cinterop and Js packaging get targeted correctness fixes.
[flutter_tools] Migrate build targets, tester devices, application packages, and tool utilities away from globals (#193647) flutter/flutter
ShaderCompiler, the Android and common build targets, FlutterTesterDevice, application packages, ProtocolDiscovery, AnalysisServer, and UnifiedAnalytics wiring all move from globals.dart to explicit dependency injection. It is the widest cut of the migration tracked in flutter/flutter#188471, so anything constructed without a ToolContext will now fail to compile rather than silently reach into ...
[flutter_tools] Inject dependencies into doctor, logs, and target devices (#193642) flutter/flutter
DoctorCommand, LogsCommand, DoctorValidator, and TargetDevices now take their dependencies through ToolContext instead of globals. Together with the build-target work this means less mutable state shared across parallel tool invocations, at the cost of touching every call site that instantiated these classes directly.
[flutter_tools] Handle mDNS SocketExceptions during attach and surface port 5353 conflicts flutter/flutter
throwOnError, renamed from throwOnMissingLocalNetworkPermissionsError, is now plumbed through MdnsVMServiceDiscoveryForAttach and getVMServiceUriForAttach so flutter attach falls back to log-based VM service discovery on an mDNS SocketException, matching flutter run. When mDNS is the only discovery path and MDnsClient.start fails on macOS with errno 48 (EADDRINUSE), the tool exits with a messag...
[K/N] Make sure all `CBridgeGenState`s have all the declarations they refer to, fix KT-89463 JetBrains/kotlin
Kotlin/Native's CBridgeGenState now guarantees that C/Obj-C code referring to a struct typedef or function declaration carries the required declaration itself, which fixes KT-89463 and the related breakage it caused. Consumers generating cinterop bindings against headers with forward-declared or conditionally-declared types are the ones who hit it.
[Gradle] Replace js/wasmJs klibs with jsJar JetBrains/kotlin
Js stops publishing the jsJar task output under the old .klib format while Kotlin Archive publishes a raw klib inside, and klibs are now unpacked into zips rather than directories so consumers can process the jsJar output correctly. This closes KT-89848 and KT-89863.
[stdlib] Add `of`s to `Array`s JetBrains/kotlin
Kotlin's stdlib gains of-style factory functions for Arrays, with the caveat from the author that building the branch requires a bootstrapped compiler. The remaining desk activity is small: web_ui typo fixes, a dead Wasm test facade dropped after the second-stage KLIB compatibility test moved to the grouping infrastructure, unified case-conversion tests matching Chars and CodePoint behavior, re...