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
6f0bb206
Commit
6f0bb206
authored
Apr 19, 2016
by
Devon Carew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename deploy to release (#3407)
parent
261923e5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
engine.version
bin/cache/engine.version
+1
-1
build_configuration.dart
packages/flutter_tools/lib/src/build_configuration.dart
+2
-2
cache.dart
packages/flutter_tools/lib/src/cache.dart
+1
-1
build_apk.dart
packages/flutter_tools/lib/src/commands/build_apk.dart
+2
-2
flutter_command.dart
packages/flutter_tools/lib/src/runner/flutter_command.dart
+6
-6
toolchain.dart
packages/flutter_tools/lib/src/toolchain.dart
+2
-2
toolchain_test.dart
packages/flutter_tools/test/toolchain_test.dart
+2
-2
No files found.
bin/cache/engine.version
View file @
6f0bb206
57043227981727ae8ceb1d51514a2e0d14bf53f9
284929b60543c282419208bce4b26772e9cf0ff1
packages/flutter_tools/lib/src/build_configuration.dart
View file @
6f0bb206
...
...
@@ -15,12 +15,12 @@ enum BuildType {
debug
,
}
/// The type of build - `debug` or `
deploy
`.
/// The type of build - `debug` or `
release
`.
///
/// TODO(devoncarew): Add a `profile` mode.
enum
BuildMode
{
debug
,
deploy
release
}
String
getModeName
(
BuildMode
mode
)
=>
getEnumName
(
mode
);
...
...
packages/flutter_tools/lib/src/cache.dart
View file @
6f0bb206
...
...
@@ -189,7 +189,7 @@ class FlutterEngine {
List
<
String
>
_getEngineDirs
()
{
List
<
String
>
dirs
=
<
String
>[
'android-arm'
,
'android-arm-
deploy
'
,
'android-arm-
release
'
,
'android-x64'
];
...
...
packages/flutter_tools/lib/src/commands/build_apk.dart
View file @
6f0bb206
...
...
@@ -170,8 +170,8 @@ class BuildApkCommand extends FlutterCommand {
@override
final
String
description
=
'Build an Android APK file from your app.
\n\n
'
'This command can build de
velopment and deployable versions of your application.
\'
debug
\'
builds
\n
'
'
support debugging and a quick development cycle.
\'
deploy
\'
builds don
\'
t support debugging and are
\n
'
'This command can build de
bug and release versions of your application.
\'
debug
\'
builds support
\n
'
'
debugging and a quick development cycle.
\'
release
\'
builds don
\'
t support debugging and are
\n
'
'suitable for deploying to app stores.'
;
@override
...
...
packages/flutter_tools/lib/src/runner/flutter_command.dart
View file @
6f0bb206
...
...
@@ -64,18 +64,18 @@ abstract class FlutterCommand extends Command {
argParser
.
addFlag
(
'debug'
,
negatable:
false
,
help:
'Build a debug version of your app (the default).'
);
argParser
.
addFlag
(
'
deploy
'
,
argParser
.
addFlag
(
'
release
'
,
negatable:
false
,
help:
'Build a
deployabl
e version of your app.'
);
help:
'Build a
releas
e version of your app.'
);
}
BuildMode
getBuildMode
()
{
if
(
argResults
[
'debug'
]
&&
argResults
[
'
deploy
'
])
throw
new
UsageException
(
'Only one of --debug or --
deploy
should be specified.'
,
null
);
if
(
argResults
[
'debug'
]
&&
argResults
[
'
release
'
])
throw
new
UsageException
(
'Only one of --debug or --
release
should be specified.'
,
null
);
BuildMode
mode
=
BuildMode
.
debug
;
if
(
argResults
[
'
deploy
'
])
mode
=
BuildMode
.
deploy
;
if
(
argResults
[
'
release
'
])
mode
=
BuildMode
.
release
;
return
mode
;
}
...
...
packages/flutter_tools/lib/src/toolchain.dart
View file @
6f0bb206
...
...
@@ -162,9 +162,9 @@ class ToolConfiguration {
return
new
Directory
(
path
.
join
(
engineSrcPath
,
'out/
${type}
_
$_modeStr
'
));
}
else
{
// For now, only suffix for deploy variants.
String
suffix
=
mode
==
BuildMode
.
deploy
?
'-
${getModeName(mode)}
'
:
''
;
String
suffix
=
mode
==
BuildMode
.
release
?
'-
${getModeName(mode)}
'
:
''
;
// Create something like `android-arm` or `android-arm-
deploy
`.
// Create something like `android-arm` or `android-arm-
release
`.
String
dirName
=
getNameForTargetPlatform
(
platform
)
+
suffix
;
Directory
engineDir
=
_cache
.
getArtifactDirectory
(
'engine'
);
return
new
Directory
(
path
.
join
(
engineDir
.
path
,
dirName
));
...
...
packages/flutter_tools/test/toolchain_test.dart
View file @
6f0bb206
...
...
@@ -37,8 +37,8 @@ void main() {
endsWith
(
'cache/artifacts/engine/android-arm'
)
);
expect
(
toolConfig
.
getEngineArtifactsDirectory
(
TargetPlatform
.
android_arm
,
BuildMode
.
deploy
).
path
,
endsWith
(
'cache/artifacts/engine/android-arm-
deploy
'
)
toolConfig
.
getEngineArtifactsDirectory
(
TargetPlatform
.
android_arm
,
BuildMode
.
release
).
path
,
endsWith
(
'cache/artifacts/engine/android-arm-
release
'
)
);
});
...
...
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