Remove android_verified_input, it was never added to CI and does not run locally. (#162895)
Someone could always resurrect it via `git`-magic (or GitHub), but let's not maintain (including Gradle lock files, Dart analysis, etc) unused code that hasn't run in 12+ months. /cc @johnmccutchan
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
// Copyright 2014 The Flutter 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:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/android_verified_input_test.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
await task(androidVerifiedInputTest());
|
||||
}
|
||||
@@ -1,59 +0,0 @@
|
||||
// Copyright 2014 The Flutter 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 '../framework/devices.dart';
|
||||
import '../framework/framework.dart';
|
||||
import '../framework/task_result.dart';
|
||||
import '../framework/utils.dart';
|
||||
|
||||
TaskFunction androidVerifiedInputTest({Map<String, String>? environment}) {
|
||||
return DriverTest(
|
||||
'${flutterDirectory.path}/dev/integration_tests/android_verified_input',
|
||||
'test_driver/main_test.dart',
|
||||
environment: environment,
|
||||
).call;
|
||||
}
|
||||
|
||||
class DriverTest {
|
||||
DriverTest(
|
||||
this.testDirectory,
|
||||
this.testTarget, {
|
||||
this.extraOptions = const <String>[],
|
||||
this.deviceIdOverride,
|
||||
this.environment,
|
||||
});
|
||||
|
||||
final String testDirectory;
|
||||
final String testTarget;
|
||||
final List<String> extraOptions;
|
||||
final String? deviceIdOverride;
|
||||
final Map<String, String>? environment;
|
||||
|
||||
Future<TaskResult> call() {
|
||||
return inDirectory<TaskResult>(testDirectory, () async {
|
||||
String deviceId;
|
||||
if (deviceIdOverride != null) {
|
||||
deviceId = deviceIdOverride!;
|
||||
} else {
|
||||
final Device device = await devices.workingDevice;
|
||||
await device.unlock();
|
||||
deviceId = device.deviceId;
|
||||
}
|
||||
await flutter('packages', options: <String>['get']);
|
||||
|
||||
final List<String> options = <String>[
|
||||
'--no-android-gradle-daemon',
|
||||
'-v',
|
||||
'-t',
|
||||
testTarget,
|
||||
'-d',
|
||||
deviceId,
|
||||
...extraOptions,
|
||||
];
|
||||
await flutter('drive', options: options, environment: environment);
|
||||
|
||||
return TaskResult.success(null);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user