blob: c3134dd1388032f5a7561ba74b6b3b7d9944d965 [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("//src/sys/build/components.gni")
import("//topaz/runtime/dart/flutter_test.gni")
dart_library("lib") {
package_name = "localized_flutter_app"
sources = [
"main.dart",
"provider.dart",
"supported_locales.dart",
"localized_mod_localizations_delegate.dart",
"localized_mod_strings.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") {
# TODO(fxb/57840): This package has transitive dependencies.
# Please explicitly define its transitive dependencies as direct dependencies then remove this exemption
disable_strict_deps_check = true
sources = [ "sample_test.dart" ]
deps = [ "//third_party/dart-pkg/pub/test" ]
}