Merge pull request #510 from iansf/move_examples
Move examples to the root
3
.gitignore
vendored
@ -62,10 +62,11 @@ Thumbs.db
|
||||
/tools/grit/
|
||||
|
||||
# dart packages directories and related.
|
||||
/examples/**/packages
|
||||
/examples/**/pubspec.lock
|
||||
/mojo/dart/apptest/packages
|
||||
/mojo/dart/mojo_services/packages
|
||||
/mojo/dart/mojo_services/pubspec.lock
|
||||
/mojo/dart/mojom/bin/packages
|
||||
/mojo/dart/mojom/packages
|
||||
/mojo/dart/mojom/test/packages
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ target. Building on MacOS for Android, iOS, and a head-less MacOS target is comi
|
||||
* (Only the first time) `sudo ./build/install-build-deps-android.sh`
|
||||
* `./sky/tools/gn --android`
|
||||
* `ninja -C out/android_Debug`
|
||||
* `./sky/tools/shelldb start out/android_Debug/ sky/packages/sky/example/hello_world/lib/main.dart`
|
||||
* `./sky/tools/shelldb start out/android_Debug/ examples/hello_world/lib/main.dart`
|
||||
|
||||
### Desktop (Mac and Linux)
|
||||
|
||||
|
||||
@ -120,7 +120,7 @@ def Main():
|
||||
help='Path to the simulator application.')
|
||||
|
||||
parser.add_argument('-t', dest='target', required=False,
|
||||
default='sky/packages/sky/example/demo_launcher/lib/main.dart',
|
||||
default='examples/demo_launcher/lib/main.dart',
|
||||
help='Sky server-relative path to the Sky app to run.')
|
||||
|
||||
parser.add_argument('-s', dest='server', required=False,
|
||||
|
||||
17
examples/BUILD.gn
Normal file
@ -0,0 +1,17 @@
|
||||
# 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",
|
||||
]
|
||||
}
|
||||
28
examples/demo_launcher/BUILD.gn
Normal file
@ -0,0 +1,28 @@
|
||||
# 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.
|
||||
|
||||
import("//sky/build/sky_app.gni")
|
||||
|
||||
sky_app("demo_launcher") {
|
||||
main_dart = "lib/main.dart"
|
||||
manifest = "sky.yaml"
|
||||
|
||||
if (is_android) {
|
||||
apk_name = "SkyDemo"
|
||||
|
||||
bundles = [
|
||||
"//examples/fitness",
|
||||
"//examples/game",
|
||||
"//examples/mine_digger",
|
||||
"//examples/rendering:interactive_flex",
|
||||
"//examples/stocks",
|
||||
"//examples/widgets:cards",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//examples/demo_launcher/apk:java",
|
||||
"//examples/demo_launcher/apk:resources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 280 KiB After Width: | Height: | Size: 280 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
@ -4,6 +4,6 @@ dependencies:
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../../material_design_icons
|
||||
path: ../../sky/packages/material_design_icons
|
||||
sky:
|
||||
path: ../../../sky
|
||||
path: ../../sky/packages/sky
|
||||
@ -12,7 +12,7 @@ sky_app("fitness") {
|
||||
apk_name = "Fitness"
|
||||
|
||||
deps = [
|
||||
"//sky/packages/sky/example/fitness/apk:resources",
|
||||
"//examples/fitness/apk:resources",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@ -12,7 +12,7 @@ sky_app("game") {
|
||||
apk_name = "Asteroids"
|
||||
|
||||
deps = [
|
||||
"//sky/packages/sky/example/game/apk:resources",
|
||||
"//examples/game/apk:resources",
|
||||
]
|
||||
} else if (is_ios) {
|
||||
info_plist = "ios/Info.plist"
|
||||
|
Before Width: | Height: | Size: 7.0 KiB After Width: | Height: | Size: 7.0 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 166 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 859 KiB After Width: | Height: | Size: 859 KiB |
|
Before Width: | Height: | Size: 523 KiB After Width: | Height: | Size: 523 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |