The Wire · Showcase
FLUTTER CUTS TEST BOILERPLATE, SWIFT FIXES RUNTIME MEMORY LEAK
By RepoJournal · Filed · About Mobile platforms
Flutter removes 140 lines of duplicate test setup code while Swift unifies crash reporting to plug a resource leak across runtime and demangler.
Kevin Moore landed a cleanup that replaces 17 identical boilerplate blocks in Flutter's Swift package tests with a single factory helper, slashing test fixture construction code without changing a line of actual test behavior [1]. Over on the Swift side, Mike Ash unified two separate implementations of reportOnCrash() into inline functions in CrashReporter.h, fixing a leak where the runtime never freed old messages and closing a synchronization gap between the runtime and demangler [2]. Ash merged the fix into main after the work resolves the double-implementation problem that surfaced when the demangler gets linked into the runtime [3]. Konrad Malawski brought back the withDeadline concurrency API after an earlier attempt was reverted due to build configuration issues, reintroducing the capability with fixes [4]. Flutter's Skia roller continues its steady cycle with three dependency updates across d40f20074be1 to 88b2a86a3eeb [5][6][7], keeping rendering and graphics stacks in sync.
One email a day. Unsubscribe in one click.
Keep up with Mobile platforms in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review Flutter test patterns if you maintain Swift package tests flutter/flutter [plan]
- → Pull latest Swift main to pick up crash reporter memory fix apple/swift [plan]
References
- [1] [tool] Deduplicate fixture builders in build_swift_package_test.dart ↗ flutter/flutter
- [2] [Runtime] Unify the two copies of reportOnCrash(). ↗ apple/swift
- [3] Merge pull request #91506 from mikeash/unify-reportoncrash apple/swift
- [4] [Concurrency] Bring back withDeadline (#91516) apple/swift
- [5] Roll Skia from d40f20074be1 to 88b2a86a3eeb (1 revision) (#191190) flutter/flutter
- [6] Roll Skia from 95a3bf341a38 to d40f20074be1 (1 revision) (#191189) flutter/flutter
- [7] Roll Skia from 62fadc19be71 to 95a3bf341a38 (1 revision) (#191187) flutter/flutter