$ the-wire · showcase
Flutter tools require explicit DI, Kotlin's Native Random goes thread local
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
Two changes land with real reach into downstream code: flutter_tools now demands a ToolContext from every FlutterDevice call site, and Kotlin/Native's default Random stops sharing state across threads.
[tool] Require explicit dependency injection for FlutterDevice and FlutterDevice.create (#192830) flutter/flutter
Part 22a of the modular dependency injection migration makes ToolContext a required argument to both FlutterDevice and FlutterDevice.create, which destructures artifacts, config, fs, logger, platform, processManager, and shutdownHooks from it. Any tool code constructing a FlutterDevice directly has to pass a context now; there is no default. This is a breaking change for out-of-tree callers.
[K/N][stdlib] Make default Random thread safe JetBrains/kotlin
The default Random on Kotlin/Native is now thread safe. The atomic code that previously stood in for thread safety has been removed, and NativeRandom instances are thread local (KT-56363). Code that relied on a shared, seeded default instance across threads will observe different behavior.
[flutter_tools] Include data assets from hooks when pubspec.yaml is empty (#193434) flutter/flutter
When a pubspec.yaml has no flutter: section, ManifestAssetBundle.build used to return early with an empty AssetManifest.bin, silently dropping data assets produced by build and link hooks. It now includes those assets instead of short-circuiting.
Enable `unawaited_futures` lint across the Flutter repository (#193125) flutter/flutter
The unawaited_futures lint is now enabled in analysis_options_common.yaml across the Flutter repository, so fire-and-forget futures in analyzed code will start reporting.
[Distributed] Enable DistributedActorResignRemoteID by default apple/swift
SE-0548 is enabled by default, so DistributedActorResignRemoteID is on without a feature flag for remote distributed actor references. The tail was quiet: Flutter renamed first-frame tests to match the Shell::AddFirstFrameCallback API with no semantic change, Kotlin dropped a KAPT test and a Gradle property (kotlin.internal.classpathSnapshot.parseInlinedLocalClasses) and moved its test launcher...
Action items
- → Pass a required ToolContext to every FlutterDevice and FlutterDevice.create call site in tooling code flutter/flutter [plan]
- → Re-check shared-Random assumptions in Kotlin/Native code, since the default instance is now thread local JetBrains/kotlin [plan]