blob: 4b0c5ee61ac558943db5915b4bb456eb811f71d5 [file] [log] [blame]
# Copyright 2019 The Fuchsia 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("//build/dart/dart_library.gni")
import("//build/flutter/flutter_component.gni")
import("//build/flutter/test.gni")
import("//src/sys/build/components.gni")
dart_library("lib") {
package_name = "localized_flutter_app"
sources = [
"localized_mod_localizations_delegate.dart",
"localized_mod_strings.dart",
"main.dart",
"provider.dart",
"supported_locales.dart",
]
deps = [
"//src/experiences/examples/localized_flutter/localized_flutter_localization:localized-flutter-localization",
"//third_party/dart-pkg/git/flutter/packages/flutter",
"//third_party/dart-pkg/git/flutter/packages/flutter_localizations",
"//third_party/dart-pkg/pub/intl",
]
}
flutter_component("component") {
component_name = "localized-flutter-app"
manifest = "meta/localized_flutter_app.cmx"
deps = [ ":lib" ]
}
fuchsia_package("localized-flutter-app") {
deps = [ ":component" ]
}
flutter_test("localized_flutter_app_unittests") {
sources = [ "sample_test.dart" ]
deps = [ "//third_party/dart-pkg/pub/test" ]
}