Skip to content

log [nfc]: Stop depending on Flutter for build-mode constants - #2432

Open
chrisbobbe wants to merge 1 commit into
zulip:mainfrom
chrisbobbe:pr-lib-api-mode-constants
Open

log [nfc]: Stop depending on Flutter for build-mode constants#2432
chrisbobbe wants to merge 1 commit into
zulip:mainfrom
chrisbobbe:pr-lib-api-mode-constants

Conversation

@chrisbobbe

Copy link
Copy Markdown
Collaborator

Toward #2335.

Flutter defines kReleaseMode and friends very simply,
from compile-time environment flags of the Dart VM;
so copy those definitions into lib/basic.dart.
This means lib/log.dart no longer needs Flutter,
which helps toward making lib/api usable from the plain Dart VM (zulip#2335):
lib/api imports lib/log.dart for debugLog.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants