flutter_flutter/engine/src/flutter/CONTRIBUTING.md

1.7 KiB

Contributing to Sky Engine

Getting the code

To get the code:

solutions = [
  {
    "managed": False,
    "name": "src",
    "url": "git@github.com:<your_name_here>/sky_engine.git",
    "custom_deps": {},
    "deps_file": "DEPS",
    "safesync_url": "",
  },
]
target_os = ["android"]
  • svn ls https://dart.googlecode.com/ and accept the certificate permanently.
  • gclient sync
  • cd src
  • git remote add upstream git@github.com:domokit/sky_engine.git

Building the code

Currently we support building for an Android target and for a headless Linux target.

Android

  • (Only the first time) ./build/install-build-deps-android.sh
  • ./mojo/tools/mojob.py gn --android (Note: There's currently a harmless go-related error when running this command.)
  • ninja -C out/android_Debug

Linux

  • (Only the first time) ./build/install-build-deps.sh
  • ./mojo/tools/mojob.py gn (Note: There's currently a harmless go-related error when running this command.)
  • ninja -C out/Debug

Contributing code

The Sky engine repository gladly accepts contributions via GitHub pull requests:

  • git fetch upstream
  • git checkout upstream/master -b name_of_your_branch
  • Hack away
  • git commit -a
  • git push origin name_of_your_branch
  • Go to https://github.com/<your_name_here>/sky_engine and click the "Compare & pull request" button