OLD | NEW |
(Empty) | |
| 1 # This is a configuration file one can use to run Sky apps from a local Sky |
| 2 # checkout using a locally built Mojo shell. As Sky is a layer on top of Mojo, |
| 3 # this file does not really belong in the Mojo repo and could hopefully move to |
| 4 # sky_engine. |
| 5 |
| 6 # To use this you need to check out sky_engine |
| 7 # (https://github.com/domokit/sky_engine ) and build for Android. |
| 8 |
| 9 # Then, run the lengthy command-line: |
| 10 # |
| 11 # mojo/devtools/common/mojo_run \ |
| 12 # --android \ |
| 13 # --config-file mojo/tools/configs/sky \ |
| 14 # --config-alias SKY_SRC=/path_to_your_checkout/sky_engine/src \ |
| 15 # "mojo:window_manager https://sky/examples/hello_world/lib/main.dart" |
| 16 |
| 17 # The sky apps are served from the Sky checkout, so all of |
| 18 # sky/packages/sky/example is available under https://sky/examples . |
| 19 |
| 20 { |
| 21 'dev_servers': [ |
| 22 { |
| 23 'host': 'https://sky/', |
| 24 'mappings': [ |
| 25 ('packages/', [ |
| 26 '@{SKY_SRC}/sky/packages/workbench/packages' |
| 27 ]), |
| 28 ('examples/', [ |
| 29 '@{SKY_SRC}/sky/packages/sky/example' |
| 30 ]), |
| 31 ('', [ |
| 32 '@{SKY_SRC}/out/android_Debug', |
| 33 ]), |
| 34 ], |
| 35 }, |
| 36 { |
| 37 'host': 'https://core.mojoapps.io/', |
| 38 'mappings': [ |
| 39 ('', ['@{BUILD_DIR}']), |
| 40 ], |
| 41 }, |
| 42 ], |
| 43 |
| 44 'content_handlers': { |
| 45 'application/dart': 'https://sky/sky_viewer.mojo', |
| 46 } |
| 47 } |
OLD | NEW |