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
4fb9ce84
Unverified
Commit
4fb9ce84
authored
Feb 27, 2020
by
Jenn Magder
Committed by
GitHub
Feb 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean App.framework, Generated.xcconfig, flutter_export_environment.sh (#51532)
parent
080dfb5e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
30 deletions
+31
-30
clean.dart
packages/flutter_tools/lib/src/commands/clean.dart
+9
-13
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+0
-10
xcodeproj.dart
packages/flutter_tools/lib/src/ios/xcodeproj.dart
+2
-2
project.dart
packages/flutter_tools/lib/src/project.dart
+4
-0
clean_test.dart
...lutter_tools/test/commands.shard/hermetic/clean_test.dart
+10
-0
xcodeproj_test.dart
.../flutter_tools/test/general.shard/ios/xcodeproj_test.dart
+4
-4
context.dart
packages/flutter_tools/test/src/context.dart
+2
-1
No files found.
packages/flutter_tools/lib/src/commands/clean.dart
View file @
4fb9ce84
...
...
@@ -43,20 +43,16 @@ class CleanCommand extends FlutterCommand {
deleteFile
(
flutterProject
.
dartTool
);
final
Directory
androidEphemeralDirectory
=
flutterProject
.
android
.
ephemeralDirectory
;
deleteFile
(
androidEphemeralDirectory
);
deleteFile
(
flutterProject
.
android
.
ephemeralDirectory
);
final
Directory
iosEphemeralDirectory
=
flutterProject
.
ios
.
ephemeralDirectory
;
deleteFile
(
iosEphemeralDirectory
);
deleteFile
(
flutterProject
.
ios
.
ephemeralDirectory
);
deleteFile
(
flutterProject
.
ios
.
generatedXcodePropertiesFile
);
deleteFile
(
flutterProject
.
ios
.
generatedEnvironmentVariableExportScript
);
deleteFile
(
flutterProject
.
ios
.
compiledDartFramework
);
final
Directory
linuxEphemeralDirectory
=
flutterProject
.
linux
.
ephemeralDirectory
;
deleteFile
(
linuxEphemeralDirectory
);
final
Directory
macosEphemeralDirectory
=
flutterProject
.
macos
.
ephemeralDirectory
;
deleteFile
(
macosEphemeralDirectory
);
final
Directory
windowsEphemeralDirectory
=
flutterProject
.
windows
.
ephemeralDirectory
;
deleteFile
(
windowsEphemeralDirectory
);
deleteFile
(
flutterProject
.
linux
.
ephemeralDirectory
);
deleteFile
(
flutterProject
.
macos
.
ephemeralDirectory
);
deleteFile
(
flutterProject
.
windows
.
ephemeralDirectory
);
return
const
FlutterCommandResult
(
ExitStatus
.
success
);
}
...
...
@@ -73,7 +69,7 @@ class CleanCommand extends FlutterCommand {
final
Directory
xcodeWorkspace
=
xcodeProject
.
xcodeWorkspace
;
final
XcodeProjectInfo
projectInfo
=
await
xcodeProjectInterpreter
.
getInfo
(
xcodeWorkspace
.
parent
.
path
);
for
(
final
String
scheme
in
projectInfo
.
schemes
)
{
xcodeProjectInterpreter
.
cleanWorkspace
(
xcodeWorkspace
.
path
,
scheme
);
await
xcodeProjectInterpreter
.
cleanWorkspace
(
xcodeWorkspace
.
path
,
scheme
);
}
}
catch
(
error
)
{
globals
.
printTrace
(
'Could not clean Xcode workspace:
$error
'
);
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
4fb9ce84
...
...
@@ -429,16 +429,6 @@ return result.exitCode != 0 &&
result
.
stdout
.
contains
(
'there are two concurrent builds running'
);
}
String
readGeneratedXcconfig
(
String
appPath
)
{
final
String
generatedXcconfigPath
=
globals
.
fs
.
path
.
join
(
globals
.
fs
.
currentDirectory
.
path
,
appPath
,
'Flutter'
,
'Generated.xcconfig'
);
final
File
generatedXcconfigFile
=
globals
.
fs
.
file
(
generatedXcconfigPath
);
if
(!
generatedXcconfigFile
.
existsSync
())
{
return
null
;
}
return
generatedXcconfigFile
.
readAsStringSync
();
}
Future
<
void
>
diagnoseXcodeBuildFailure
(
XcodeBuildResult
result
)
async
{
if
(
result
.
xcodeBuildExecution
!=
null
&&
result
.
xcodeBuildExecution
.
buildForPhysicalDevice
&&
...
...
packages/flutter_tools/lib/src/ios/xcodeproj.dart
View file @
4fb9ce84
...
...
@@ -357,8 +357,8 @@ class XcodeProjectInterpreter {
}
}
void
cleanWorkspace
(
String
workspacePath
,
String
scheme
)
{
_processUtils
.
runSync
(<
String
>[
Future
<
void
>
cleanWorkspace
(
String
workspacePath
,
String
scheme
)
async
{
await
_processUtils
.
run
(<
String
>[
_executable
,
'-workspace'
,
workspacePath
,
...
...
packages/flutter_tools/lib/src/project.dart
View file @
4fb9ce84
...
...
@@ -567,6 +567,10 @@ class IosProject extends FlutterProjectPlatform implements XcodeBasedProject {
.
childDirectory
(
'Flutter'
)
.
childFile
(
'Generated.xcconfig'
);
Directory
get
compiledDartFramework
=>
_flutterLibRoot
.
childDirectory
(
'Flutter'
)
.
childDirectory
(
'App.framework'
);
Directory
get
pluginRegistrantHost
{
return
isModule
?
_flutterLibRoot
...
...
packages/flutter_tools/test/commands.shard/hermetic/clean_test.dart
View file @
4fb9ce84
...
...
@@ -44,7 +44,12 @@ void main() {
projectUnderTest
.
dartTool
.
createSync
(
recursive:
true
);
projectUnderTest
.
android
.
ephemeralDirectory
.
createSync
(
recursive:
true
);
projectUnderTest
.
ios
.
ephemeralDirectory
.
createSync
(
recursive:
true
);
projectUnderTest
.
ios
.
generatedXcodePropertiesFile
.
createSync
(
recursive:
true
);
projectUnderTest
.
ios
.
generatedEnvironmentVariableExportScript
.
createSync
(
recursive:
true
);
projectUnderTest
.
ios
.
compiledDartFramework
.
createSync
(
recursive:
true
);
projectUnderTest
.
linux
.
ephemeralDirectory
.
createSync
(
recursive:
true
);
projectUnderTest
.
macos
.
ephemeralDirectory
.
createSync
(
recursive:
true
);
projectUnderTest
.
windows
.
ephemeralDirectory
.
createSync
(
recursive:
true
);
...
...
@@ -57,7 +62,12 @@ void main() {
expect
(
buildDirectory
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
dartTool
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
android
.
ephemeralDirectory
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
ios
.
ephemeralDirectory
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
ios
.
generatedXcodePropertiesFile
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
ios
.
generatedEnvironmentVariableExportScript
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
ios
.
compiledDartFramework
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
linux
.
ephemeralDirectory
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
macos
.
ephemeralDirectory
.
existsSync
(),
isFalse
);
expect
(
projectUnderTest
.
windows
.
ephemeralDirectory
.
existsSync
(),
isFalse
);
...
...
packages/flutter_tools/test/general.shard/ios/xcodeproj_test.dart
View file @
4fb9ce84
...
...
@@ -224,12 +224,12 @@ void main() {
'FLUTTER_XCODE_CODE_SIGN_STYLE'
:
'Manual'
,
'FLUTTER_XCODE_ARCHS'
:
'arm64'
});
when
(
processManager
.
run
Sync
(
when
(
processManager
.
run
(
any
,
workingDirectory:
anyNamed
(
'workingDirectory'
)))
.
then
Return
(
ProcessResult
(
1
,
0
,
''
,
''
));
xcodeProjectInterpreter
.
cleanWorkspace
(
'workspace_path'
,
'Runner'
);
final
List
<
dynamic
>
captured
=
verify
(
processManager
.
run
Sync
(
.
then
Answer
((
_
)
=>
Future
<
ProcessResult
>.
value
(
ProcessResult
(
1
,
0
,
''
,
''
)
));
await
xcodeProjectInterpreter
.
cleanWorkspace
(
'workspace_path'
,
'Runner'
);
final
List
<
dynamic
>
captured
=
verify
(
processManager
.
run
(
captureAny
,
workingDirectory:
anyNamed
(
'workingDirectory'
),
environment:
anyNamed
(
'environment'
))).
captured
;
...
...
packages/flutter_tools/test/src/context.dart
View file @
4fb9ce84
...
...
@@ -386,7 +386,8 @@ class FakeXcodeProjectInterpreter implements XcodeProjectInterpreter {
}
@override
void
cleanWorkspace
(
String
workspacePath
,
String
scheme
)
{
Future
<
void
>
cleanWorkspace
(
String
workspacePath
,
String
scheme
)
{
return
null
;
}
@override
...
...
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