Commit 8e11dcb5 authored by Ian Fischer's avatar Ian Fischer

Merge pull request #510 from iansf/move_examples

Move examples to the root
parents 2b22c121 d44ed7df
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
group("examples") {
testonly = true
deps = [
"//examples/demo_launcher",
"//examples/fitness",
"//examples/game",
"//examples/mine_digger",
"//examples/rendering",
"//examples/stocks",
"//examples/widgets",
]
}
...@@ -12,17 +12,17 @@ sky_app("demo_launcher") { ...@@ -12,17 +12,17 @@ sky_app("demo_launcher") {
apk_name = "SkyDemo" apk_name = "SkyDemo"
bundles = [ bundles = [
"//sky/packages/sky/example/fitness", "//examples/fitness",
"//sky/packages/sky/example/game", "//examples/game",
"//sky/packages/sky/example/mine_digger", "//examples/mine_digger",
"//sky/packages/sky/example/rendering:interactive_flex", "//examples/rendering:interactive_flex",
"//sky/packages/sky/example/stocks", "//examples/stocks",
"//sky/packages/sky/example/widgets:cards", "//examples/widgets:cards",
] ]
deps = [ deps = [
"//sky/packages/sky/example/demo_launcher/apk:java", "//examples/demo_launcher/apk:java",
"//sky/packages/sky/example/demo_launcher/apk:resources", "//examples/demo_launcher/apk:resources",
] ]
} }
} }
...@@ -4,6 +4,6 @@ dependencies: ...@@ -4,6 +4,6 @@ dependencies:
sky_tools: any sky_tools: any
dependency_overrides: dependency_overrides:
material_design_icons: material_design_icons:
path: ../../../material_design_icons path: ../../sky/packages/material_design_icons
sky: sky:
path: ../../../sky path: ../../sky/packages/sky
...@@ -12,7 +12,7 @@ sky_app("fitness") { ...@@ -12,7 +12,7 @@ sky_app("fitness") {
apk_name = "Fitness" apk_name = "Fitness"
deps = [ deps = [
"//sky/packages/sky/example/fitness/apk:resources", "//examples/fitness/apk:resources",
] ]
} }
} }
...@@ -12,7 +12,7 @@ sky_app("game") { ...@@ -12,7 +12,7 @@ sky_app("game") {
apk_name = "Asteroids" apk_name = "Asteroids"
deps = [ deps = [
"//sky/packages/sky/example/game/apk:resources", "//examples/game/apk:resources",
] ]
} else if (is_ios) { } else if (is_ios) {
info_plist = "ios/Info.plist" info_plist = "ios/Info.plist"
......
...@@ -55,7 +55,7 @@ const _kChunkCount = 30; ...@@ -55,7 +55,7 @@ const _kChunkCount = 30;
String _urlToFetch(int chunk) { String _urlToFetch(int chunk) {
if (rootBundle == null) if (rootBundle == null)
return '../data/stock_data_${chunk}.json'; return '../data/stock_data_${chunk}.json';
return 'https://domokit.github.io/example/stocks/data/stock_data_${chunk}.json'; return 'https://domokit.github.io/examples/stocks/data/stock_data_${chunk}.json';
} }
class StockDataFetcher { class StockDataFetcher {
......
...@@ -98,6 +98,6 @@ Building a standalone APK ...@@ -98,6 +98,6 @@ Building a standalone APK
Although it is possible to build a standalone APK containing your application, Although it is possible to build a standalone APK containing your application,
doing so right now is difficult. If you're feeling brave, you can see how we doing so right now is difficult. If you're feeling brave, you can see how we
build the `Stocks.apk` in build the `Stocks.apk` in
[example/stocks](https://github.com/domokit/sky_engine/tree/master/sky/packages/sky/example/stocks). [examples/stocks](https://github.com/domokit/sky_engine/tree/master/examples/stocks).
Eventually we plan to make this much easier and support platforms other than Eventually we plan to make this much easier and support platforms other than
Android, but that work still in progress. Android, but that work still in progress.
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
group("example") {
testonly = true
deps = [
"//sky/packages/sky/example/demo_launcher",
"//sky/packages/sky/example/fitness",
"//sky/packages/sky/example/game",
"//sky/packages/sky/example/mine_digger",
"//sky/packages/sky/example/rendering",
"//sky/packages/sky/example/stocks",
"//sky/packages/sky/example/widgets",
]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment