Api-roll 22: 2015-08-17

R=sgjesse@google.com

Review URL: https://codereview.chromium.org//1296863002 .
165 files changed
tree: 9b388884cc3f344426c1e4c9ac2a61d6c6f343d4
  1. bin/
  2. discovery/
  3. generated/
  4. lib/
  5. resources/
  6. .gitignore
  7. AUTHORS
  8. codereview.settings
  9. config.yaml
  10. LICENSE
  11. PATENTS
  12. pubspec.lock
  13. pubspec.yaml
  14. README.md
README.md

Repository for building the googleapis and googleapis_beta packages.

Workflow:

  • Run pub upgrade in this directory:
    $ rm -rf .pub
    $ pub upgrade
  • Download & generate APIs using the config.yaml configuration:
    $ dart bin/generate.dart run_config download
  • Possible reset some of the discovery documents downloaded (e.g. drive, prediction)

  • Generate APIs

    $ dart bin/generate.dart run_config generate
  • Diff with previous APIs and determine whether to do minor or major version update. Update CHANGELOG.md files in resources/.

  • Update config.yaml with new version and generate again.

    $ dart bin/generate.dart run_config generate
  • Run tests:
    $ pub global activate test_runner
    $ pushd generated/googleapis
    $ pub get
    $ pub global run test_runner
    $ cd ../googleapis_beta
    $ pub get
    $ pub global run test_runner
    $ popd
  • Commit downloaded discovery documents and generated packages.

  • Upload packages to pub.