Commit graph

51 commits

Author SHA1 Message Date
Christopher Fujino d3e771c80b
add .pub-cache back to .gitignore (#128894)
Fixes https://github.com/flutter/flutter/issues/128635

In 1fd84f88e9, we renamed the `.pub-cache` entry in the `.gitignore` file to `.pub-preload-cache`, and ensured the packaging script was now populating that directory. However, for users who already had this directory from downloading an earlier archive but used `flutter upgrade` to get the latest code, they now had a `.gitignore` file that was no longer ignoring their `.pub-cache` directory.

Now, when these users try to `flutter upgrade` again, the tool tries to verify if their checkout is clean, and will exit early if not directing the user to either stash or commit these changes, or do `flutter upgrade --force` which will try to update their branch anyway (and which would succeed since there would be no git conflict). These change adds back the `.pub-cache` entry to `.gitignore`, which won't retroactively fix broken releases, but will at least ensure if they `flutter upgrade --force` once to get this fix, they won't need to again.
2023-06-15 19:21:05 +00:00
Janice Collins 29c858adc7
Update flutter to dartdoc 6.3.0 and hide Icons implementation from doc pages (#128442)
This updates dartdoc to 6.3.0.  Release notes are available, here:

https://github.com/dart-lang/dartdoc/releases/tag/v6.3.0

Most important for Flutter are the reduction in the size of generated HTML files (dart-lang/dartdoc#3384) and a new dartdoc directive to hide constant implementations from indicated classes (dart-lang/dartdoc#3398), which fixes the longstanding issue (dart-lang/dartdoc#2657).

I've also added the api documentation zip to `.gitignore` and the `{@hideConstantImplementations}` dartdoc directive to the motivating example.  A screenshot:

![Screenshot 2023-06-07 at 9 54 58 AM](https://github.com/flutter/flutter/assets/14116827/1ad9c1f0-b224-462f-a8e3-706d9858f0d8)

I assert that this change to icons.dart should be test-exempt as existing tests cover whether or not dartdoc directives are recognized or are leaking into HTML, and the impact of adding the directive was tested in dart-lang/dartdoc#3398.
2023-06-08 20:14:23 +00:00
Tim Sneath 47c0723f26
Disable formatting on save for Dart and HTML files (#122048)
* Remove "format on save" and "format on type" from directory settings
* Also turn off HTML formatting
2023-03-14 11:08:59 -07:00
Sigurd Meldgaard 1fd84f88e9
Always use user-level pub cache (#121802)
Use the pub cache resolved by pub itself.
To add packages to the flutter.zip download they are packaged as tar.gz and added to the pub-cache on first run by using  `pub cache preload`.
2023-03-13 08:38:17 +01:00
Ivo Beckers f7b444e117
add generated_plugins.cmake (#116581)
Added files to the .gitignore that are generated on each "flutter pub get", so it's useless to ever commit these to a git repository.
2023-01-12 18:11:08 -08:00
Prome 80d4e5a05a
[Linux] add git ignores for linux plugin registrants (#113884) 2022-10-27 18:20:51 +00:00
Prome dfcd9650e3
[Windows] add generated plugins ignores (#109973) 2022-08-30 14:54:21 +00:00
Chris Bracken b04bdd0b02
[macOS] Adds macOS project files to layers example (#102539)
Adds macOS support to the layers examples collection.

Issue: https://github.com/flutter/flutter/issues/84306
2022-05-13 14:17:01 -07:00
Pierre-Louis ff09801941
Add macOS ephemeral to gitignore (#96397) 2022-01-30 13:15:10 +01:00
Emmanuel Garcia d7631275fe
Bump targetSdkVersion to 31 and organize static values (#91719) 2021-10-15 13:41:48 -07:00
Jenn Magder d099ae60f0
Add ephemeral iOS directory to put future generated files (#76830) 2021-02-25 18:16:03 -08:00
Jenn Magder f72e9c779a
Make macrobenchmarks buildable for macos (#71760) 2020-12-04 18:50:17 -08:00
Marcus Tomlinson 5f76bfb4af
Add the ability to inject a bootstrap script (#66897) 2020-09-29 19:24:21 +01:00
Mouad Debbar cbb821abe4
Hide benchmark a/b results from git (#63518) 2020-08-12 15:36:06 -07:00
Jim Graham 210f7680fc
ignore .idea directory in dart analyzer and analyzer benchmark output (#55235) 2020-07-29 17:16:26 -07:00
Yegor 9a2659ad2a
gitignore generated_plugin_registrant.dart (#60535) 2020-06-29 12:28:02 -07:00
Christopher Fujino 75d8e0e662
gitignore .last_build_id file in the repo (#59896) 2020-06-22 17:18:02 -07:00
Jonah Williams da4b5d68c4
[flutter_tools] support --split-debug-info option in android builds (#49650) 2020-02-05 17:45:24 -08:00
Jonah Williams 53f98c98d9
update gitignore and xcode changes to macOS project for flutter gallery (#48251) 2020-01-06 13:56:42 -08:00
Emmanuel Garcia b6e92003c8
Add .flutter-plugins-dependencies to the project, which contains the app's plugin dependency graph (#45379) 2019-11-22 15:02:20 -08:00
Shi-Hao Hong cce445e278
ignore vscode auto-generated files (#45080) 2019-11-18 16:25:32 -08:00
Dan Field 93ab9e64e7
Ignore generated .project files for VSCode Java Plugin (#44019) 2019-11-01 15:57:43 -07:00
Christopher Fujino 20af1f25db
Re-land fix docker build and deploy_gallery-macos (#43654) 2019-10-29 14:29:27 -07:00
Jonah Williams 33873cf724
Revert "Allow rebuilding of docker image, re-enable deploy gallery macos (#43362)" (#43557)
This reverts commit 8e8d235dd1.
2019-10-25 18:16:04 -07:00
Christopher Fujino 8e8d235dd1
Allow rebuilding of docker image, re-enable deploy gallery macos (#43362) 2019-10-25 15:10:16 -07:00
Jenn Magder 357d02c87b
Always embed Flutter.framework build mode version from Xcode configuration (#42029) 2019-10-15 15:33:55 -07:00
Jenn Magder b80b9bea38
Set DEFINES_MODULE for FlutterPluginRegistrant to generate modulemap (#40302) 2019-09-13 11:03:46 -07:00
Jason Simmons c2c4774cc6
Add flutter_export_environment.sh to the framework tree gitignore (#37811) 2019-08-07 17:59:20 -07:00
Jonah Williams 65f45999a3
initial work on coverage generating script for tool (#29494) 2019-04-18 17:59:14 -07:00
Jonah Williams a2d349c4c1
select ResidentCompiler during FlutterDevice initialization (#28603) 2019-03-07 11:02:42 -08:00
Jonathan Wilbur c713ef971e Added key.properties and *.jks to .gitignore to prevent sensitive commits (#25413) 2019-01-15 02:51:17 -08:00
Greg Spencer d126474cd1
Restore ignore for *.lock files (#26377) 2019-01-10 10:49:11 -08:00
jxltom 843f26207f Do not ignore pubspec.lock in project templates (#24209)
* Remove *.lock from gitignore

* Remove pubspec.lock from gitignore
2019-01-09 10:10:38 -08:00
Janice Collins 921117f4d3
Update dartdoc to 0.25.0. (#24542) 2018-11-19 15:23:40 -08:00
Mikkel Nygaard Ravn 8415c0fd85
Modernize Podfile in examples/platform_view (#17643) 2018-05-16 12:49:19 +02:00
xster 7a2853012f
Revert "Add a simple convenience test task runner for VSCode (#15417)" (#15705)
This reverts commit c8fd99fb33.
2018-03-19 13:43:34 -07:00
xster c8fd99fb33
Add a simple convenience test task runner for VSCode (#15417) 2018-03-12 01:05:23 -07:00
Chris Bracken ae6ac2ca74
Add .dart_tool to gitignore (#14932)
Dart is migrating to .dart_tool/ as the location for cached artifacts
and other temporary files generated by tooling in the SDK. As part of
this, pub will be migrating from .pub to .dart_tool/pub.

In future, this path will also be used for other tooling, such as package:build.
2018-02-27 15:29:31 -08:00
Mikkel Nygaard Ravn 31a0a5f4d0
Remove generated files from repo (#14697) 2018-02-16 12:33:21 +01:00
Ian Hickson 9e42e4b88f
New release process (#14061)
Generate the "version" file from git tags.
Remove the old VERSION file and mentions of versions in pubspec.yaml files.
Replace the old update_versions.dart script with a new roll_dev.dart script.
Update "flutter channel".
Update "flutter upgrade", including making it transition from alpha to dev.
Update "flutter --version" and "flutter doctor".
2018-01-18 07:59:06 -08:00
Michael Goderbauer 54e3333182
Use bundled mingit on Windows if available (#14025)
In the packaged ZIP files for Flutter we bundle mingit on Windows to make setup for our users easier (they don't have to download and install git anymore). This change makes Flutter use the bundled mingit if it is available and if git is not installed on the system.

This change will still require that users add `flutter\bin` to their path or they'll have to execute `flutter\bin\flutter.bat` directly. A follow-up PR will add a pre-configured Flutter Console that people can start with a double-click to minimize setup even further.

Also in this PR:
* If 7Zip is not available to unpack the Dart SDK try 7Zip's standalone version.
2018-01-10 16:48:39 -08:00
xster ce75911f1a
Add flutter_assets and *.class to gitignore (#13664) 2017-12-19 10:21:59 -08:00
Michael Goderbauer e5846d962e
Verify that committed GeneratedPluginRegistrant are up-to-date (#13541) 2017-12-13 17:49:54 -08:00
Greg Spencer f29ecba6de
Use .pub-cache from Flutter root, if it exists. (#13358)
The purpose of this PR is to make it so that when the user runs 'flutter', if they have a .pub-cache directory in their flutter root, we use that instead of the default location for the pub cache. Otherwise, it should act as before.

The eventual goal is to support a pre-populated flutter .zip/.tar.gz file that has everything the developer needs in one bundle. In order for that to actually work, we need to have the pub cache be self-contained, and not in the user's home dir.

Another advantage of this is that if you have multiple flutter repos that you're switching between, then the versions in the pub cache will remain static when you switch between them.

This is an attempt to re-land: #13248. Includes a fix for the test that makes it work on bots in the presence of PUB_CACHE being set, and no other changes.
2017-12-05 14:46:39 -08:00
Greg Spencer c89cf6ccc6
Reverting my .pub-cache change to figure out why it's still failing. (#13355)
* Revert "Add tests."

This reverts commit 31bad961ff.

* Revert "Use .pub-cache from Flutter root, if it exists. (#13248)"

This reverts commit 72d6bcc3f7.
2017-12-05 12:51:18 -08:00
Greg Spencer 72d6bcc3f7
Use .pub-cache from Flutter root, if it exists. (#13248)
The purpose of this PR is to make it so that when the user runs 'flutter', if they have a .pub-cache directory in their flutter root, we use that instead of the default location for the pub cache. Otherwise, it should act as before.

The eventual goal is to support a pre-populated flutter .zip/.tar.gz file that has everything the developer needs in one bundle. In order for that to actually work, we need to have the pub cache be self-contained, and not in the user's home dir.

Another advantage of this is that if you have multiple flutter repos that you're switching between, then the versions in the pub cache will remain static when you switch between them.
2017-12-05 12:02:14 -08:00
Greg Spencer 909406ba25
Consolidating .gitignore files. (#13002)
This consolidates all of the non-template .gitignore rules into the top level .gitignore, to ignore common things more broadly, with less maintenance needed for the .gitignore files. Does not touch the templates, so that they still produce needed .gitignores as part of flutter create.
2017-11-28 17:06:57 -08:00
Greg Spencer 797b39e9b2
Creates a new flutter command 'ide-config' and removes *.iml and .idea from tree. (#12958)
Creates a new (hidden) flutter command 'ide-config' that will create and/or update
existing .iml files and some files under the .idea directory, as well as
removing existing *.iml files and the .idea directory.

It also:

 * Adds *.iml to the .gitignore
 * Removes existing .iml files from the repo, and moves them to the
   packages/flutter_tools/ide_templates/intellij directory.
 * Adds a flag to ide-config ('--update-templates') that will take any new .iml
   files in the flutter tree and add them to the existing templates.
     - If --overwrite is also specified, then all existing templates will also
       be overwritten with the contents from the flutter tree, and any that have
       been deleted from the flutter tree will also be removed from the
       templates.
 * Added new run configurations for all existing app targets that will now also
   be automatically added to IntelliJ.
 * Setting up the environment also includes setting the coding style guidelines
   and the git VCS.
 * Note that after this PR lands, Flutter developers will need to run it once to
   re-create the .iml files and configuration files that have been removed.

After this PR lands, .iml files will no longer appear in the untracked files
section for git.
2017-11-13 10:55:22 -08:00
Phil Quitslund e58801cc99 Git ignore vscode .history files. (#8854)
The excellent `local-history` plugin for vscode, saves history in `.history` files; this ignores them.

See: https://marketplace.visualstudio.com/items?itemName=xyz.local-history
2017-03-17 12:38:57 -07:00
xster e43b40ffd7 .gitignore .DS_Store (#8206) 2017-02-15 15:39:17 -08:00