$ the-wire · showcase
Flutter precache progress fix, Swift COM identity protocols, Kotlin decompiler surface moved to psi-api
By RepoJournal · Filed · About Mobile platforms · Composed from the cited sources · methodology
Flutter fixed a precache progress calculation bug that caused the tool to stop after the first artifact, Swift's compiler-managed COM identity protocols now reject explicit conformances in user code, and Kotlin moved its decompiler surface into psi-api.
Flutter's `flutter precache` used to report an incorrect artifact count and terminate after the first item, such as `[1/3] Web SDK`, without downloading items 2 or 3 [1]. The root cause was `ArtifactSet.downloadCount` defaulting to 1, which let non-downloading maintenance artifacts (`LegacyCanvasKitRemover`, `PubDependencies`, `AndroidMavenArtifacts`) increment the progress total [1]. Flutter also fixed `flutter create --platforms=<new-platform> .` overwriting the existing platform list in `.metadata` instead of appending to it; the command now appends rather than drops existing platforms [2]. The web loading bar behavior changed: the blue indicator used to disappear on the `dart-app-ready` DOM event, but DWDS dispatches that event while Frontend Server is still compiling, so Flutter replaced the listener with an explicit `window._removeFlutterLoader` function that keeps the bar visible until the app actually starts [3]. A separate fix re-added Xcode and OpenJDK dependencies to the macOS wasm local_engine builders to unbreak macOS web engine builds in `local_engine.json` [4].
Swift added support for compiler-managed COM identity protocols (`COMInterface`, `COMActivatable`, and `COMAggregatable`), with new diagnostics and validation that prevent user code from declaring conformances to those protocols explicitly [5]. SILGen now initializes init-accessor-subsumed storage through its accessor cross-file, so when a stored property's initializer is subsumed by an init accessor on another property, the accessor's default wins [6]. Under `-enable-sil-opaque-values`, SILGen previously could not emit the thunks bridging an imported Objective-C async method's completion handler because three sites hardcoded the lowered-address representation; the change gives formally indirect parameters and results a value representation instead of an address [7]. AddressLowering now recognizes `Builtin.Borrow` instructions (`make_borrow`/`dereference_borrow` and `make_addr_borrow`/`dereference_addr_borrow`) and no longer assumes a `@guaranteed_address` result is in the storage map [8]. The SIL forEach unroller also deletes the entire array literal after unrolling, removing dead literal initialization and subsequent copies [9].
Kotlin moved the decompiler surface into `psi-api`, relocating `KotlinBuiltInFileType`, `KlibMetaFileType`, `BuiltinsVirtualFileProvider`, and `KotlinLabelProviderService` so platforms that only register them no longer depend on the full decompiler [10]. `DummyFileAttributeService` is now deprecated; the no-op implementation existed only so `ClsKotlinBinaryClassCache` could call `getService` unconditionally, and platforms without VFS attribute caching had to register a service that does nothing [11]. The `decompiler` test fixtures were dropped because that source set never had any sources; consumers now declare their dependencies directly, with `analysis/stubs` and `low-level-api-fir` depending on the module directly and `scripting-ide-services-test` gaining `:compiler:cli-jvm` [12]. KDoc-only links into the decompiler were also removed from `KotlinDeclarationProvider.findInternalFilesForFacade` and the multifile class part symbol provider [13]. Analysis API now forwards JVM default mode when compiling test libraries by translating `JVM_DEFAULT_MODE` to the corresponding `-jvm-default` CLI option, so source analysis and compiled test libraries use the same mode without duplicate `COMPILER_ARGUMENTS` directives [14].
Action items
- → Update Flutter tooling to pick up the precache progress and .metadata platform fixes before your next release build flutter/flutter [plan]
- → Remove any explicit COMInterface, COMActivatable, or COMAggregatable conformances from Swift code before adopting the compiler-managed version apple/swift [plan]
- → Drop DummyFileAttributeService registrations and update decompiler fixture dependencies to direct module declarations JetBrains/kotlin [monitor]
References
- [1] [flutter_tools] Fix cache download progress calculation for non-downloading artifacts (#192090) ↗ flutter/flutter
- [2] fix: stop `flutter create --platforms` from dropping existing platfor… (#191573) ↗ flutter/flutter
- [3] [flutter_tools] Keep web loading bar visible until app starts (#192483) ↗ flutter/flutter
- [4] Re-add Xcode and OpenJDK dependencies to macOS wasm local_engine builders (#192238) ↗ flutter/flutter
- [5] COM: manage COM identity and analyze use ↗ apple/swift
- [6] SILGen: initialize init-accessor-subsumed storage through its accessor cross-file ↗ apple/swift
- [7] Opaque Values: add support for ObjC async completion handlers ↗ apple/swift
- [8] AddressLowering: BuiltinBorrow instructions support ↗ apple/swift
- [9] [SIL forEach unroller] Delete the entire array literal after unrolling ↗ apple/swift
- [10] [decompiler] move the decompiler surface into `psi-api` ↗ JetBrains/kotlin
- [11] [decompiler] deprecate `DummyFileAttributeService` ↗ JetBrains/kotlin
- [12] [decompiler] drop the `decompiler` test fixtures ↗ JetBrains/kotlin
- [13] [decompiler] drop KDoc-only links into the decompiler ↗ JetBrains/kotlin
- [14] [Analysis API] Forward JVM default mode when compiling test libraries ↗ JetBrains/kotlin