[latin-ime] move to experiences repo
Removes the code for latin-ime and points to the new
location in experiences.
This CL requires https://fuchsia-review.googlesource.com/c/experiences/+/312095
to roll before merging.
Change-Id: I2f2142c82a4c3584aedd27d206cff33196d89e4e
diff --git a/app/latin-ime/BUILD.gn b/app/latin-ime/BUILD.gn
index d8f11c2..28892fc 100644
--- a/app/latin-ime/BUILD.gn
+++ b/app/latin-ime/BUILD.gn
@@ -2,30 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import("//topaz/runtime/flutter_runner/flutter_app.gni")
-
-flutter_app("latin-ime") {
- main_dart = "lib/main.dart"
-
- manifest = "pubspec.yaml"
-
- meta = [
- {
- path = rebase_path("meta/latin-ime.cmx")
- dest = "latin-ime.cmx"
- },
- ]
-
- source_dir = "."
- sources = []
-
- deps = [
- "//sdk/fidl/fuchsia.sys",
- "//sdk/fidl/fuchsia.ui.policy",
- "//third_party/dart-pkg/git/flutter/packages/flutter",
- "//topaz/public/dart/fidl",
- "//topaz/public/dart/fuchsia_logger",
- "//topaz/public/dart/fuchsia_services",
- "//topaz/shell/keyboard",
+group("latin-ime") {
+ testonly = true
+ public_deps = [
+ "//src/experiences/keyboard/latin-ime",
]
}
diff --git a/app/latin-ime/OWNERS b/app/latin-ime/OWNERS
deleted file mode 100644
index fcf586e..0000000
--- a/app/latin-ime/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-ejia@google.com
-brycelee@google.com
diff --git a/app/latin-ime/README.md b/app/latin-ime/README.md
deleted file mode 100644
index 8f6b5e5..0000000
--- a/app/latin-ime/README.md
+++ /dev/null
@@ -1 +0,0 @@
-Latin Software IME
diff --git a/app/latin-ime/analysis_options.yaml b/app/latin-ime/analysis_options.yaml
deleted file mode 100644
index c7bbb17..0000000
--- a/app/latin-ime/analysis_options.yaml
+++ /dev/null
@@ -1,5 +0,0 @@
-# Copyright 2017 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.
-
-include: ../../tools/analysis_options.yaml
diff --git a/app/latin-ime/lib/main.dart b/app/latin-ime/lib/main.dart
deleted file mode 100644
index c64a27a..0000000
--- a/app/latin-ime/lib/main.dart
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2017 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 'package:fidl_fuchsia_ui_input/fidl_async.dart';
-import 'package:flutter/material.dart';
-import 'package:keyboard/keyboard.dart';
-import 'package:fuchsia_logger/logger.dart';
-import 'package:fuchsia_services/services.dart';
-
-class ImeKeyboard extends StatelessWidget {
- final ImeServiceProxy _imeService;
-
- const ImeKeyboard({ImeServiceProxy imeService})
- : _imeService = imeService,
- super();
-
- void _onText(String text) {
- final kbEvent = KeyboardEvent(
- phase: KeyboardEventPhase.pressed,
- codePoint: text.codeUnitAt(0),
- hidUsage: 0,
- eventTime: 0,
- modifiers: 0,
- deviceId: 0,
- );
- var event = InputEvent.withKeyboard(kbEvent);
- _imeService.injectInput(event);
- }
-
- void _onDelete() {
- final kbEvent = KeyboardEvent(
- phase: KeyboardEventPhase.pressed,
- codePoint: 0,
- hidUsage: 0x2a,
- eventTime: 0,
- modifiers: 0,
- deviceId: 0,
- );
- var event = InputEvent.withKeyboard(kbEvent);
- _imeService.injectInput(event);
- }
-
- void _onGo() {
- final kbEvent = KeyboardEvent(
- phase: KeyboardEventPhase.pressed,
- codePoint: 0,
- hidUsage: 0x28,
- eventTime: 0,
- modifiers: 0,
- deviceId: 0,
- );
- var event = InputEvent.withKeyboard(kbEvent);
- _imeService.injectInput(event);
- }
-
- void _onHide() {
- _imeService.hideKeyboard();
- }
-
- @override
- Widget build(BuildContext context) {
- return Keyboard(
- onText: _onText, onDelete: _onDelete, onGo: _onGo, onHide: _onHide);
- }
-}
-
-void main() {
- setupLogger(name: 'latin_ime');
-
- final imeService = ImeServiceProxy();
- StartupContext.fromStartupInfo().incoming.connectToService(imeService);
-
- runApp(Theme(
- data: ThemeData.light(),
- child: ImeKeyboard(imeService: imeService),
- ));
-}
diff --git a/app/latin-ime/meta/latin-ime.cmx b/app/latin-ime/meta/latin-ime.cmx
deleted file mode 100644
index 0e0e63c..0000000
--- a/app/latin-ime/meta/latin-ime.cmx
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "program": {
- "data": "data/latin-ime"
- },
- "sandbox": {
- "services": [
- "fuchsia.cobalt.LoggerFactory",
- "fuchsia.fonts.Provider",
- "fuchsia.logger.LogSink",
- "fuchsia.modular.Clipboard",
- "fuchsia.modular.ContextWriter",
- "fuchsia.modular.ModuleContext",
- "fuchsia.netstack.Netstack",
- "fuchsia.sys.Environment",
- "fuchsia.ui.input.ImeService",
- "fuchsia.ui.policy.Presenter",
- "fuchsia.ui.scenic.Scenic",
- "fuchsia.wlan.service.Wlan"
- ]
- }
-}
diff --git a/app/latin-ime/pubspec.yaml b/app/latin-ime/pubspec.yaml
deleted file mode 100644
index 6d454a4..0000000
--- a/app/latin-ime/pubspec.yaml
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 2016 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.
-
-name: latin-ime
-dependencies:
- flutter:
- sdk: flutter
- keyboard:
- path: ../sysui/keyboard
-dev_dependencies:
- flutter_test:
- sdk: flutter
-flutter:
- uses-material-design: true