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
71740bef
Unverified
Commit
71740bef
authored
Nov 01, 2019
by
Jonah Williams
Committed by
GitHub
Nov 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove listDartSources (#43950)
parent
7d4a968f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
33 deletions
+0
-33
dart.dart
...ages/flutter_tools/lib/src/build_system/targets/dart.dart
+0
-23
dart_test.dart
...ls/test/general.shard/build_system/targets/dart_test.dart
+0
-10
No files found.
packages/flutter_tools/lib/src/build_system/targets/dart.dart
View file @
71740bef
...
...
@@ -8,10 +8,8 @@ import '../../artifacts.dart';
import
'../../asset.dart'
;
import
'../../base/build.dart'
;
import
'../../base/file_system.dart'
;
import
'../../base/platform.dart'
;
import
'../../build_info.dart'
;
import
'../../compile.dart'
;
import
'../../dart/package_map.dart'
;
import
'../../devfs.dart'
;
import
'../../globals.dart'
;
import
'../../project.dart'
;
...
...
@@ -42,27 +40,6 @@ const String kTrackWidgetCreation = 'TrackWidgetCreation';
/// The other supported value is armv7, the 32-bit iOS architecture.
const
String
kIosArchs
=
'IosArchs'
;
/// Finds the locations of all dart files within the project.
///
/// This does not attempt to determine if a file is used or imported, so it
/// may otherwise report more files than strictly necessary.
List
<
File
>
listDartSources
(
Environment
environment
)
{
final
Map
<
String
,
Uri
>
packageMap
=
PackageMap
(
environment
.
projectDir
.
childFile
(
'.packages'
).
path
).
map
;
final
List
<
File
>
dartFiles
=
<
File
>[];
for
(
Uri
uri
in
packageMap
.
values
)
{
final
Directory
libDirectory
=
fs
.
directory
(
uri
.
toFilePath
(
windows:
platform
.
isWindows
));
if
(!
libDirectory
.
existsSync
())
{
continue
;
}
for
(
FileSystemEntity
entity
in
libDirectory
.
listSync
(
recursive:
true
))
{
if
(
entity
is
File
&&
entity
.
path
.
endsWith
(
'.dart'
))
{
dartFiles
.
add
(
entity
);
}
}
}
return
dartFiles
;
}
/// Copies the prebuilt flutter bundle.
// This is a one-off rule for implementing build bundle in terms of assemble.
class
CopyFlutterBundle
extends
Target
{
...
...
packages/flutter_tools/test/general.shard/build_system/targets/dart_test.dart
View file @
71740bef
...
...
@@ -354,16 +354,6 @@ flutter_tools:lib/''');
ProcessManager:
()
=>
mockProcessManager
,
}));
test
(
'list dart sources handles packages without lib directories'
,
()
=>
testbed
.
run
(()
{
fs
.
file
(
'.packages'
)
..
createSync
()
..
writeAsStringSync
(
'''
# Generated
example:fiz/lib/'''
);
fs
.
directory
(
'fiz'
).
createSync
();
expect
(
listDartSources
(
androidEnvironment
),
<
File
>[]);
}));
test
(
'Profile/ReleaseCopyFlutterAotBundle copies .so to correct output directory'
,
()
=>
testbed
.
run
(()
async
{
androidEnvironment
.
buildDir
.
createSync
(
recursive:
true
);
androidEnvironment
.
buildDir
.
childFile
(
'app.so'
).
createSync
();
...
...
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