diff --git a/.travis.yml b/.travis.yml index 69cb8522a83d..b6707ee799e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ matrix: sources: - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version packages: + - lib32stdc++6 # https://github.com/flutter/flutter/issues/6207 - libstdc++6 - fonts-droid before_script: @@ -33,6 +34,7 @@ matrix: - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version - llvm-toolchain-precise # for clang-format-5.0 packages: + - lib32stdc++6 # https://github.com/flutter/flutter/issues/6207 - libstdc++6 - fonts-droid - clang-format-5.0 @@ -42,7 +44,7 @@ matrix: - flutter doctor - pub global activate flutter_plugin_tools script: - - ./script/plugin_tools.sh format --travis --clang-format=clang-format-5.0 + - flutter format `pwd`/packages - ./script/plugin_tools.sh test # Job 3) Build example APKs and run Java tests - os: linux diff --git a/README.md b/README.md index fd0eba12dc44..34175e21074e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,37 @@ -# Helpful packages for Flutter +# Flutter plugins -This repository contains miscellaneous packages that help you build flutter -apps. It is maintained by the Flutter team. +[![Build Status](https://travis-ci.org/flutter/packages.svg?branch=master)](https://travis-ci.org/flutter/packages) +[![Build Status](https://api.cirrus-ci.com/github/flutter/packages.svg)](https://cirrus-ci.com/github/flutter/packages) -# Contributing +This repo is a companion repo to the main [flutter repo]( +https://github.com/flutter/flutter). It contains the source code for Flutter's +first-party packages (i.e., packages developed by the core Flutter team). +Check the [`packages`](./packages) directory to see all packages. + +These packages are also available on [pub](https://pub.dartlang.org/flutter/packages). + +## Issues + +Please file any issues, bugs, or feature requests in the [main flutter +repo](https://github.com/flutter/flutter/issues/new). + +## Contributing + +If you wish to contribute a new package to the Flutter ecosystem, please +see the documentation for [developing packages](https://flutter.io/developing-packages/). You can store +your package source code in any GitHub repository (the present repo is only +intended for packages developed by the core Flutter team). Once your package +is ready you can [publish](https://flutter.io/developing-packages/#publish) +to the [pub repository](https://pub.dartlang.org/). + +If you wish to contribute a change to any of the existing packages in this repo, +please review our [contribution guide](https://github.com/flutter/packages/blob/master/CONTRIBUTING.md), +and send a [pull request](https://github.com/flutter/packages/pulls). + +## Plugins +These are the available packages in this repository. + +| Plugin | Pub | +|--------|-----| +| [palette_generator](./packages/palette_generator/) | [![pub package](https://img.shields.io/pub/v/palette_generator.svg)](https://pub.dartlang.org/packages/palette_generator) | -See [CONTRIBUTING.md](CONTRIBUTING.md) for information on contributing to these -packages. diff --git a/analysis_options.yaml b/analysis_options.yaml index 8661fe033e7a..f3520977cd42 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -25,6 +25,8 @@ analyzer: missing_return: warning # allow having TODOs in the code todo: ignore + exclude: + - 'flutter/**' linter: rules: diff --git a/script/plugin_tools.sh b/script/plugin_tools.sh index c2a3a0a49db7..516ba01d077c 100755 --- a/script/plugin_tools.sh +++ b/script/plugin_tools.sh @@ -5,6 +5,7 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then echo "Running for all packages" pub global run flutter_plugin_tools "$@" else + echo "Looking for changes in $TRAVIS_COMMIT_RANGE" FLUTTER_CHANGED_GLOBAL=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep -v packages | wc -l` FLUTTER_CHANGED_PACKAGES=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep -o "packages/[^/]*" | sed -e "s/packages\///g" | sort | uniq | paste -s -d, -` if [ "${FLUTTER_CHANGED_PACKAGES}" = "" ] || [ $FLUTTER_CHANGED_GLOBAL -gt 0 ]; then