Skip to content

Commit 27f8bb9

Browse files
authored
Udpate documentation on the third_party directories (flutter#161407)
Fixes flutter#161336
1 parent 449079d commit 27f8bb9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/contributing/Style-guide-for-Flutter-repo.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,12 @@ widget for that rather than updating the existing buttons to have the new style.
361361

362362
All code in all Flutter repositories must be contributed by developers who have signed [the Google CLA](https://cla.developers.google.com/), and must be licensed using our normal BSD license with a copyright referencing "The Flutter Authors", except if it is "third party code".
363363

364-
"Third party code" that is not part of a Dart package must be in a subdirectory of a `third_party` directory at the root of the relevant repository, and the subdirectory in question must contain a `LICENSE` file that details the license covering that code and a `README` describing the provenance of that code.
364+
"Third party code" that is not part of a Dart package must be in a subdirectory of a `third_party` directory located:
365+
366+
* [/third_party](../../third_party) for the Flutter Framework
367+
* [/engine/src/flutter/third_party](../../engine/src/flutter/third_party) for the Flutter Engine.
368+
369+
The subdirectory in question must contain a `LICENSE` file that details the license covering that code and a `README` describing the provenance of that code.
365370

366371
"Third party code" that is part of a Dart package and is not Dart code must be in a subdirectory of a `third_party` directory at the root of the package, and the subdirectory in question must contain a `LICENSE` file that details the license covering that code and a `README` describing the provenance of that code. The license must then also be duplicated into the package's `LICENSE` file using the syntax described in the [LicenseRegistry](https://master-api.flutter.dev/flutter/foundation/LicenseRegistry-class.html) API docs.
367372

@@ -371,7 +376,7 @@ All licenses included in this manner must have been reviewed and determined to b
371376

372377
All such "third party code" must either be a fork for which we take full responsibility, or there must be an automated rolling mechanism that keeps the code up to date when the upstream source changes.
373378

374-
In general it is _strongly_ recommended that we avoid any such code unless strictly necessary.
379+
In general it is _strongly_ recommended that we avoid any such code unless strictly necessary. In particular, we aim for all _Flutter Framework_ code in the flutter/flutter repository to be single-licensed.
375380

376381
## Documentation (dartdocs, javadocs, etc)
377382

0 commit comments

Comments
 (0)