OLD | NEW |
1 Sky | 1 Sky |
2 === | 2 === |
3 | 3 |
4 Sky is an experimental, high-performance UI framework for mobile apps. Sky helps | 4 Sky is an experimental, high-performance UI framework for mobile apps. Sky helps |
5 you create apps with beautiful user interfaces and high-quality interactive | 5 you create apps with beautiful user interfaces and high-quality interactive |
6 design that run smoothly at 120 Hz. | 6 design that run smoothly at 120 Hz. |
7 | 7 |
8 Sky consists of two components: | 8 Sky consists of two components: |
9 | 9 |
10 1. *The Sky engine.* The engine is the core of the system. Written in C++, the | 10 1. *The Sky engine.* The engine is the core of the system. Written in C++, the |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 2. Enable ``USB debugging`` in ``Settings > Developer options``. | 125 2. Enable ``USB debugging`` in ``Settings > Developer options``. |
126 | 126 |
127 3. Using a USB cable, plug your phone into your computer. If prompted on your | 127 3. Using a USB cable, plug your phone into your computer. If prompted on your |
128 device, authorize your computer to access your device. | 128 device, authorize your computer to access your device. |
129 | 129 |
130 Running a Sky application | 130 Running a Sky application |
131 ------------------------- | 131 ------------------------- |
132 | 132 |
133 The `sky` pub package includes a `sky_tool` script to assist in running | 133 The `sky` pub package includes a `sky_tool` script to assist in running |
134 Sky applications inside the `SkyDemo.apk` harness. | 134 Sky applications inside the `SkyDemo.apk` harness. The sky_tool script expects |
| 135 to be run from the root directory of your application pub package. To run |
| 136 one of the examples in this SDK, try: |
135 | 137 |
136 1. ``packages/sky/sky_tool start --install examples/stocks/main.sky`` | 138 1. ``cd examples/stocks`` |
| 139 |
| 140 2. ``pub get`` to set up a copy of the sky package in the app directory. |
| 141 |
| 142 3. ``./packages/sky/sky_tool start --install`` |
137 The --install flag is only necessary to install SkyDemo.apk if not already | 143 The --install flag is only necessary to install SkyDemo.apk if not already |
138 installed from the Google Play store. | 144 installed on the device. |
139 | 145 |
140 2. Use ``adb logcat`` to view any errors or Dart print() output from the app. | 146 4. Use ``adb logcat`` to view any errors or Dart print() output from the app. |
| 147 ``adb logcat -s chromium`` can be used to filter only adb messages from |
| 148 `SkyDemo.apk` (which for |
| 149 [legacy reasons](https://github.com/domokit/mojo/issues/129) still uses the |
| 150 android log tag 'chromium'). |
141 | 151 |
142 Measuring Performance | 152 Measuring Performance |
143 --------------------- | 153 --------------------- |
144 | 154 |
145 Sky has support for generating trace files compatible with | 155 Sky has support for generating trace files compatible with |
146 [Chrome's about:tracing](https://www.chromium.org/developers/how-tos/trace-event
-profiling-tool). | 156 [Chrome's about:tracing](https://www.chromium.org/developers/how-tos/trace-event
-profiling-tool). |
147 | 157 |
148 `packages/sky/sky_tool start_tracing` and `packages/sky/sky_tool stop_tracing` | 158 `packages/sky/sky_tool start_tracing` and `packages/sky/sky_tool stop_tracing` |
149 are the commands to use. | 159 are the commands to use. |
150 | 160 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu
blic/interfaces/keyboard.mojom) | 197 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu
blic/interfaces/keyboard.mojom) |
188 service to allow Sky Framework Dart code to interface with the underlying | 198 service to allow Sky Framework Dart code to interface with the underlying |
189 platform's Keyboard, but also to expose any additional non-Dart business logic | 199 platform's Keyboard, but also to expose any additional non-Dart business logic |
190 to Sky/Dart UI code. | 200 to Sky/Dart UI code. |
191 | 201 |
192 As and example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky
/shell/org/domokit/sky/shell/SkyApplication.java) | 202 As and example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky
/shell/org/domokit/sky/shell/SkyApplication.java) |
193 exposes a mojo `network_service` (required by Sky Engine C++ code) | 203 exposes a mojo `network_service` (required by Sky Engine C++ code) |
194 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or
g/domokit/sky/demo/SkyDemoApplication.java) | 204 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or
g/domokit/sky/demo/SkyDemoApplication.java) |
195 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky | 205 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky |
196 Framework from Dart. | 206 Framework from Dart. |
OLD | NEW |