1. 14 Oct, 2020 1 commit
  2. 13 Oct, 2020 1 commit
  3. 12 Oct, 2020 5 commits
  4. 17 Sep, 2020 1 commit
  5. 25 Aug, 2020 1 commit
    • Jonah Williams's avatar
      [flutter_tools] support code size tooling on iOS, linux, windows, macOS, and... · 059de153
      Jonah Williams authored
      [flutter_tools] support code size tooling on iOS, linux, windows, macOS, and Android on Windows (#63610)
      
      Adds support for size analysis on iOS, macOS, linux, and Windows - using an uncompressed directory based approach. The output format is not currently specified.
      
      Adds support for size analysis on android on windows, switching to package:archive
      
      Updates the console format to display as a tree, allowing longer paths. Increases the number of dart libraries shown (to avoid only ever printing the flutter/dart:ui libraries, which dominate the size)
      059de153
  6. 14 Aug, 2020 1 commit
  7. 06 Jul, 2020 1 commit
    • stuartmorgan's avatar
      Switch Windows to CMake (#60629) · 4b120501
      stuartmorgan authored
      * First pass at CMake files; untested
      
      * First pass of adding CMake generation logic on Windows
      
      * Misc fixes
      
      * Get bundling working, start incoprorating CMake build into tool
      
      * Fix debug, exe name.
      
      * Add resources
      
      * Move cmake.dart
      
      * Rip out all the vcxproj/solution plumbing
      
      * Fix plugin cmake generation
      
      * Build with cmake rather than calling VS directly
      
      * Adjust Windows plugin template to match standard header directory structure
      
      * Pass config selection when building
      
      * Partially fix multi-config handling
      
      * Rev template version
      
      * Share the CMake generation instead of splitting it out
      
      * VS build/run cycle works, with slightly awkward requirement to always build all
      
      * Update manifest
      
      * Plugin template fixes
      
      * Minor adjustments
      
      * Build install as part of build command, instead of separately
      
      * Test cleanup
      
      * Update Linux test for adjusted generated CMake approach
      
      * Plugin test typo fix
      
      * Add missing stub file for project test
      
      * Add a constant for VS generator
      4b120501
  8. 28 May, 2020 1 commit
  9. 26 Apr, 2020 1 commit
    • Jonah Williams's avatar
      [flutter_tools] quality pass on Linux build (#55556) · dd88b204
      Jonah Williams authored
      - Update the Linux build to support most of the build configuration, though like windows most only make sense for profile/release.
      - Ensure VERBOSE_SCRIPT_LOGGING is set when the logger is verbose
      - Automatically run pub get like other build commands
      dd88b204
  10. 23 Apr, 2020 1 commit
  11. 25 Mar, 2020 2 commits
  12. 23 Mar, 2020 1 commit
    • stuartmorgan's avatar
      Add pre-stable support for create on Windows (#51895) · 685e9d1e
      stuartmorgan authored
      Adds initial support for flutter create of apps and plugins. This is derived from the current FDE example app and sample plugin, adding template values where relevant.
      
      Since the APIs/tooling/template aren't stable yet, the app template includes a version marker, which will be updated each time there's a breaking change. The build now checks that the template version matches the version known by that version of the tool, and gives a specific error message when there's a mismatch, which improves over the current breaking change experience of hitting whatever build failure the breaking change causes and having to figure out that the problem is that the runner is out of date. It also adds a warning to the create output about the fact that it won't be stable.
      
      Plugins don't currently have a version marker since in practice this is not a significant problem for plugins yet the way it is for runners; we can add it later if that changes.
      
      Fixes #30704
      685e9d1e
  13. 10 Mar, 2020 1 commit
  14. 06 Mar, 2020 1 commit
  15. 13 Feb, 2020 2 commits
    • stuartmorgan's avatar
      Generate a Property Sheet for Windows plugins (#50740) · f4177a6d
      stuartmorgan authored
      Generates a Property Sheet for Windows builds containing link and include path
      information for any included plugins. This allows automating part of the process
      of integrating plugins into the build that is currently manual.
      
      To support this change, refactored msbuild_utils into a PropertySheet class so that
      it can be used to make different property sheets.
      f4177a6d
    • stuartmorgan's avatar
      Create plugin symlinks for Windows and Linux (#50599) · 7bdd4757
      stuartmorgan authored
      This makes ephemeral symlinks to each plugin, for use by build systems.
      This is similar to the logic implemented in the Podfile on iOS and
      macOS, but managed internally to the Flutter tool.
      
      Exploration for addressing #32719 and #32720
      Related to #41146
      7bdd4757
  16. 08 Jan, 2020 1 commit
    • stuartmorgan's avatar
      Check for desktop project files before building (#48350) · 58d6c425
      stuartmorgan authored
      Moves the checks that projects have been configured for desktop to a lower level, where they will cover more codepaths (e.g., 'run'), and improves them to check for native build projects, rather than just directories, to catch cases where the directory exists (e.g., due to accidental creation of generated files).
      
      Also adds links to the error messages pointing to instructions on adding desktop support to a project.
      
      Fixes #47145
      58d6c425
  17. 06 Jan, 2020 1 commit
  18. 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
  19. 19 Nov, 2019 1 commit
  20. 28 Oct, 2019 1 commit
  21. 10 Oct, 2019 1 commit
  22. 11 Sep, 2019 1 commit
    • stuartmorgan's avatar
      Add an ephemeral directory to Windows projects (#40194) · e6ae95c4
      stuartmorgan authored
      Moves files generated in windows/flutter/ as part of the build to an ephemeral/ subdirectory, matching the approach used on macOS (and in the future, Windows).
      
      Adds that directory to the generated properties file to minimize hard-coding of paths in the project.
      e6ae95c4
  23. 21 Aug, 2019 1 commit
    • stuartmorgan's avatar
      Add build warning for non-debug desktop builds (#38932) · 01530928
      stuartmorgan authored
      When building in profile or release mode on desktop, add a prominent
      warning that it's actually a debug build. This is to help address issues
      with people being unaware of the current state of builds due to
      following third-party guides rather than official documentation.
      
      macOS is not included since PRs are in flight for macOS release support.
      01530928
  24. 01 Aug, 2019 1 commit
  25. 29 Jul, 2019 1 commit
  26. 16 Jul, 2019 1 commit
  27. 01 Jul, 2019 1 commit
  28. 07 Jun, 2019 1 commit
  29. 06 Jun, 2019 1 commit
    • stuartmorgan's avatar
      Add 'doctor' support for Windows (#33872) · fb8df82c
      stuartmorgan authored
      Moves the logic for finding vcvars64.bat to a new VisualStudio class
      that encapsulates finding, and providing information about, VisualStudio
      installations. Adds a validator for it, and runs it for Windows
      workflows in doctor.
      fb8df82c
  30. 30 May, 2019 1 commit
  31. 29 May, 2019 3 commits
    • stuartmorgan's avatar
      Build the solution on Windows (#33528) · 79ae04d4
      stuartmorgan authored
      Switch from building Runner.vcxproj to Runner.sln on Windows, to allow
      for multiple-project builds (e.g., separate plugin projects).
      79ae04d4
    • stuartmorgan's avatar
      Use vswhere to find Visual Studio (#33448) · aecf053e
      stuartmorgan authored
      Rather than hard-coding a set of locations to check, use vswhere (which
      is installed by VS 2017 and later), and construct the vcvars64.bat path
      relative to that. This will allow Windows builds to work without special
      configuration for people who have VS installed at a custom path.
      
      Also adds error logging with different messages for each failure point,
      so that rather than the not-very-informative 'failed to find
      vcvars64.bat' message, the failure will provide feedback about what to
      do.
      
      This is an interim solution; later this will be replaced by a
      VisualStudio class with associated validator to match the structure of
      the other toolchains.
      
      Fixes #33249
      aecf053e
    • stuartmorgan's avatar
      Wrap Windows build invocation in a batch script (#33443) · e1a784ae
      stuartmorgan authored
      Invoking msbuild with runInShell makes handling path escaping more
      error-prone, and substantially increases the chances of running into
      maximum path limits. This replaces the direct call with a .bat wrapper
      that calls vsvars64.bat then msbuild, and uses relative paths within the
      script to keep command lengths short.
      
      Fixes https://github.com/flutter/flutter/issues/32792
      e1a784ae
  32. 15 May, 2019 1 commit
    • stuartmorgan's avatar
      Streamline Windows build process (#32783) · 4e1bfca8
      stuartmorgan authored
      Allows Windows builds to use the same structure and script as Linux
      builds now use, calling into tool_backend to manage copying resources to
      the project directory and building the bundle.
      
      Also switches from expecting name_update.bat to expecting flutter\exe_filename
      to be written during the build, as with the recent changes to the macOS build, to
      reduce the amount of boilerplate needed in a windows\ project directory.
      4e1bfca8