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
d6147fd7
Commit
d6147fd7
authored
May 28, 2016
by
Jason Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the Gradle plugin to use --local-engine instead of the deprecated --engine-src-path (#4255)
parent
aee32698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
FlutterPlugin.groovy
...llo_android/buildSrc/src/main/groovy/FlutterPlugin.groovy
+6
-12
No files found.
examples/hello_android/buildSrc/src/main/groovy/FlutterPlugin.groovy
View file @
d6147fd7
...
...
@@ -19,7 +19,7 @@ import org.gradle.api.tasks.TaskAction
class
FlutterPlugin
implements
Plugin
<
Project
>
{
private
File
sdkDir
private
File
engineSrcDir
private
String
localEngine
@Override
void
apply
(
Project
project
)
{
...
...
@@ -56,13 +56,7 @@ class FlutterPlugin implements Plugin<Project> {
}
}
String
engineSrcPath
=
properties
.
getProperty
(
"flutter.engineSrcPath"
)
if
(
engineSrcPath
!=
null
)
{
engineSrcDir
=
project
.
file
(
engineSrcPath
)
if
(!
engineSrcDir
.
isDirectory
())
{
throw
new
GradleException
(
"flutter.engineSrcPath must be a Flutter engine source directory"
)
}
}
localEngine
=
properties
.
getProperty
(
"flutter.localEngine"
)
project
.
extensions
.
create
(
"flutter"
,
FlutterExtension
)
project
.
dependencies
.
add
(
"compile"
,
project
.
files
(
flutterJar
))
...
...
@@ -78,7 +72,7 @@ class FlutterPlugin implements Plugin<Project> {
sdkDir
this
.
sdkDir
sourceDir
project
.
file
(
project
.
flutter
.
source
)
intermediateDir
project
.
file
(
"${project.buildDir}/${AndroidProject.FD_INTERMEDIATES}/flutter"
)
engineSrcDir
this
.
engineSrcDir
localEngine
this
.
localEngine
}
project
.
android
.
applicationVariants
.
all
{
variant
->
...
...
@@ -106,7 +100,7 @@ class FlutterTask extends DefaultTask {
@OutputDirectory
File
intermediateDir
File
engineSrcDir
String
localEngine
String
getFlxPath
()
{
return
"${intermediateDir}/app.flx"
...
...
@@ -122,8 +116,8 @@ class FlutterTask extends DefaultTask {
project
.
exec
{
executable
"${sdkDir}/bin/flutter"
workingDir
sourceDir
if
(
engineSrcDir
!=
null
)
{
args
"--
engine-src-path"
,
engineSrcDir
if
(
localEngine
!=
null
)
{
args
"--
local-engine"
,
localEngine
}
args
"build"
,
"flx"
args
"-o"
,
flxPath
...
...
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