Google.IOSResolver.OnPostProcessGenPodfile C# (CSharp) Method

OnPostProcessGenPodfile() private method

private OnPostProcessGenPodfile ( BuildTarget buildTarget, string pathToBuiltProject ) : void
buildTarget BuildTarget
pathToBuiltProject string
return void
    public static void OnPostProcessGenPodfile(BuildTarget buildTarget,
                                               string pathToBuiltProject) {
        if (!InjectDependencies()) return;

        using (StreamWriter file =
               new StreamWriter(Path.Combine(pathToBuiltProject, "Podfile"))) {
            file.Write("source 'https://github.com/CocoaPods/Specs.git'\n" +
                "install! 'cocoapods', :integrate_targets => false\n" +
                string.Format("platform :ios, '{0}'\n\n", TargetSdk) +
                "target '" + TARGET_NAME + "' do\n"
            );
            foreach(var pod in pods.Values) {
                file.WriteLine(pod.PodFilePodLine);
            }
            file.WriteLine("end");
        }
    }