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
91d6c972
Unverified
Commit
91d6c972
authored
Apr 27, 2021
by
Emmanuel Garcia
Committed by
GitHub
Apr 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug when resolving entrypoint against package config (#81248)
parent
0866005f
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
201 additions
and
108 deletions
+201
-108
dart_plugin_registrant.dart
.../lib/src/build_system/targets/dart_plugin_registrant.dart
+2
-3
dart_plugin_registrant_test.dart
...ard/build_system/targets/dart_plugin_registrant_test.dart
+199
-105
No files found.
packages/flutter_tools/lib/src/build_system/targets/dart_plugin_registrant.dart
View file @
91d6c972
...
@@ -45,9 +45,8 @@ class DartPluginRegistrantTarget extends Target {
...
@@ -45,9 +45,8 @@ class DartPluginRegistrantTarget extends Target {
final
String
targetFile
=
environment
.
defines
[
kTargetFile
]
??
final
String
targetFile
=
environment
.
defines
[
kTargetFile
]
??
environment
.
fileSystem
.
path
.
join
(
'lib'
,
'main.dart'
);
environment
.
fileSystem
.
path
.
join
(
'lib'
,
'main.dart'
);
final
File
mainFile
=
environment
.
fileSystem
.
file
(
targetFile
);
final
File
mainFile
=
environment
.
fileSystem
.
file
(
targetFile
);
final
Uri
mainFileUri
=
mainFile
.
uri
;
final
Uri
mainFileUri
=
mainFile
.
absolute
.
uri
;
assert
(
packagesFile
.
path
!=
null
);
final
String
mainUri
=
packageConfig
.
toPackageUri
(
mainFileUri
)?.
toString
()
??
mainFileUri
.
toString
();
final
String
mainUri
=
packageConfig
.
toPackageUri
(
mainFileUri
)?.
toString
();
final
File
newMainDart
=
environment
.
projectDir
final
File
newMainDart
=
environment
.
projectDir
.
childDirectory
(
'.dart_tool'
)
.
childDirectory
(
'.dart_tool'
)
.
childDirectory
(
'flutter_build'
)
.
childDirectory
(
'flutter_build'
)
...
...
packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart
View file @
91d6c972
This diff is collapsed.
Click to expand it.
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