Remove iOS stubs (#3490)

Plugins that don't actually support iOS are no longer required to have
an iOS stub to prevent build failures. This removes all iOS stubs from
plugins that don't support iOS.
This commit is contained in:
stuartmorgan
2021-02-16 16:01:31 -08:00
committed by GitHub
parent d12e22a68d
commit bd8e34c7b1

View File

@ -200,11 +200,10 @@ Tried searching for the following:
if (isAndroid) {
return (isAndroidPlugin(plugin, fileSystem));
}
// When we are here, no flags are specified. Only return true if the plugin supports mobile for legacy command support.
// TODO(cyanglaz): Make mobile platforms flags also required like other platforms (breaking change).
// When we are here, no flags are specified. Only return true if the plugin
// supports Android for legacy command support. TODO(cyanglaz): Make Android
// flag also required like other platforms (breaking change).
// https://github.com/flutter/flutter/issues/58285
final bool isMobilePlugin =
isIosPlugin(plugin, fileSystem) || isAndroidPlugin(plugin, fileSystem);
return isMobilePlugin;
return isAndroidPlugin(plugin, fileSystem);
}
}