Merge pull request #1570 from abarth/flutterize

Flutterize
This commit is contained in:
Adam Barth
2015-10-09 20:48:54 -07:00
14 changed files with 29 additions and 30 deletions

View File

@@ -7,7 +7,7 @@ group("examples") {
deps = [
"//examples/demo_launcher",
"//examples/fitness",
#"//examples/fitness",
"//examples/game",
"//examples/mine_digger",
"//examples/rendering",

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:sky/material.dart';
import 'package:flutter/material.dart';
class Field extends StatelessComponent {
Field({

View File

@@ -1,9 +1,9 @@
name: address_book
dependencies:
sky: any
flutter: any
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
sky:
flutter:
path: ../../sky/packages/sky

View File

@@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:sky/widgets.dart';
import 'package:flutter/widgets.dart';
void main() => runApp(new Center(child: new Text('Hello, world!')));

View File

@@ -1,9 +1,9 @@
name: hello_world
dependencies:
sky: any
flutter: any
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
sky:
flutter:
path: ../../sky/packages/sky

View File

@@ -1,13 +1,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
import 'dart:ui' as sky;
import 'dart:math';
import 'package:sky/material.dart';
import 'package:sky/painting.dart';
import 'package:sky/rendering.dart';
import 'package:sky/services.dart';
import 'package:flutter/material.dart';
import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
// Classic minesweeper-inspired game. The mouse controls are standard
// except for left + right combo which is not implemented. For touch,

View File

@@ -1,9 +1,9 @@
name: mine_digger
dependencies:
sky: any
flutter: any
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../../sky/packages/material_design_icons
sky:
flutter:
path: ../../sky/packages/sky

View File

@@ -48,12 +48,12 @@ dart_pkg("sky_engine") {
sdk_ext_directory = "$root_gen_dir/sky/bindings"
sdk_ext_files = [
"//sky/engine/bindings/sky_internals.dart",
"//sky/engine/bindings/internals.dart",
"//sky/engine/bindings/builtin_natives.dart",
]
sdk_ext_mappings = [
"dart:sky,dart_sky.dart",
"dart:sky.internals,sky_internals.dart",
"dart:sky_builtin_natives,builtin_natives.dart",
"dart:ui,dart_ui.dart",
"dart:ui_internals,internals.dart",
"dart:ui_builtin_natives,builtin_natives.dart",
]
}

View File

@@ -1,7 +1,7 @@
Flutter Engine
==============
This package describes the dart:sky library, which is the interface between
This package describes the dart:ui library, which is the interface between
Dart and the Flutter Engine. This package also contains a number of Flutter
shell binaries that let you run code that uses the dart:sky library on various
shell binaries that let you run code that uses the dart:ui library on various
platforms.

View File

@@ -1,7 +1,7 @@
name: sky_engine
version: 0.0.33
author: Flutter Authors <flutter-dev@googlegroups.com>
description: Dart SDK extensions for dart:sky
description: Dart SDK extensions for dart:ui
homepage: http://flutter.io
# sky_engine requires sdk_ext support in the analyzer which was added in 1.11.x
environment:

View File

@@ -6,7 +6,7 @@ import 'dart:async';
import 'dart:io';
import 'package:mojo/core.dart';
import 'package:sky/services.dart';
import 'package:flutter/services.dart';
import 'package:sky_services/updater/update_service.mojom.dart';
import 'package:path/path.dart' as path;
import 'package:yaml/yaml.dart' as yaml;

View File

@@ -5,12 +5,12 @@ description: The autoupdater for flutter
homepage: http://flutter.io
dependencies:
mojo: '>=0.2.0 <0.3.0'
sky: any
flutter: any
sky_services: any
path: any
yaml: any
dependency_overrides:
sky:
flutter:
path: ../sky
environment:
sdk: '>=1.12.0 <2.0.0'

View File

@@ -4,12 +4,12 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
description: A workspace to host pub packages
homepage: https://github.com/flutter/engine/tree/master/sky/packages/workbench
dependencies:
sky: any
flutter: any
sky_tools: any
dependency_overrides:
material_design_icons:
path: ../material_design_icons
sky:
flutter:
path: ../sky
environment:
sdk: '>=1.8.0 <2.0.0'

View File

@@ -8,13 +8,12 @@ class URLMappings(object):
def __init__(self, src_root, build_dir):
self.mappings = {
'dart:mojo.internal': os.path.join(src_root, 'mojo/public/dart/sdk_ext/internal.dart'),
'dart:sky': os.path.join(build_dir, 'gen/sky/bindings/dart_sky.dart'),
'dart:sky.internals': os.path.join(src_root, 'sky/engine/bindings/sky_internals.dart'),
'dart:sky_builtin_natives': os.path.join(src_root, 'sky/engine/bindings/builtin_natives.dart'),
'dart:ui': os.path.join(build_dir, 'gen/sky/bindings/dart_ui.dart'),
'dart:ui_internals': os.path.join(src_root, 'sky/engine/bindings/internals.dart'),
'dart:ui_builtin_natives': os.path.join(src_root, 'sky/engine/bindings/builtin_natives.dart'),
}
self.packages_root = os.path.join(build_dir, 'gen/dart-pkg/packages')
@property
def as_args(self):
return map(lambda item: '--url-mapping=%s,%s' % item, self.mappings.items())