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
6881fca7
Unverified
Commit
6881fca7
authored
Jul 23, 2021
by
Jenn Magder
Committed by
GitHub
Jul 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Respect plugin excluded iOS architectures (#86905)
parent
8fcace1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
plugin_tests.dart
dev/devicelab/lib/tasks/plugin_tests.dart
+13
-8
podhelper.rb
packages/flutter_tools/bin/podhelper.rb
+1
-1
ios_content_validation_test.dart
...s/test/integration.shard/ios_content_validation_test.dart
+2
-1
No files found.
dev/devicelab/lib/tasks/plugin_tests.dart
View file @
6881fca7
...
...
@@ -167,14 +167,19 @@ class _FlutterProject {
}
final
String
podsProjectContent
=
podsProject
.
readAsStringSync
();
// This may be a bit brittle, IPHONEOS_DEPLOYMENT_TARGET appears in the
// Pods Xcode project file 6 times. If this number changes, make sure
// it's not a regression in the IPHONEOS_DEPLOYMENT_TARGET override logic.
// The plugintest target should not have IPHONEOS_DEPLOYMENT_TARGET set.
// See _reduceDarwinPluginMinimumVersion for details.
final
int
iosDeploymentTargetCount
=
'IPHONEOS_DEPLOYMENT_TARGET'
.
allMatches
(
podsProjectContent
).
length
;
if
(
target
==
'ios'
&&
iosDeploymentTargetCount
!=
9
)
{
throw
TaskResult
.
failure
(
'plugintest may contain IPHONEOS_DEPLOYMENT_TARGET,
$iosDeploymentTargetCount
found'
);
if
(
target
==
'ios'
)
{
// This may be a bit brittle, IPHONEOS_DEPLOYMENT_TARGET appears in the
// Pods Xcode project file 6 times. If this number changes, make sure
// it's not a regression in the IPHONEOS_DEPLOYMENT_TARGET override logic.
// The plugintest target should not have IPHONEOS_DEPLOYMENT_TARGET set.
// See _reduceDarwinPluginMinimumVersion for details.
final
int
iosDeploymentTargetCount
=
'IPHONEOS_DEPLOYMENT_TARGET'
.
allMatches
(
podsProjectContent
).
length
;
if
(
iosDeploymentTargetCount
!=
9
)
{
throw
TaskResult
.
failure
(
'plugintest may contain IPHONEOS_DEPLOYMENT_TARGET,
$iosDeploymentTargetCount
found'
);
}
if
(!
podsProjectContent
.
contains
(
r'"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "$(inherited) i386";'
))
{
throw
TaskResult
.
failure
(
r'EXCLUDED_ARCHS is not "$(inherited) i386"'
);
}
}
// Same for macOS, but 12.
...
...
packages/flutter_tools/bin/podhelper.rb
View file @
6881fca7
...
...
@@ -74,7 +74,7 @@ def flutter_additional_ios_build_settings(target)
# Override legacy Xcode 11 style VALID_ARCHS[sdk=iphonesimulator*]=x86_64 and prefer Xcode 12 EXCLUDED_ARCHS.
build_configuration
.
build_settings
[
'VALID_ARCHS[sdk=iphonesimulator*]'
]
=
'$(ARCHS_STANDARD)'
build_configuration
.
build_settings
[
'EXCLUDED_ARCHS[sdk=iphonesimulator*]'
]
=
'i386'
build_configuration
.
build_settings
[
'EXCLUDED_ARCHS[sdk=iphonesimulator*]'
]
=
'
$(inherited)
i386'
end
end
...
...
packages/flutter_tools/test/integration.shard/ios_content_validation_test.dart
View file @
6881fca7
...
...
@@ -225,7 +225,7 @@ void main() {
'FLUTTER_XCODE_ONLY_ACTIVE_ARCH'
:
'NO'
,
},
);
// This test case would fail if arm64 or
i386 were not exclude
d.
// This test case would fail if arm64 or
x86_64 simulators could not buil
d.
expect
(
buildSimulator
.
exitCode
,
0
);
final
File
simulatorAppFrameworkBinary
=
fileSystem
.
file
(
fileSystem
.
path
.
join
(
...
...
@@ -243,6 +243,7 @@ void main() {
<
String
>[
'file'
,
simulatorAppFrameworkBinary
.
path
],
);
expect
(
archs
.
stdout
,
contains
(
'Mach-O 64-bit dynamically linked shared library x86_64'
));
expect
(
archs
.
stdout
,
contains
(
'Mach-O 64-bit dynamically linked shared library arm64'
));
});
},
skip:
!
platform
.
isMacOS
,
timeout:
const
Timeout
(
Duration
(
minutes:
5
))
);
...
...
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