Bitcode strip Flutter.framework in assemble build target (#77329)

This commit is contained in:
Jenn Magder
2021-03-05 10:38:57 -08:00
committed by GitHub
parent 565e48777a
commit 7e02cc34f9
5 changed files with 151 additions and 33 deletions

View File

@@ -40,7 +40,7 @@ bool containsBitcode(String pathToBinary, ProcessManager processManager) {
lines.asMap().forEach((int index, String line) {
if (line.contains('segname __LLVM') && lines.length - index - 1 > 3) {
final String emptyBitcodeMarker =
lines.skip(index - 1).take(3).firstWhere(
lines.skip(index - 1).take(4).firstWhere(
(String line) => line.contains(' size 0x0000000000000001'),
orElse: () => null,
);