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
c19f7886
Unverified
Commit
c19f7886
authored
Jun 18, 2019
by
Jason Simmons
Committed by
GitHub
Jun 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove portions of the Gradle script related to dynamic patching (#34606)
parent
3703e887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+3
-28
No files found.
packages/flutter_tools/gradle/flutter.gradle
View file @
c19f7886
...
...
@@ -135,18 +135,6 @@ class FlutterPlugin implements Plugin<Project> {
matchingFallbacks
=
[
'debug'
,
'release'
]
}
}
dynamicProfile
{
initWith
debug
if
(
it
.
hasProperty
(
'matchingFallbacks'
))
{
matchingFallbacks
=
[
'debug'
,
'release'
]
}
}
dynamicRelease
{
initWith
debug
if
(
it
.
hasProperty
(
'matchingFallbacks'
))
{
matchingFallbacks
=
[
'debug'
,
'release'
]
}
}
}
String
flutterRootPath
=
resolveProperty
(
project
,
"flutter.sdk"
,
System
.
env
.
FLUTTER_ROOT
)
...
...
@@ -211,8 +199,6 @@ class FlutterPlugin implements Plugin<Project> {
}
baseJar
[
"profile"
]
=
baseEnginePath
.
resolve
(
"${basePlatformArch}-profile"
).
resolve
(
"flutter.jar"
).
toFile
()
baseJar
[
"release"
]
=
baseEnginePath
.
resolve
(
"${basePlatformArch}-release"
).
resolve
(
"flutter.jar"
).
toFile
()
baseJar
[
"dynamicProfile"
]
=
baseEnginePath
.
resolve
(
"${basePlatformArch}-dynamic-profile"
).
resolve
(
"flutter.jar"
).
toFile
()
baseJar
[
"dynamicRelease"
]
=
baseEnginePath
.
resolve
(
"${basePlatformArch}-dynamic-release"
).
resolve
(
"flutter.jar"
).
toFile
()
// Add flutter.jar dependencies to all <buildType>Api configurations, including custom ones
// added after applying the Flutter plugin.
...
...
@@ -373,15 +359,11 @@ class FlutterPlugin implements Plugin<Project> {
*
* Note: The BuildType DSL type is not public, and is therefore omitted from the signature.
*
* @return "debug", "profile",
"dynamicProfile", "dynamicRelease",
or "release" (fall-back).
* @return "debug", "profile", or "release" (fall-back).
*/
private
static
String
buildModeFor
(
buildType
)
{
if
(
buildType
.
name
==
"profile"
)
{
return
"profile"
}
else
if
(
buildType
.
name
==
"dynamicProfile"
)
{
return
"dynamicProfile"
}
else
if
(
buildType
.
name
==
"dynamicRelease"
)
{
return
"dynamicRelease"
}
else
if
(
buildType
.
debuggable
)
{
return
"debug"
}
...
...
@@ -391,10 +373,6 @@ class FlutterPlugin implements Plugin<Project> {
private
static
String
getEngineArtifactDirName
(
buildType
,
targetArch
)
{
if
(
buildType
.
name
==
"profile"
)
{
return
"${targetArch}-profile"
}
else
if
(
buildType
.
name
==
"dynamicProfile"
)
{
return
"${targetArch}-dynamic-profile"
}
else
if
(
buildType
.
name
==
"dynamicRelease"
)
{
return
"${targetArch}-dynamic-release"
}
else
if
(
buildType
.
debuggable
)
{
return
"${targetArch}"
}
...
...
@@ -742,15 +720,12 @@ abstract class BaseFlutterTask extends DefaultTask {
if
(
buildMode
==
"debug"
)
{
args
"--debug"
}
if
(
buildMode
==
"profile"
||
buildMode
==
"dynamicProfile"
)
{
if
(
buildMode
==
"profile"
)
{
args
"--profile"
}
if
(
buildMode
==
"release"
||
buildMode
==
"dynamicRelease"
)
{
if
(
buildMode
==
"release"
)
{
args
"--release"
}
if
(
buildMode
==
"dynamicProfile"
||
buildMode
==
"dynamicRelease"
)
{
args
"--dynamic"
}
}
}
}
...
...
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