Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: sky/sdk/README.md

Issue 1218593002: Move sky/examples to sky/sdk/lib/example, and code changes to support that change. Fixes T277. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/home.dart ('k') | sky/sdk/home.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Contributing 1 Contributing
2 ============ 2 ============
3 3
4 [sky_sdk](https://github.com/domokit/sky_sdk) is generated from the 4 [sky_sdk](https://github.com/domokit/sky_sdk) is generated from the
5 [mojo repository](https://github.com/domokit/mojo) using 5 [mojo repository](https://github.com/domokit/mojo) using
6 [deploy_sdk.py](https://github.com/domokit/mojo/blob/master/sky/tools/deploy_sdk .py) 6 [deploy_sdk.py](https://github.com/domokit/mojo/blob/master/sky/tools/deploy_sdk .py)
7 Static files (including this README.md) are located under 7 Static files (including this README.md) are located under
8 [sky/sdk](https://github.com/domokit/mojo/tree/master/sky/sdk). Pull 8 [sky/sdk](https://github.com/domokit/mojo/tree/master/sky/sdk). Pull
9 requests and issue reports are glady accepted at the 9 requests and issue reports are glady accepted at the
10 [mojo repository](https://github.com/domokit/mojo)! 10 [mojo repository](https://github.com/domokit/mojo)!
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Later, if a `Component` changes state, the framework calls that component's 81 Later, if a `Component` changes state, the framework calls that component's
82 `build()` function again to create a new widget tree. The framework diffs the 82 `build()` function again to create a new widget tree. The framework diffs the
83 new widget tree against the old widget tree and any differences are applyed 83 new widget tree against the old widget tree and any differences are applyed
84 to the underlying render tree. 84 to the underlying render tree.
85 85
86 * To learn more about the widget system, please see the 86 * To learn more about the widget system, please see the
87 [widgets tutorial](lib/widgets/README.md). 87 [widgets tutorial](lib/widgets/README.md).
88 * To learn how to run Sky on your device, please see the 88 * To learn how to run Sky on your device, please see the
89 [Running a Sky application](#running-a-sky-application) section in this 89 [Running a Sky application](#running-a-sky-application) section in this
90 document. 90 document.
91 * To dive into examples, please see the [examples directory](examples/). 91 * To dive into examples, please see the [examples directory](sdk/lib/example).
abarth-chromium 2015/06/26 21:56:40 I think just "lib/example" given that we're alread
92 92
93 Services 93 Services
94 -------- 94 --------
95 95
96 Sky apps can access services from the host operating system using Mojo IPC. For 96 Sky apps can access services from the host operating system using Mojo IPC. For
97 example, you can access the network using the `network_service.mojom` interface. 97 example, you can access the network using the `network_service.mojom` interface.
98 Although you can use these low-level interfaces directly, you might prefer to 98 Although you can use these low-level interfaces directly, you might prefer to
99 access these services via libraries in the framework. For example, the 99 access these services via libraries in the framework. For example, the
100 `fetch.dart` library wraps the underlying `network_service.mojom` in an 100 `fetch.dart` library wraps the underlying `network_service.mojom` in an
101 ergonomic interface: 101 ergonomic interface:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 device, authorize your computer to access your device. 139 device, authorize your computer to access your device.
140 140
141 Running a Sky application 141 Running a Sky application
142 ------------------------- 142 -------------------------
143 143
144 The `sky` pub package includes a `sky_tool` script to assist in running 144 The `sky` pub package includes a `sky_tool` script to assist in running
145 Sky applications inside the `SkyDemo.apk` harness. The `sky_tool` script 145 Sky applications inside the `SkyDemo.apk` harness. The `sky_tool` script
146 expects to be run from the root directory of your application pub package. To 146 expects to be run from the root directory of your application pub package. To
147 run one of the examples in this SDK, try: 147 run one of the examples in this SDK, try:
148 148
149 1. `cd examples/stocks` 149 1. `cd sdk/lib/example/stocks`
150 150
151 2. `pub get` to set up a copy of the sky package in the app directory. 151 2. `pub get` to set up a copy of the sky package in the app directory.
152 152
153 3. `./packages/sky/sky_tool start` to start the dev server and upload your 153 3. `./packages/sky/sky_tool start` to start the dev server and upload your
154 app to the device. 154 app to the device.
155 (NOTE: add a `--install` flag to install `SkyDemo.apk` if it is not already 155 (NOTE: add a `--install` flag to install `SkyDemo.apk` if it is not already
156 installed on the device.) 156 installed on the device.)
157 157
158 4. Use `adb logcat` to view any errors or Dart `print()` output from the app. 158 4. Use `adb logcat` to view any errors or Dart `print()` output from the app.
159 `adb logcat -s chromium` can be used to filter only adb messages from 159 `adb logcat -s chromium` can be used to filter only adb messages from
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu blic/interfaces/keyboard.mojom) 208 [Keyboard](https://github.com/domokit/mojo/blob/master/mojo/services/keyboard/pu blic/interfaces/keyboard.mojom)
209 service to allow Sky Framework Dart code to interface with the underlying 209 service to allow Sky Framework Dart code to interface with the underlying
210 platform's Keyboard, but also to expose any additional non-Dart business logic 210 platform's Keyboard, but also to expose any additional non-Dart business logic
211 to Sky/Dart UI code. 211 to Sky/Dart UI code.
212 212
213 As an example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky/ shell/org/domokit/sky/shell/SkyApplication.java) 213 As an example, [SkyApplication](https://github.com/domokit/mojo/blob/master/sky/ shell/org/domokit/sky/shell/SkyApplication.java)
214 exposes a mojo `network_service` (required by Sky Engine C++ code) 214 exposes a mojo `network_service` (required by Sky Engine C++ code)
215 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or g/domokit/sky/demo/SkyDemoApplication.java) 215 [SkyDemoApplication](https://github.com/domokit/mojo/blob/master/sky/apk/demo/or g/domokit/sky/demo/SkyDemoApplication.java)
216 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky 216 additionally exposes `keyboard_service` and `sensor_service` for use by the Sky
217 Framework from Dart. 217 Framework from Dart.
OLDNEW
« no previous file with comments | « sky/home.dart ('k') | sky/sdk/home.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698