1. 23 Jun, 2023 1 commit
    • David Iglesias's avatar
      [web] Hides that Flutter uses requireJS in debug. (#129032) · 34b42acf
      David Iglesias authored
      Flutter web uses requireJS in `debug` mode to assemble a DDC-compiled app from a bunch of small files ("modules").
      
      This caused that `canvaskit.js` (and all other modules that used a browserify-like loading header) didn't work because they attempted to use the `define` function provided by Flutter's instance of `requireJS` (which kept the defined modules private, rather than as globals on the page, as the users of the JS expected).
      
      A [fix](https://github.com/flutter/engine/pull/27342) was added to `flutter/engine` to trick loaders into *not* using the `requireJS` module loader, but a recent change in the fix's js-interop layer *subtly* changed its JS output on the page (objects went from `undefined` to `null`), causing this:
      
      * https://github.com/flutter/flutter/issues/126131 (and others)
      
      This PR hides a bit of code that is commonly used by module loaders to decide that they may use the `define` function provided by requireJS (so the engine workaround can be removed).
      
      ## Next steps
      
      * https://github.com/flutter/engine/pull/42941
      
      ## Issues
      
      Partially addresses: https://github.com/flutter/flutter/issues/126131 (and others)
      
      ## Tests
      
      * Added a unit test to ensure the `delete` stays
      * Manually tested with the Gallery app in `debug` mode with a bunch of user-supplied scripts that currently fail to load.
        * Also tested hot restart as suggested by @nshahan
      34b42acf
  2. 22 Mar, 2023 1 commit
  3. 20 Mar, 2023 1 commit
  4. 17 Mar, 2023 2 commits
  5. 21 Oct, 2022 1 commit
  6. 19 Jul, 2022 1 commit
  7. 16 Aug, 2021 1 commit
  8. 14 May, 2021 1 commit
  9. 01 May, 2021 1 commit
  10. 12 Apr, 2021 1 commit
  11. 27 Jan, 2021 1 commit
  12. 05 Jan, 2021 1 commit
  13. 03 Dec, 2020 1 commit
  14. 20 Nov, 2020 1 commit
  15. 15 Oct, 2020 1 commit
  16. 19 Aug, 2020 1 commit
  17. 15 Jul, 2020 1 commit
  18. 18 Mar, 2020 1 commit
  19. 11 Feb, 2020 1 commit
  20. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  21. 25 Oct, 2019 1 commit