| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 Sky apps can access services from the host operating system using Mojo. For | 57 Sky apps can access services from the host operating system using Mojo. For |
| 58 example, you can access the network using the `network_service.mojom` interface. | 58 example, you can access the network using the `network_service.mojom` interface. |
| 59 Although you can use these low-level interfaces directly, you might prefer to | 59 Although you can use these low-level interfaces directly, you might prefer to |
| 60 access these services via libraries in the framework. For example, the | 60 access these services via libraries in the framework. For example, the |
| 61 `fetch.dart` library wraps the underlying `network_service.mojom` in an | 61 `fetch.dart` library wraps the underlying `network_service.mojom` in an |
| 62 ergonomic interface: | 62 ergonomic interface: |
| 63 | 63 |
| 64 ```dart | 64 ```dart |
| 65 import 'package:sky/framework/net/fetch.dart'; | 65 import 'package:sky/framework/net/fetch.dart'; |
| 66 | 66 |
| 67 void main() { | 67 main() async { |
| 68 fetch('example.txt').then((Response response) { | 68 var response = await fetch('example.txt'); |
| 69 print(response.bodyAsString()); | 69 print(response.bodyAsString()); |
| 70 }); | |
| 71 } | 70 } |
| 72 ``` | 71 ``` |
| 73 | 72 |
| 74 Set up your computer | 73 Set up your computer |
| 75 -------------------- | 74 -------------------- |
| 76 | 75 |
| 77 1. Install the Dart SDK: | 76 1. Install the Dart SDK: |
| 78 - https://www.dartlang.org/tools/download.html | 77 - https://www.dartlang.org/tools/download.html |
| 79 | 78 |
| 80 2. Install the ``adb`` tool from the Android SDK: | 79 2. Install the ``adb`` tool from the Android SDK: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 100 3. Using a USB cable, plug your phone into your computer. If prompted on your | 99 3. Using a USB cable, plug your phone into your computer. If prompted on your |
| 101 device, authorize your computer to access your device. | 100 device, authorize your computer to access your device. |
| 102 | 101 |
| 103 Running a Sky application | 102 Running a Sky application |
| 104 ------------------------- | 103 ------------------------- |
| 105 | 104 |
| 106 1. ``packages/sky/lib/sky_tool --install examples/stocks/main.sky`` | 105 1. ``packages/sky/lib/sky_tool --install examples/stocks/main.sky`` |
| 107 The --install flag is only necessary the first time to install SkyDemo.apk. | 106 The --install flag is only necessary the first time to install SkyDemo.apk. |
| 108 | 107 |
| 109 2. Use ``adb logcat`` to view any errors or Dart print() output from the app. | 108 2. Use ``adb logcat`` to view any errors or Dart print() output from the app. |
| OLD | NEW |