Skip to content
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

☂️ Upstream Dart issues affecting Zulip #1079

Open
gnprice opened this issue Nov 23, 2024 · 1 comment
Open

☂️ Upstream Dart issues affecting Zulip #1079

gnprice opened this issue Nov 23, 2024 · 1 comment
Labels
upstream Would benefit from work in Flutter or another upstream
Milestone

Comments

@gnprice
Copy link
Member

gnprice commented Nov 23, 2024

This tracking issue collects notes on potential work in Dart upstream that would benefit the (new) Zulip mobile app. See also:

Some of these are much more important to us than others. They're organized by where the work would happen, not by importance.

Dart standard library

dart:convert / JSON decoding

dart pub

  • (TODO upstream issue)
    Running just dart pub get (or flutter pub get) can cause dependencies in pubspec.lock to change, in particular for the "supporting libraries" like collection that are bundled in the Flutter SDK. That's perhaps OK in itself (modulo the desire for pinning Flutter, listed separately above) — but it should really print some kind of message explaining why. I (Greg) was confused by this for months, and I bet it confuses lots of other Flutter developers too:
    pubspec.lock sometimes doesn't work as a lockfile #85

Dart linter

package:http

(For issues in this section, the right answer may be to abandon the pure-Dart package:http in favor of package:cronet_http on Android and package:cupertino_http on iOS. See #461 (comment) . In particular it seems like we've run into a couple of issues where the upstream answer for missing features in package:http is that package:http is not the future and people should use those packages instead.)

  • (TODO upstream issue)
    package:http should respect HTTP cache-control headers, at least optionally.
    Make use of caching headers on server emoji data #950

  • (TODO upstream issue)
    package:http should have the option to trust additional CAs.

    • Then ideally the Flutter embedding for Android would gain the ability to read the app's "network security config" XML file and respect a setting there by making package:http trust any additional CAs the user has added in system settings.
    • We would set that setting in our Android "network security config"; or pending that Flutter feature, would use the package:http option directly.
    • Trust user-added CAs on Android #461
      Trust user-added CAs on Android #461 (comment)
@gnprice gnprice added the upstream Would benefit from work in Flutter or another upstream label Nov 23, 2024
@gnprice gnprice added this to the M7: Future milestone Nov 23, 2024
@gnprice
Copy link
Member Author

gnprice commented Nov 23, 2024

(Posting a first comment, to have the option to edit it as a home for related information in the future.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Would benefit from work in Flutter or another upstream
Projects
Status: No status
Development

No branches or pull requests

1 participant