plugin_test.dart 1.25 KB
Newer Older
Ian Hickson's avatar
Ian Hickson committed
1
// Copyright 2014 The Flutter Authors. All rights reserved.
2 3 4 5
// 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';
6
import 'package:flutter_devicelab/tasks/plugin_tests.dart';
7

8
Future<void> main() async {
9
  await task(combine(<TaskFunction>[
10 11
    PluginTest('apk', <String>['-a', 'java', '--platforms=android']),
    PluginTest('apk', <String>['-a', 'kotlin', '--platforms=android']),
12 13 14
    // These create the plugins using the new v2 plugin templates but create the
    // apps using the old v1 embedding app templates to make sure new plugins
    // are by default backward compatible.
15
    PluginTest('apk', <String>['-a', 'java', '--platforms=android'], pluginCreateEnvironment:
16
        <String, String>{'ENABLE_ANDROID_EMBEDDING_V2': 'true'}),
17
    PluginTest('apk', <String>['-a', 'kotlin', '--platforms=android'], pluginCreateEnvironment:
18
        <String, String>{'ENABLE_ANDROID_EMBEDDING_V2': 'true'}),
19 20
    // Test that Dart-only plugins are supported.
    PluginTest('apk', <String>['--platforms=android'], dartOnlyPlugin: true),
Daco Harkes's avatar
Daco Harkes committed
21 22
    // Test that FFI plugins are supported.
    PluginTest('apk', <String>['--platforms=android'], template: 'plugin_ffi'),
23
  ]));
24
}