Skip to content

Commit 0ee01da

Browse files
authored
Merge pull request #2 from gspencergoog/master
Pulling to make workspace up to date wrt master.
2 parents 2ca1574 + 506bc1c commit 0ee01da

File tree

334 files changed

+9168
-3339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+9168
-3339
lines changed

.analysis_options

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@
77
# See the configuration guide for more
88
# https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
99
#
10-
# There are three similar analysis options files in the flutter repo:
10+
# There are four similar analysis options files in the flutter repos:
1111
# - .analysis_options (this file)
1212
# - .analysis_options_repo
1313
# - packages/flutter/lib/analysis_options_user.yaml
14+
# - https://github.com/flutter/plugins/blob/master/.analysis_options
1415
#
1516
# This file contains the analysis options used by Flutter editors, such as Atom.
1617
# It is very similar to the .analysis_options_repo file in this same directory;
1718
# the only difference (currently) is the public_member_api_docs option,
1819
# which triggers too many messages to be used in editors.
20+
#
21+
# The flutter/plugins repo contains a copy of this file, which should be kept
22+
# in sync with this file.
1923

2024
analyzer:
2125
language:

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# incompatible way, this version number might not change. Instead, the version
77
# number for package:flutter will update to reflect that change.
88

9-
0.0.7-dev
9+
0.0.10-dev

bin/flutter

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ DART_SDK_PATH="$FLUTTER_ROOT/bin/cache/dart-sdk"
4646
DART="$DART_SDK_PATH/bin/dart"
4747
PUB="$DART_SDK_PATH/bin/pub"
4848

49-
# Test if running as superuser
50-
if [[ "$EUID" == "0" ]]; then
49+
# Test if running as superuser – but don't warn if running within Docker
50+
if [[ "$EUID" == "0" ]] && ! [[ -f /.dockerenv ]]; then
5151
echo " Woah! You appear to be trying to run flutter as root."
5252
echo " We strongly recommend running the flutter tool without superuser privileges."
5353
echo " /"

bin/internal/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Dart SDK dependency
2+
===================
3+
4+
The Dart SDK is downloaded from one of [the supported channels](https://www.dartlang.org/install/archive),
5+
cached in `bin/cache/dart-sdk` and is used to run Flutter Dart code.
6+
7+
The file `bin/internal/dart-sdk.version` determines the version of Dart SDK
8+
that will be downloaded. Normally it points to the `dev` channel (for example,
9+
`1.24.0-dev.6.7`), but it can also point to particular bleeding edge build
10+
of Dart (for example, `hash/c0617d20158955d99d6447036237fe2639ba088c`).

bin/internal/dart-sdk.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.24.0-dev.3.0
1+
1.24.0-dev.6.7

bin/internal/engine.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
75c74dc463d56e17be10315cfde409010fd8f90b
1+
18fdfb86bb3876fcbb4e1d25e5b2aad0c5cd669f

bin/internal/update_dart_sdk.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if ((Test-Path $dartSdkStampPath) -and ($dartSdkVersion -eq (Get-Content $dartSd
2929

3030
Write-Host "Downloading Dart SDK $dartSdkVersion..."
3131
$dartZipName = "dartsdk-windows-x64-release.zip"
32-
$dartChannel = if ($dartSdkVersion.Contains("-dev.")) {"dev"} else {"stable"}
32+
$dartChannel = if ($dartSdkVersion.Contains("-dev.")) {"dev"} else {if ($dartSdkVersion.Contains("hash/")) {"be"} else {"stable"}}
3333
$dartSdkUrl = "https://storage.googleapis.com/dart-archive/channels/$dartChannel/raw/$dartSdkVersion/sdk/$dartZipName"
3434

3535
if (Test-Path $dartSdkPath) {

bin/internal/update_dart_sdk.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ if [ ! -f "$DART_SDK_STAMP_PATH" ] || [ "$DART_SDK_VERSION" != `cat "$DART_SDK_S
4141
if [[ $DART_SDK_VERSION == *"-dev."* ]]
4242
then
4343
DART_CHANNEL="dev"
44+
elif [[ $DART_SDK_VERSION == "hash/"* ]]
45+
then
46+
DART_CHANNEL="be"
4447
fi
4548

4649
DART_SDK_URL="https://storage.googleapis.com/dart-archive/channels/$DART_CHANNEL/raw/$DART_SDK_VERSION/sdk/$DART_ZIP_NAME"

dev/benchmarks/complex_layout/android/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ android {
3333
signingConfig signingConfigs.debug
3434
}
3535
}
36+
37+
aaptOptions {
38+
// TODO(goderbauer): remove when https://github.com/flutter/flutter/issues/8986 is resolved.
39+
if(System.getenv("FLUTTER_CI_WIN")) {
40+
println "AAPT cruncher disabled when running on CI, see https://github.com/flutter/flutter/issues/8986"
41+
cruncherEnabled false
42+
}
43+
}
3644
}
3745

3846
flutter {

dev/benchmarks/complex_layout/lib/main.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ class ComplexLayoutState extends State<ComplexLayout> {
111111
key: const Key('complex-scroll'), // this key is used by the driver test
112112
itemBuilder: (BuildContext context, int index) {
113113
if (index % 2 == 0)
114-
return new FancyImageItem(index, key: new ValueKey<int>(index));
114+
return new FancyImageItem(index, key: new PageStorageKey<int>(index));
115115
else
116-
return new FancyGalleryItem(index, key: new ValueKey<int>(index));
116+
return new FancyGalleryItem(index, key: new PageStorageKey<int>(index));
117117
},
118118
)
119119
),
@@ -496,7 +496,7 @@ class ItemGalleryBox extends StatelessWidget {
496496
child: new TabBarView(
497497
children: tabNames.map((String tabName) {
498498
return new Container(
499-
key: new Key(tabName),
499+
key: new PageStorageKey<String>(tabName),
500500
child: new Padding(
501501
padding: const EdgeInsets.all(8.0),
502502
child: new Card(
@@ -611,6 +611,7 @@ class GalleryDrawer extends StatelessWidget {
611611
final ScrollMode currentMode = ComplexLayoutApp.of(context).scrollMode;
612612
return new Drawer(
613613
child: new ListView(
614+
key: const PageStorageKey<String>('gallery-drawer'),
614615
children: <Widget>[
615616
new FancyDrawerHeader(),
616617
new ListTile(
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
import 'package:flutter_driver/driver_extension.dart';
6+
import 'package:complex_layout/main.dart' as app;
7+
8+
void main() {
9+
enableFlutterDriverExtension();
10+
app.main();
11+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
import 'dart:async';
6+
import 'dart:convert';
7+
import 'dart:io';
8+
9+
import 'package:flutter_driver/flutter_driver.dart';
10+
import 'package:path/path.dart' as p;
11+
import 'package:test/test.dart';
12+
13+
void main() {
14+
group('semantics performance test', () {
15+
FlutterDriver driver;
16+
17+
setUpAll(() async {
18+
driver = await FlutterDriver.connect(printCommunication: true);
19+
});
20+
21+
tearDownAll(() async {
22+
if (driver != null)
23+
driver.close();
24+
});
25+
26+
test('inital tree creation', () async {
27+
// Let app become fully idle.
28+
await new Future<Null>.delayed(const Duration(seconds: 1));
29+
30+
final Timeline timeline = await driver.traceAction(() async {
31+
expect(await driver.setSemantics(true), isTrue);
32+
});
33+
34+
final Iterable<TimelineEvent> semanticsEvents = timeline.events.where((TimelineEvent event) => event.name == "Semantics");
35+
if (semanticsEvents.length != 1)
36+
fail('Expected exactly one semantics event, got ${semanticsEvents.length}');
37+
final Duration semanticsTreeCreation = semanticsEvents.first.duration;
38+
39+
final String json = JSON.encode(<String, dynamic>{'initialSemanticsTreeCreation': semanticsTreeCreation.inMilliseconds});
40+
new File(p.join(testOutputsDirectory, 'complex_layout_semantics_perf.json')).writeAsStringSync(json);
41+
});
42+
});
43+
}

0 commit comments

Comments
 (0)