Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2f77a079
Commit
2f77a079
authored
Jul 21, 2016
by
Yegor
Committed by
GitHub
Jul 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log the contents of .packages and pubspec.lock on buildbots (#4989)
parent
6f0635d6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
8 deletions
+39
-8
build.dart
packages/flutter_tools/lib/src/commands/build.dart
+26
-0
build_aot.dart
packages/flutter_tools/lib/src/commands/build_aot.dart
+3
-2
build_apk.dart
packages/flutter_tools/lib/src/commands/build_apk.dart
+3
-2
build_flx.dart
packages/flutter_tools/lib/src/commands/build_flx.dart
+3
-2
build_ios.dart
packages/flutter_tools/lib/src/commands/build_ios.dart
+3
-2
pubspec.yaml
packages/flutter_tools/pubspec.yaml
+1
-0
No files found.
packages/flutter_tools/lib/src/commands/build.dart
View file @
2f77a079
...
...
@@ -5,8 +5,11 @@
import
'dart:async'
;
import
'dart:io'
;
import
'package:meta/meta.dart'
;
import
'../globals.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../base/utils.dart'
;
import
'build_apk.dart'
;
import
'build_aot.dart'
;
import
'build_flx.dart'
;
...
...
@@ -31,6 +34,29 @@ class BuildCommand extends FlutterCommand {
Future
<
int
>
runInProject
()
=>
new
Future
<
int
>.
value
(
0
);
}
abstract
class
BuildSubCommand
extends
FlutterCommand
{
@override
@mustCallSuper
Future
<
int
>
runInProject
()
async
{
if
(
isRunningOnBot
)
{
File
dotPackages
=
new
File
(
'.packages'
);
printStatus
(
'Contents of .packages:'
);
if
(
dotPackages
.
existsSync
())
printStatus
(
dotPackages
.
readAsStringSync
());
else
printError
(
'File not found:
${dotPackages.absolute.path}
'
);
File
pubspecLock
=
new
File
(
'pubspec.lock'
);
printStatus
(
'Contents of pubspec.lock:'
);
if
(
pubspecLock
.
existsSync
())
printStatus
(
pubspecLock
.
readAsStringSync
());
else
printError
(
'File not found:
${pubspecLock.absolute.path}
'
);
}
return
0
;
}
}
class
BuildCleanCommand
extends
FlutterCommand
{
@override
final
String
name
=
'clean'
;
...
...
packages/flutter_tools/lib/src/commands/build_aot.dart
View file @
2f77a079
...
...
@@ -14,7 +14,7 @@ import '../build_info.dart';
import
'../dart/package_map.dart'
;
import
'../globals.dart'
;
import
'../run.dart'
;
import
'
../runner/flutter_comman
d.dart'
;
import
'
buil
d.dart'
;
const
String
_kDefaultAotOutputDir
=
'build/aot'
;
...
...
@@ -23,7 +23,7 @@ const List<String> kAotSnapshotFiles = const <String>[
'snapshot_aot_instr'
,
'snapshot_aot_isolate'
,
'snapshot_aot_rodata'
,
'snapshot_aot_vmisolate'
,
];
class
BuildAotCommand
extends
Flutter
Command
{
class
BuildAotCommand
extends
BuildSub
Command
{
BuildAotCommand
()
{
usesTargetOption
();
addBuildModeFlags
();
...
...
@@ -45,6 +45,7 @@ class BuildAotCommand extends FlutterCommand {
@override
Future
<
int
>
runInProject
()
async
{
await
super
.
runInProject
();
String
targetPlatform
=
argResults
[
'target-platform'
];
TargetPlatform
platform
=
getTargetPlatformForName
(
targetPlatform
);
if
(
platform
==
null
)
{
...
...
packages/flutter_tools/lib/src/commands/build_apk.dart
View file @
2f77a079
...
...
@@ -19,9 +19,9 @@ import '../build_info.dart';
import
'../flx.dart'
as
flx
;
import
'../globals.dart'
;
import
'../run.dart'
;
import
'../runner/flutter_command.dart'
;
import
'../services.dart'
;
import
'build_aot.dart'
;
import
'build.dart'
;
export
'../android/android_device.dart'
show
AndroidDevice
;
...
...
@@ -159,7 +159,7 @@ class ApkKeystoreInfo {
final
String
keyPassword
;
}
class
BuildApkCommand
extends
Flutter
Command
{
class
BuildApkCommand
extends
BuildSub
Command
{
BuildApkCommand
()
{
usesTargetOption
();
addBuildModeFlags
();
...
...
@@ -203,6 +203,7 @@ class BuildApkCommand extends FlutterCommand {
@override
Future
<
int
>
runInProject
()
async
{
await
super
.
runInProject
();
if
(
isProjectUsingGradle
())
{
return
await
buildAndroidWithGradle
(
TargetPlatform
.
android_arm
,
...
...
packages/flutter_tools/lib/src/commands/build_flx.dart
View file @
2f77a079
...
...
@@ -6,9 +6,9 @@ import 'dart:async';
import
'../flx.dart'
;
import
'../globals.dart'
;
import
'
../runner/flutter_comman
d.dart'
;
import
'
buil
d.dart'
;
class
BuildFlxCommand
extends
Flutter
Command
{
class
BuildFlxCommand
extends
BuildSub
Command
{
BuildFlxCommand
()
{
usesTargetOption
();
argParser
.
addFlag
(
'precompiled'
,
negatable:
false
);
...
...
@@ -37,6 +37,7 @@ class BuildFlxCommand extends FlutterCommand {
@override
Future
<
int
>
runInProject
()
async
{
await
super
.
runInProject
();
String
outputPath
=
argResults
[
'output-file'
];
return
await
build
(
...
...
packages/flutter_tools/lib/src/commands/build_ios.dart
View file @
2f77a079
...
...
@@ -11,9 +11,9 @@ import '../base/logger.dart';
import
'../build_info.dart'
;
import
'../globals.dart'
;
import
'../ios/mac.dart'
;
import
'
../runner/flutter_comman
d.dart'
;
import
'
buil
d.dart'
;
class
BuildIOSCommand
extends
Flutter
Command
{
class
BuildIOSCommand
extends
BuildSub
Command
{
BuildIOSCommand
()
{
usesTargetOption
();
addBuildModeFlags
();
...
...
@@ -30,6 +30,7 @@ class BuildIOSCommand extends FlutterCommand {
@override
Future
<
int
>
runInProject
()
async
{
await
super
.
runInProject
();
if
(
getCurrentHostPlatform
()
!=
HostPlatform
.
darwin_x64
)
{
printError
(
'Building for iOS is only supported on the Mac.'
);
return
1
;
...
...
packages/flutter_tools/pubspec.yaml
View file @
2f77a079
...
...
@@ -22,6 +22,7 @@ dependencies:
json_schema
:
1.0.3
linter
:
^0.1.17
meta
:
^0.12.0
mustache4dart
:
^1.0.0
package_config
:
'
>=0.1.5
<2.0.0'
path
:
^1.3.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment