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
407668f4
Unverified
Commit
407668f4
authored
Sep 20, 2019
by
Emmanuel Garcia
Committed by
GitHub
Sep 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop using deprecated features from Gradle (#40900)
parent
f7173dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
flutter.gradle
packages/flutter_tools/gradle/flutter.gradle
+12
-5
No files found.
packages/flutter_tools/gradle/flutter.gradle
View file @
407668f4
...
...
@@ -627,16 +627,23 @@ class FlutterPlugin implements Plugin<Project> {
dependsOn
cleanPackageAssets
into
packageAssets
.
outputDir
}
else
{
dependsOn
variant
.
mergeAssets
dependsOn
"clean${variant.mergeAssets.name.capitalize()}"
variant
.
mergeAssets
.
mustRunAfter
(
"clean${variant.mergeAssets.name.capitalize()}"
)
into
variant
.
mergeAssets
.
outputDir
// `variant.mergeAssets` will be removed at the end of 2019.
def
mergeAssets
=
variant
.
hasProperty
(
"mergeAssetsProvider"
)
?
variant
.
mergeAssetsProvider
.
get
()
:
variant
.
mergeAssets
dependsOn
mergeAssets
dependsOn
"clean${mergeAssets.name.capitalize()}"
mergeAssets
.
mustRunAfter
(
"clean${mergeAssets.name.capitalize()}"
)
into
mergeAssets
.
outputDir
}
compileTasks
.
each
{
flutterTask
->
with
flutterTask
.
assets
}
}
variant
.
outputs
.
first
().
processResources
.
dependsOn
(
copyFlutterAssetsTask
)
def
variantOutput
=
variant
.
outputs
.
first
()
// `variantOutput.processResources` will be removed at the end of 2019.
def
processResources
=
variantOutput
.
hasProperty
(
"processResourcesProvider"
)
?
variantOutput
.
processResourcesProvider
.
get
()
:
variantOutput
.
processResources
processResources
.
dependsOn
(
copyFlutterAssetsTask
)
}
if
(
project
.
android
.
hasProperty
(
"applicationVariants"
))
{
project
.
android
.
applicationVariants
.
all
addFlutterDeps
...
...
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