Always embed Flutter.framework build mode version from Xcode configuration (#42029)

This commit is contained in:
Jenn Magder
2019-10-15 15:33:55 -07:00
committed by GitHub
parent ad1d67e0a1
commit 357d02c87b
20 changed files with 424 additions and 210 deletions

View File

@@ -314,6 +314,27 @@ void main() {
ProcessManager: () => mockProcessManager,
});
testUsingContext('prints warning, if Podfile is out of date', () async {
pretendPodIsInstalled();
fs.file(fs.path.join('project', 'ios', 'Podfile'))
..createSync()
..writeAsStringSync('Existing Podfile');
final Directory symlinks = projectUnderTest.ios.symlinks
..createSync(recursive: true);
symlinks.childLink('flutter').createSync('cache');
await cocoaPodsUnderTest.processPods(
xcodeProject: projectUnderTest.ios,
engineDir: 'engine/path',
);
expect(testLogger.errorText, contains('Warning: Podfile is out of date'));
}, overrides: <Type, Generator>{
FileSystem: () => fs,
ProcessManager: () => mockProcessManager,
});
testUsingContext('throws, if Podfile is missing.', () async {
pretendPodIsInstalled();
try {