this.allFlavors.addAll(allFlavors);
this.platforms = platforms;
}
public void execute(NativeComponentSpec projectNativeComponent) {
TargetedNativeComponentInternal targetedComponent = (TargetedNativeComponentInternal) projectNativeComponent;
List<NativePlatform> targetPlatforms = platforms.chooseFromTargets(NativePlatform.class, targetedComponent.getTargetPlatforms(), DefaultNativePlatform.getDefault(), defaultPlatforms);
for (NativePlatform platform: targetPlatforms) {
NativeToolChainInternal toolChain = (NativeToolChainInternal) toolChainRegistry.getForPlatform(platform);
PlatformToolProvider toolProvider = toolChain.select((NativePlatformInternal) platform);