Dart actually expects package: to work. This CL makes package:foo map to /packages/foo, similar to how Dartium or bin/dart would expect. This also means overlaying the /gen directory over the actual package outputs (as consumers of an SDK would expect) as well as adding an additional /lib indirection for the actual package source as the Dart pub tool will expect. This is far from perfect, but it unlocks us actually producing a sky SDK. I expect there may be some fallout from this change as I'm sure I missed some package: uses. We also don't have a general solution for all /foo/bar/baz includes which randomly included parts of mojo's source directory. Those will need to be updated to use a package: and deploy_sdk.py taught how to build a package for them. R=abarth@chromium.org Review URL: https://codereview.chromium.org/990493002
1.5 KiB
Sky SDK
This document describes an experimental development kit for Sky. We're still iterating on Sky heavily, which means the framework and underlying engine are both likely to change in incompatible ways several times, but if you're interested in trying out the system, this document can help you get started.
Set up your computer
- Install the Dart SDK:
- Install the
adbtool from the Android SDK:
- Install the Sky SDK:
git clone https://github.com/domokit/sky_sdk.git
- Ensure sure $DART_SDK is set to the path of your Dart SDK and 'adb' (inside 'platform-tools' in the android sdk) is in your $PATH.
Set up your device
Currently Sky requires an Android device running the Lollipop (or newer) version of the Android operating system.
-
Enable developer mode on your device by visiting
Settings > About phoneand tapping theBuild numberfield five times. -
Enable
USB debugginginSettings > Developer options. -
Using a USB cable, plug your phone into your computer. If prompted on your device, authorize your computer to access your device.
Running a Sky application
-
sky_sdk/bin/sky --install sky_sdk/examples/index.skyThe --install flag is only necessary the first time to install SkyDemo.apk. -
Use
adb logcatto view any errors or Dart print() output from the app.