Unverified Commit 65ae30c8 authored by xster's avatar xster Committed by GitHub

Update create templates to 1.0.0 (#65234)

parent 330db46d
...@@ -92,8 +92,20 @@ TaskFunction createFlutterCreateOfflineTest() { ...@@ -92,8 +92,20 @@ TaskFunction createFlutterCreateOfflineTest() {
return () async { return () async {
final Directory tempDir = Directory.systemTemp.createTempSync('flutter_create_test.'); final Directory tempDir = Directory.systemTemp.createTempSync('flutter_create_test.');
String output; String output;
// The default create template has an actual online dependency against
// a pub package. Make sure it's available in pub cache first before
// trying to resolve it offline.
await inDirectory(tempDir, () async { await inDirectory(tempDir, () async {
output = await eval(path.join(flutterDirectory.path, 'bin', 'flutter'), <String>['create', '--offline', 'flutter_create_test']); output = await eval(
path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['pub', 'cache', 'add', 'cupertino_icons', '--version', '1.0.0'],
);
});
await inDirectory(tempDir, () async {
output = await eval(
path.join(flutterDirectory.path, 'bin', 'flutter'),
<String>['create', '--offline', 'flutter_create_test'],
);
}); });
if (output.contains(RegExp('building flutter tool', caseSensitive: false))) { if (output.contains(RegExp('building flutter tool', caseSensitive: false))) {
return TaskResult.failure('`flutter create --offline` should not rebuild flutter tool'); return TaskResult.failure('`flutter create --offline` should not rebuild flutter tool');
......
...@@ -38,7 +38,7 @@ dependencies: ...@@ -38,7 +38,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3 cupertino_icons: ^1.0.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
......
...@@ -26,7 +26,7 @@ dependencies: ...@@ -26,7 +26,7 @@ dependencies:
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3 cupertino_icons: ^1.0.0
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
...@@ -45,7 +45,7 @@ flutter: ...@@ -45,7 +45,7 @@ flutter:
# the material Icons class. # the material Icons class.
uses-material-design: true uses-material-design: true
# To add Flutter specific assets to your application, add an assets section, # To add Flutter specific assets to your application, add an assets section,
# like this: # like this:
# assets: # assets:
# - images/a_dot_burr.jpeg # - images/a_dot_burr.jpeg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment