Allow exported __const on iOS (flutter/engine#8217)

This commit is contained in:
Dan Field
2019-03-19 11:56:55 -07:00
committed by GitHub
parent 47a46cd02c
commit 011838e2c8

View File

@@ -69,7 +69,7 @@ int _checkIos(String outPath, String nmPath, Iterable<String> builds) {
continue;
}
final Iterable<NmEntry> unexpectedEntries = NmEntry.parse(nmResult.stdout).where((NmEntry entry) {
return !((entry.type == '(__DATA,__common)' && entry.name.startsWith('_Flutter'))
return !(((entry.type == '(__DATA,__common)' || entry.type == '(__DATA,__const)') && entry.name.startsWith('_Flutter'))
|| (entry.type == '(__DATA,__objc_data)'
&& (entry.name.startsWith('_OBJC_METACLASS_\$_Flutter') || entry.name.startsWith('_OBJC_CLASS_\$_Flutter'))));
});