-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Update documentation when we make --delete-tostring-package-uri defaulted for certain modes #52759
Comments
Can you confirm where to verify if the docs were updated already or not? |
I'm not sure we ever turned this on by default. @jonahwilliams do you know? |
Relevant docs to update are here: https://github.com/flutter/engine/blob/d85cb10707a29dae9a437a1cf6bfa2e28860d3f7/lib/ui/annotations.dart#L11 If we didn't turn this on by default, then we can probably close this. This option is used by some customers, but AFAICT they have to pass it in themselves via some special flags when building the app. |
We don't have this on by default. Before we do this, we'd need to provide it as an opt-in and gather feedback - otherwise users might be surprised. |
It's currently possible to opt-in with the --extra-front-end-options flag I believe. It's just cumbersome to use. We have some customers internally at Google using it though. I'm inclined to leave it as is for now, unless we get more demand for it. |
* Update documentation for the annotation * Add `@keepToString` annotation to web's `Locale` class (similar to non-webs `Locale` class) Issue flutter/flutter#52759
* Update documentation for the annotation * Add `@keepToString` annotation to web's `Locale` class (similar to non-webs `Locale` class) Issue flutter/flutter#52759
…le/release mode on wasm/vm targets (#144763) The flutter engine & framework can opt out of this optimization for individual classes / class hierarchies via: * `@pragma(flutter:keep-to-string)` * `@pragma(flutter:keep-to-string-in-subtypes)` Or by using the convenience constant `@keepToString` from `dart:ui`. => This aligns the build process more with g3 (which already does this) Closes #52759
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
flutter/engine#17068 will add a new option to the frontend compiler to let us remove toString options, along with an annotation to mark a method as keep even if we applied the flag.
We should update the docs on the annotation if and when we make this option on by default for, e.g. release or profile modes, to reflect when it's on.
/cc @zanderso @jonahwilliams
The text was updated successfully, but these errors were encountered: