-
Notifications
You must be signed in to change notification settings - Fork 28.7k
iOS,macOS: Migrate logging to Logger/FlutterLogger #168568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jmagman
reviewed
May 8, 2025
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
hellohuanlin
reviewed
May 8, 2025
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
hellohuanlin
reviewed
May 8, 2025
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
hellohuanlin
reviewed
May 9, 2025
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
d026490
to
5971bb2
Compare
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Outdated
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/Logger.swift
Show resolved
Hide resolved
engine/src/flutter/shell/platform/darwin/common/framework/Source/LoggerTestUtils.swift
Show resolved
Hide resolved
hellohuanlin
approved these changes
May 14, 2025
097a49c
to
354f336
Compare
In new Swift code in the iOS/macOS embedder, we currently lack core features currently provided by shared internal C++ library code in FML. This provides a logging implementation that can be used across the iOS/macOS embedders, whether in Swift, Objective-C, or C++ code. Issue: flutter#168564
Previously updated for non-Swift in flutter#167737.
This migrates off the private API for Swift Package Manager, and onto the official v0 public ABI.
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2025
This was referenced May 15, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2025
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/packages
that referenced
this pull request
May 15, 2025
auto-submit bot
pushed a commit
to flutter/packages
that referenced
this pull request
May 15, 2025
flutter/flutter@0b9f928...9a78af5 2025-05-15 [email protected] Manual pub package roll (flutter/flutter#168916) 2025-05-15 [email protected] Remove unnecessary `bringup: true` for release-channel only `Linux flutter_packaging`. (flutter/flutter#168761) 2025-05-15 [email protected] Revert: "Run `flutter_packaging` builders on release candidates (flutter/flutter#168917) 2025-05-15 [email protected] Roll Dart SDK from a6c25e31caa7 to c9640c3a4440 (1 revision) (flutter/flutter#168911) 2025-05-15 [email protected] Roll Packages from 1468581 to 2dff621 (4 revisions) (flutter/flutter#168908) 2025-05-15 [email protected] Roll Dart SDK from b3520981e0f0 to a6c25e31caa7 (11 revisions) (flutter/flutter#168895) 2025-05-15 [email protected] Roll Fuchsia Linux SDK from fSvuEJgRmHxnewRJr... to Jj-iDG5uPOsFgY2_H... (flutter/flutter#168893) 2025-05-15 [email protected] Fix mac_ios_engine_ddm config with missing ci/ios_debug_sim_ddm config (flutter/flutter#168888) 2025-05-15 [email protected] [native assets] Remove `KernelSnapshot` dependency in build (flutter/flutter#168742) 2025-05-15 [email protected] iOS,macOS: Migrate logging to Logger/FlutterLogger (flutter/flutter#168568) 2025-05-15 [email protected] Skip hot reload breakpoints test when running with web (flutter/flutter#168873) 2025-05-15 [email protected] CupertinoSliverNavigationBar respects accessibility text scaling (flutter/flutter#168866) 2025-05-15 [email protected] [display_list] paint cleanup. (flutter/flutter#168082) 2025-05-15 [email protected] Add a new CI build for iOS DDM-enabled artifacts (flutter/flutter#168717) 2025-05-15 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Implements UISceneDelegate dynamically w/ FlutterLaunchEngine (#168396)" (flutter/flutter#168880) 2025-05-14 [email protected] Implements UISceneDelegate dynamically w/ FlutterLaunchEngine (flutter/flutter#168396) 2025-05-14 [email protected] Mark web_tool_tests_1_2 as bringup. (flutter/flutter#168871) 2025-05-14 [email protected] Marks Mac_mokey run_debug_test_android to be unflaky (flutter/flutter#167634) 2025-05-14 [email protected] Reland "Clip search artifacts in CupertinoSliverNavigationBar searchable-to-searchable transitions" (flutter/flutter#168772) 2025-05-14 [email protected] Remove references to `team-release`. (flutter/flutter#168780) 2025-05-14 [email protected] Make Cupertino sheet set the systemUIStyle through an AnnotatedRegion (flutter/flutter#168182) 2025-05-14 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Use live region in error text input decorator for Android (#165531)" (flutter/flutter#168848) 2025-05-14 [email protected] Normalize BottomAppBarTheme (flutter/flutter#168586) 2025-05-14 [email protected] Roll Packages from 2e166de to 1468581 (2 revisions) (flutter/flutter#168828) 2025-05-14 [email protected] macOS,iOS: fix swift target triple (flutter/flutter#168749) 2025-05-14 [email protected] Further update `Engine-artifacts.md`. (flutter/flutter#168779) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
cbracken
added a commit
to cbracken/flutter
that referenced
this pull request
May 15, 2025
This migrates FlutterResizeSynchronizer from an Objective-C implementaton to a Swift implementation. This is serves a couple purposes: * adds the first Swift tests for the macOS embedder. * adds Swift usage of the Logger I added in flutter#168568. Issue: flutter#168564 Issue: flutter#144791
cbracken
added a commit
to cbracken/flutter
that referenced
this pull request
May 15, 2025
This migrates FlutterResizeSynchronizer from an Objective-C implementaton to a Swift implementation. This is serves a couple purposes: * adds the first Swift tests for the macOS embedder. * adds Swift usage of the Logger I added in flutter#168568. Issue: flutter#168564 Issue: flutter#144791
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
a: desktop
Running on desktop
engine
flutter/engine repository. See also e: labels.
platform-ios
iOS applications specifically
platform-macos
team-ios
Owned by iOS platform team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In new Swift code in the iOS/macOS embedder, we currently lack core features currently provided by shared internal C++ library code in FML. This provides a logging implementation that can be used across the iOS/macOS embedders, whether in Swift, Objective-C, or C++ code, and migrates the iOS and macOS embedders to use it.
This patch also introduces gn support for authoring Swift Testing tests.
SwiftTestingRunner
class that launches the Swift Testing test runner, which runs all tests annotated with@Test
linked into the current executable.SwiftTestingRunnerMain
class that implements a main entrypoint that launches theSwiftTestingRunner
.gn
source_set
target (//flutter/shell/platform/darwin/common:swift_testing_main
) that includes the Swift Testing main entrypoint, such thatexecutable
targets can add it to their deps to automatically be built as a Swift Testing runner.framework_common_swift_unittests
executable target for the common framework unit tests, and wires that into the build andrun_tests.py
for macOS.Issue: #168564
Issue: #144791
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.