OLD | NEW |
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 debugging and profiling. While running your Sky app using `sky_tool`, you can | 180 debugging and profiling. While running your Sky app using `sky_tool`, you can |
181 access Observatory by navigating your web browser to http://localhost:8181/. | 181 access Observatory by navigating your web browser to http://localhost:8181/. |
182 | 182 |
183 Building a standalone MyApp | 183 Building a standalone MyApp |
184 --------------------------- | 184 --------------------------- |
185 | 185 |
186 Although it is possible to bundle the Sky Engine in your own app (instead of | 186 Although it is possible to bundle the Sky Engine in your own app (instead of |
187 running your code inside SkyDemo.apk), right now doing so is difficult. | 187 running your code inside SkyDemo.apk), right now doing so is difficult. |
188 | 188 |
189 There is one example of doing so if you're feeling brave: | 189 There is one example of doing so if you're feeling brave: |
190 https://github.com/domokit/mojo/tree/master/sky/apk/stocks | 190 https://github.com/domokit/mojo/tree/master/sky/sdk/example/stocks |
191 | 191 |
192 Eventually we plan to make this much easier and support platforms other than | 192 Eventually we plan to make this much easier and support platforms other than |
193 Android, but that work is yet in progress. | 193 Android, but that work is yet in progress. |
194 | 194 |
195 Adding Services to MyApp | 195 Adding Services to MyApp |
196 ------------------------ | 196 ------------------------ |
197 | 197 |
198 [Mojo IPC](https://github.com/domokit/mojo) is an inter-process-communication | 198 [Mojo IPC](https://github.com/domokit/mojo) is an inter-process-communication |
199 system designed to provide cross-thread, cross-process, and language-agnostic | 199 system designed to provide cross-thread, cross-process, and language-agnostic |
200 communication between applications. Sky uses Mojo IPC to make it possible | 200 communication between applications. Sky uses Mojo IPC to make it possible |
201 to write UI code in Dart and yet depend on networking code, etc. written in | 201 to write UI code in Dart and yet depend on networking code, etc. written in |
202 another language. Services are replicable, meaning that Dart code | 202 another language. Services are replicable, meaning that Dart code |
203 written to use the `network_service` remains portable to any platform | 203 written to use the `network_service` remains portable to any platform |
204 (iOS, Android, etc.) by simply providing a 'natively' written `network_service`. | 204 (iOS, Android, etc.) by simply providing a 'natively' written `network_service`. |
205 | 205 |
206 Embedders of the Sky Engine and consumers of the Sky Framework can use this | 206 Embedders of the Sky Engine and consumers of the Sky Framework can use this |
207 same mechanism to expose not only existing services like the | 207 same mechanism to expose not only existing services like the |
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. |
OLD | NEW |