Rename 'application' back to 'module', and make 'app' the default again for templates. (#22888)

We decided that redefining the default for templates was premature. We're going to go back to having "module" in experimental land again, and we'll try again when we have the feature set fully baked.

This keeps the writing of the .metadata files, and writing the template type to them, because that was a good improvement, and there are still a bunch of added tests that improve our coverage.
This commit is contained in:
Greg Spencer
2018-10-10 11:01:40 -07:00
committed by GitHub
parent e58e473251
commit 0ff9e8a928
87 changed files with 233 additions and 267 deletions

View File

@@ -9,7 +9,7 @@ import 'package:flutter_devicelab/framework/framework.dart';
import 'package:flutter_devicelab/framework/utils.dart';
import 'package:path/path.dart' as path;
/// Tests that the Flutter application project template works and supports
/// Tests that the Flutter module project template works and supports
/// adding Flutter to an existing Android app.
Future<void> main() async {
await task(() async {
@@ -21,15 +21,15 @@ Future<void> main() async {
return TaskResult.failure('Could not find Java');
print('\nUsing JAVA_HOME=$javaHome');
section('Create Flutter application project');
section('Create Flutter module project');
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_application_test.');
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_module_test.');
final Directory projectDir = Directory(path.join(tempDir.path, 'hello'));
try {
await inDirectory(tempDir, () async {
await flutter(
'create',
options: <String>['--org', 'io.flutter.devicelab', '--template=application', 'hello'],
options: <String>['--org', 'io.flutter.devicelab', '--template=module', 'hello'],
);
});
@@ -49,7 +49,7 @@ Future<void> main() async {
);
});
section('Build Flutter application library archive');
section('Build Flutter module library archive');
await inDirectory(Directory(path.join(projectDir.path, '.android')), () async {
await exec(

View File

@@ -10,20 +10,20 @@ import 'package:flutter_devicelab/framework/ios.dart';
import 'package:flutter_devicelab/framework/utils.dart';
import 'package:path/path.dart' as path;
/// Tests that the Flutter application project template works and supports
/// Tests that the Flutter module project template works and supports
/// adding Flutter to an existing iOS app.
Future<void> main() async {
await task(() async {
section('Create Flutter application project');
section('Create Flutter module project');
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_application_test.');
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_module_test.');
final Directory projectDir = Directory(path.join(tempDir.path, 'hello'));
try {
await inDirectory(tempDir, () async {
await flutter(
'create',
options: <String>['--org', 'io.flutter.devicelab', '--template=application', 'hello'],
options: <String>['--org', 'io.flutter.devicelab', '--template=module', 'hello'],
);
});
await prepareProvisioningCertificates(projectDir.path);

View File

@@ -263,9 +263,9 @@ tasks:
stage: devicelab
required_agent_capabilities: ["linux/android"]
application_test:
module_test:
description: >
Checks that the application project template works and supports add2app on Android.
Checks that the module project template works and supports add2app on Android.
stage: devicelab
required_agent_capabilities: ["linux/android"]
@@ -297,9 +297,9 @@ tasks:
stage: devicelab_ios
required_agent_capabilities: ["mac/ios"]
application_test_ios:
module_test_ios:
description: >
Checks that the application project template works and supports add2app on iOS.
Checks that the module project template works and supports add2app on iOS.
stage: devicelab
required_agent_capabilities: ["mac/ios"]