1. 09 Dec, 2021 1 commit
  2. 08 Oct, 2021 3 commits
  3. 05 Oct, 2021 1 commit
  4. 04 Oct, 2021 1 commit
    • Greg Spencer's avatar
      Clean up examples, remove section markers and --template args (#91133) · fd9ce277
      Greg Spencer authored
      This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.
      
      I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.
      
      I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
      fd9ce277
  5. 28 Sep, 2021 1 commit
  6. 20 Sep, 2021 1 commit
  7. 30 Aug, 2021 1 commit
  8. 13 Aug, 2021 1 commit
  9. 12 Aug, 2021 1 commit
    • Greg Spencer's avatar
      Switch document generation to use the snippets package (#87231) · 10e4b040
      Greg Spencer authored
      Switch document generation to use the snippets package instead of the snippets code in the Flutter repo. In the process, some bugs in sample code analysis have been fixed, and I've fixed some more errors in the samples.
      
      This will allow the snippets package to be developed separately from the Flutter repo, and reduce the code in the Flutter repo.
      
      The snippets code is deleted in this PR.
      
      I also converted some comments in the snippet templates to be regular comments instead of doc comments, because having a doc comment block before the imports causes the Dart import sorter to lose the comment. They should have been regular comments in the first place.
      
      The snippets package resides in the assets-for-api-docs repo.
      
      The sample analysis has also been converted to be run in parallel, and I've bumped the Dartdoc version to 1.0.2.
      10e4b040
  10. 04 Aug, 2021 1 commit
    • Greg Spencer's avatar
      Fix the sample code analyzer to properly handle `missing_identifier` errors (#87593) · 169bb1b7
      Greg Spencer authored
      This fixes how the sample analyzer handles missing_identifier errors. It was looking at the wrong line, and missing an else clause, so it was silently allowing missing_identifier errors to pass.
      
      In addition, this fixes the sample generation so that it uses the correct filename for the output files: it previously was looking for the first line that had a filename, which was meant to indicate a non-generated line. This change adds a new Line.generated constructor for generated lines, so that they can also have the correct filename associated with them.
      169bb1b7
  11. 10 Jun, 2021 1 commit
  12. 07 Jun, 2021 1 commit
  13. 21 May, 2021 1 commit
  14. 07 May, 2021 1 commit
  15. 03 May, 2021 1 commit
    • Greg Spencer's avatar
      Turn off directives_ordering lint when analyzing samples (#81698) · ea9d9ee9
      Greg Spencer authored
      This turns off the "directives_ordering" lint when analyzing samples, since it's indeterminate what the ordering will be, given that samples derive their imports both from the template and the example code.
      
      This is temporary to avoid broken builds, but the correct solution is to reorder the output so that the imports are ordered properly so that we give the proper example for our users.
      ea9d9ee9
  16. 30 Apr, 2021 1 commit
  17. 23 Apr, 2021 1 commit
  18. 22 Apr, 2021 1 commit
  19. 12 Mar, 2021 1 commit
  20. 02 Mar, 2021 1 commit
  21. 14 Dec, 2020 1 commit
  22. 11 Dec, 2020 1 commit
  23. 09 Nov, 2020 1 commit
  24. 27 Oct, 2020 1 commit
  25. 23 Sep, 2020 1 commit
    • Jonah Williams's avatar
      [flutter_tools] only lock if an upgrade/download will be performed... · f1472e1f
      Jonah Williams authored
      [flutter_tools] only lock if an upgrade/download will be performed (linux/macos) and output building messages to stderr (#65422)
      
      Currently an invocation of flutter/dart will always attempt to acquire a lock. This can pose problems for tools that attempt to run multiple dart/flutter instances.
      
      Instead update the lock logic (on Linux/macOS) so that we only attempt to acquire it if an update/snapshot needs to be performed. To avoid repeatedly performing downloads/snapshots if multiple flutter/dart invocations are fired off concurrently when an update needs to be performed, do a second check of the download/snapshot condition after the lock is released.
      
      Additionally, moves all of the building/debug output to stderr on both the bash and batch scripts. This allows machine mode consumption of the tool to ignore needing to parse/handle the rebuild messages.
      f1472e1f
  26. 08 Jan, 2020 1 commit
  27. 07 Jan, 2020 1 commit
  28. 16 Dec, 2019 1 commit
  29. 05 Dec, 2019 1 commit
  30. 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
  31. 19 Nov, 2019 1 commit
    • Greg Spencer's avatar
      Analyze dartpad (#45124) · a3186fba
      Greg Spencer authored
      This fixes the sample code analysis to treat dartpad snippets in the same way as snippet snippets, which it wasn't until now (the snippet generator was treating them as "samples"), and some errors crept in. This PR also fixes those errors.
      
      Also, added a --verbose option to the sample analyzer.
      a3186fba
  32. 17 Sep, 2019 1 commit
  33. 02 Jul, 2019 1 commit
  34. 01 Jul, 2019 1 commit
  35. 27 Jun, 2019 1 commit
  36. 25 Jun, 2019 1 commit
  37. 21 May, 2019 1 commit
  38. 02 Apr, 2019 1 commit