Rewire the pubspecs to use local paths
Using local paths ensures that each package sees each other package at HEAD.
This commit is contained in:
parent
b7a212f76e
commit
08539b4e4d
19
dev/update_packages.py
Executable file
19
dev/update_packages.py
Executable file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2015 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 os
|
||||
import subprocess
|
||||
|
||||
def update(directory):
|
||||
packages = sorted(os.listdir(directory))
|
||||
for package in packages:
|
||||
package_dir = os.path.join(directory, package)
|
||||
if os.path.isdir(package_dir):
|
||||
print 'Updating', package, '...'
|
||||
subprocess.check_call(['pub', 'get'], cwd=package_dir)
|
||||
|
||||
FLUTTER_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
update(os.path.join(FLUTTER_ROOT, 'packages'))
|
||||
update(os.path.join(FLUTTER_ROOT, 'examples'))
|
8
examples/.gitignore
vendored
Normal file
8
examples/.gitignore
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
.DS_Store
|
||||
.buildlog
|
||||
.idea
|
||||
.packages
|
||||
.pub/
|
||||
build/
|
||||
packages
|
||||
pubspec.lock
|
@ -1,10 +1,4 @@
|
||||
name: address_book
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,12 +1,8 @@
|
||||
name: fitness
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
playfair: ^0.0.10
|
||||
# TODO(abarth): Move playfair into flutter.git
|
||||
# playfair: ^0.0.10
|
||||
path: ^1.3.6
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,15 +1,6 @@
|
||||
name: asteroids
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
flutter_sprites:
|
||||
'0.0.13'
|
||||
box2d: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
flutter_sprites:
|
||||
path: ../../skysprites
|
||||
path: ../../packages/flutter_sprites
|
||||
|
@ -1,10 +1,4 @@
|
||||
name: hello_world
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,10 +1,4 @@
|
||||
name: mine_digger
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,10 +1,4 @@
|
||||
name: sky_raw_examples
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,10 +1,4 @@
|
||||
name: flutter_rendering_examples
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,10 +1,4 @@
|
||||
name: stocks
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
|
@ -1,13 +1,6 @@
|
||||
name: sky_widgets_examples
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
flutter_rendering_examples: any
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../../sky/packages/material_design_icons
|
||||
flutter:
|
||||
path: ../../sky/packages/sky
|
||||
path: ../../packages/flutter
|
||||
flutter_rendering_examples:
|
||||
path: ../rendering
|
||||
|
@ -4,18 +4,16 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
|
||||
description: A framework for writing Flutter applications
|
||||
homepage: http://flutter.io
|
||||
dependencies:
|
||||
cassowary: '>=0.1.7 <0.2.0'
|
||||
intl: '>=0.12.4+2 <0.13.0'
|
||||
material_design_icons: '>=0.0.3 <0.1.0'
|
||||
newton: '>=0.1.4 <0.2.0'
|
||||
sky_engine:
|
||||
'0.0.49'
|
||||
sky_services:
|
||||
'0.0.50'
|
||||
sky_tools: '>=0.0.37 <0.1.0'
|
||||
sky_engine: 0.0.49
|
||||
sky_services: 0.0.50
|
||||
vector_math: '>=1.4.3 <2.0.0'
|
||||
|
||||
cassowary:
|
||||
path: ../cassowary
|
||||
newton:
|
||||
path: ../newton
|
||||
|
||||
environment:
|
||||
sdk: '>=1.12.0 <2.0.0'
|
||||
|
||||
executables:
|
||||
flutter:
|
||||
|
@ -4,6 +4,6 @@ version: 0.0.15
|
||||
author: Flutter Authors <flutter-dev@googlegroups.com>
|
||||
homepage: http://flutter.io
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.18'
|
||||
box2d: ">=0.2.0 <0.3.0"
|
||||
box2d: '>=0.2.0 <0.3.0'
|
||||
flutter:
|
||||
path: ../flutter
|
||||
|
@ -8,10 +8,9 @@ environment:
|
||||
sdk: '>=1.12.0 <2.0.0'
|
||||
|
||||
dependencies:
|
||||
analyzer: ">=0.26.1+17" # see note below
|
||||
analyzer: '>=0.26.1+17' # see note below
|
||||
archive: ^1.0.20
|
||||
args: ^0.13.0
|
||||
flx: ">=0.0.7 <0.1.0"
|
||||
crypto: ^0.9.1
|
||||
mustache4dart: ^1.0.0
|
||||
path: ^1.3.0
|
||||
@ -19,6 +18,9 @@ dependencies:
|
||||
test: ^0.12.5
|
||||
yaml: ^2.1.3
|
||||
|
||||
flx:
|
||||
path: ../flx
|
||||
|
||||
# A note about 'analyzer':
|
||||
# We don't actually depend on 'analyzer', but 'test' does. We aren't
|
||||
# compatible with some older versions of 'analyzer'. We lie here,
|
||||
|
@ -2,14 +2,14 @@ name: flx
|
||||
version: 0.0.10
|
||||
author: Flutter Authors <flutter-dev@googlegroups.com>
|
||||
description: Library for dealing with Flutter bundle (.flx) files
|
||||
homepage: http://flutter.io
|
||||
homepage: https://github.com/flutter/flutter/tree/master/packages/flx
|
||||
dependencies:
|
||||
sky_services:
|
||||
'0.0.50'
|
||||
yaml: ^2.1.3
|
||||
asn1lib: ^0.4.1
|
||||
cipher: ^0.7.1
|
||||
crypto: ^0.9.1
|
||||
path: ^1.3.0
|
||||
sky_services: 0.0.50
|
||||
yaml: ^2.1.3
|
||||
|
||||
environment:
|
||||
sdk: '>=1.12.0 <2.0.0'
|
||||
|
@ -1,15 +1,8 @@
|
||||
name: sky_unit_tests
|
||||
name: flutter_unit_tests
|
||||
dependencies:
|
||||
flutter:
|
||||
'0.0.16'
|
||||
sky_tools: any
|
||||
test: any
|
||||
quiver: any
|
||||
flx: ^0.0.2
|
||||
dependency_overrides:
|
||||
material_design_icons:
|
||||
path: ../packages/material_design_icons
|
||||
flutter:
|
||||
path: ../packages/sky
|
||||
test: ^0.12.5
|
||||
quiver: ^0.21.4
|
||||
flx:
|
||||
path: ../packages/flx
|
||||
path: ../flx
|
||||
flutter:
|
||||
path: ../flutter
|
||||
|
@ -1,16 +1,16 @@
|
||||
name: updater
|
||||
author: Flutter Authors <flutter-dev@googlegroups.com>
|
||||
description: The autoupdater for flutter
|
||||
description: An autoupdater for Flutter
|
||||
homepage: http://flutter.io
|
||||
dependencies:
|
||||
flutter: '0.0.18'
|
||||
yaml: ^2.1.3
|
||||
path: ^1.3.0
|
||||
flx: 0.0.1
|
||||
dependency_overrides:
|
||||
yaml: ^2.1.3
|
||||
|
||||
# TODO(abarth): Updater should not depend on flutter
|
||||
flutter:
|
||||
path: ../sky
|
||||
path: ../flutter
|
||||
flx:
|
||||
path: ../flx
|
||||
|
||||
environment:
|
||||
sdk: '>=1.12.0 <2.0.0'
|
||||
|
Loading…
x
Reference in New Issue
Block a user