
This CL * rolls `engine.version` to flutter/engine@b148e628 (which includes dart sdk 2.1.0-dev) * rolls `goldens.version` to flutter/goldens@6c45fafdf (which includes updates due to skia changes in engine) * changes `platform.dill` to `platform_strong.dill` in various places due to flutter/engine@a84b210b * adds explicit `environment: sdk: ">=2.0.0-dev.68 < 3.0.0"` constraints to `pubspec.yaml` and `pubspec.yaml.tmpl` files (since pub defaults to `<2.0.0` if omitted) * upgrades to newer versions of various 3rd party packages (to ensure transitive dependencies have `<3.0.0` sdk constraint)
50 lines
1.2 KiB
Dart
50 lines
1.2 KiB
Dart
// Copyright 2018 The Chromium 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_tools/src/base/file_system.dart';
|
|
|
|
import 'test_project.dart';
|
|
|
|
class BasicProject extends TestProject {
|
|
|
|
@override
|
|
final String pubspec = '''
|
|
name: test
|
|
environment:
|
|
sdk: ">=2.0.0-dev.68.0 <3.0.0"
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
''';
|
|
|
|
@override
|
|
final String main = r'''
|
|
import 'package:flutter/material.dart';
|
|
|
|
void main() => runApp(new MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
topLevelFunction();
|
|
return new MaterialApp( // BREAKPOINT
|
|
title: 'Flutter Demo',
|
|
home: new Container(),
|
|
);
|
|
}
|
|
}
|
|
|
|
topLevelFunction() {
|
|
print("topLevelFunction"); // TOP LEVEL BREAKPOINT
|
|
}
|
|
''';
|
|
|
|
String get buildMethodBreakpointFile => breakpointFile;
|
|
int get buildMethodBreakpointLine => breakpointLine;
|
|
|
|
String get topLevelFunctionBreakpointFile => fs.path.join(dir.path, 'lib', 'main.dart');
|
|
int get topLevelFunctionBreakpointLine => lineContaining(main, '// TOP LEVEL BREAKPOINT');
|
|
}
|