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 18 matching lines...) Expand all Loading... | |
29 Sky uses Dart and Sky applications are | 29 Sky uses Dart and Sky applications are |
30 [Dart Packages](https://www.dartlang.org/docs/tutorials/shared-pkgs/). | 30 [Dart Packages](https://www.dartlang.org/docs/tutorials/shared-pkgs/). |
31 Application creation starts by creating a new directory and | 31 Application creation starts by creating a new directory and |
32 adding a [pubspec.yaml](https://www.dartlang.org/tools/pub/pubspec.html): | 32 adding a [pubspec.yaml](https://www.dartlang.org/tools/pub/pubspec.html): |
33 | 33 |
34 pubspec.yaml for your app: | 34 pubspec.yaml for your app: |
35 ```yaml | 35 ```yaml |
36 name: your_app_name | 36 name: your_app_name |
37 dependencies: | 37 dependencies: |
38 sky: any | 38 sky: any |
39 mojom: '>=0.0.3 <1.0.0' | |
eseidel
2015/05/07 17:55:33
Other than this line, the change looks fine.
blundell
2015/05/07 18:38:47
What you suggested was my first thought as well. U
sethladd
2015/05/11 16:38:02
If you want to run a Dart script from a package th
| |
39 ``` | 40 ``` |
40 | 41 |
41 Once the pubspec is in place, create a `lib` directory (where your dart code | 42 Once the pubspec is in place, create a `lib` directory (where your dart code |
42 will go) and run `pub get` to download all necessary dependencies and create | 43 will go) and run the following: |
43 the symlinks necessary for 'package:your_app_names/main.dart' includes to work. | 44 |
45 `pub get && pub run mojom:generate`. | |
44 | 46 |
45 Currently the Sky Engine assumes the entry point for your application is a | 47 Currently the Sky Engine assumes the entry point for your application is a |
46 `main` function located inside a `main.sky` file at the root of the package. | 48 `main` function located inside a `main.sky` file at the root of the package. |
47 `.sky` is an html-like format: | 49 `.sky` is an html-like format: |
48 ``` | 50 ``` |
49 <sky> | 51 <sky> |
50 <script> | 52 <script> |
51 import 'package:your_app_name/main.dart'; | 53 import 'package:your_app_name/main.dart'; |
52 | 54 |
53 void main() { | 55 void main() { |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
197 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu blic/interfaces/keyboard.mojom) | 199 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu blic/interfaces/keyboard.mojom) |
198 service to allow Sky Framework Dart code to interface with the underlying | 200 service to allow Sky Framework Dart code to interface with the underlying |
199 platform's Keyboard, but also to expose any additional non-Dart business logic | 201 platform's Keyboard, but also to expose any additional non-Dart business logic |
200 to Sky/Dart UI code. | 202 to Sky/Dart UI code. |
201 | 203 |
202 As and example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky /shell/org/domokit/sky/shell/SkyApplication.java) | 204 As and example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky /shell/org/domokit/sky/shell/SkyApplication.java) |
203 exposes a mojo `network_service` (required by Sky Engine C++ code) | 205 exposes a mojo `network_service` (required by Sky Engine C++ code) |
204 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or g/domokit/sky/demo/SkyDemoApplication.java) | 206 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or g/domokit/sky/demo/SkyDemoApplication.java) |
205 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky | 207 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky |
206 Framework from Dart. | 208 Framework from Dart. |
OLD | NEW |