Commit f53c1edc authored by Hans Muller's avatar Hans Muller

Merge pull request #1838 from HansMuller/goodbye_curly

Bump the flutter_gallery_assets version, rename example apk dirs to android, remove BUILD.gn files
parents 56c7911a 8c78bf47
# 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/fitness",
"//examples/game",
"//examples/mine_digger",
"//examples/stocks",
]
}
# 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("fitness") {
main_dart = "lib/main.dart"
manifest = "flutter.yaml"
if (is_android) {
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
apk_name = "Fitness"
android_library("java") {
java_files = [
"apk/src/org/domokit/fitness/FitnessApplication.java",
]
deps = [
"//base:base_java",
"//mojo/public/java:bindings",
"//mojo/public/java:system",
"//sky/services/gcm:gcm_lib",
"//sky/services/gcm:interfaces_java",
"//sky/shell:java",
]
}
deps = [
"//examples/fitness/apk:resources",
":java",
]
} else if (is_mac) {
info_plist = "mac/Info.plist"
xibs = [ "mac/sky_mac.xib" ]
}
}
# 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.
assert(is_android)
import("//build/config/android/config.gni")
import("//build/config/android/rules.gni")
android_resources("resources") {
resource_dirs = [ "res" ]
android_manifest = "AndroidManifest.xml"
}
......@@ -6,4 +6,4 @@ dependencies:
path: ../../packages/flutter
flutter_sprites:
path: ../../packages/flutter_sprites
flutter_gallery_assets: '0.0.6'
flutter_gallery_assets: '0.0.7'
# 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("mine_digger") {
main_dart = "lib/main.dart"
if (is_android) {
apk_name = "MineDigger"
}
}
# 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("stocks") {
main_dart = "lib/main.dart"
manifest = "flutter.yaml"
if (is_android) {
apk_name = "Stocks"
} else if (is_ios) {
info_plist = "ios/Info.plist"
launcher_resources = [
"ios/LaunchScreen.storyboardc",
]
}
}
# 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.
action("updater") {
snapshot = "$target_gen_dir/updater_snapshot.bin"
main_dart = "lib/main.dart"
inputs = [
main_dart,
]
outputs = [
snapshot,
]
sky_snapshot_dir =
get_label_info("//sky/tools/sky_snapshot($host_toolchain)", "root_out_dir")
script = "//sky/tools/run_sky_snapshot.py"
args = [
"--compiler", rebase_path("$sky_snapshot_dir/sky_snapshot", root_build_dir),
"--package-root", rebase_path("packages", root_build_dir),
"--snapshot", rebase_path(snapshot, root_build_dir),
"--main", rebase_path(main_dart, root_build_dir),
]
deps = [
"//sky/services/activity:interfaces",
"//sky/services/updater:interfaces",
"//sky/tools/sky_snapshot($host_toolchain)",
]
}
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