private static void CreateDesktopJsonFromPlist(string sourceFilename)
        {
            string projectDir = GenerateXmlFromGoogleServicesJson.GetProjectDir();
            string text       = Path.Combine(projectDir, sourceFilename);
            string text2      = Path.Combine(projectDir, GenerateXmlFromGoogleServicesJson.google_services_desktop_output_path);

            if (File.Exists(text2) && File.GetLastWriteTime(text2).CompareTo(File.GetLastWriteTime(text)) >= 0)
            {
                return;
            }
            if (GenerateXmlFromGoogleServicesJson.PrepareJsonDirectory())
            {
                CommandLine.Result result = GenerateXmlFromGoogleServicesJson.RunResourceGenerator(string.Concat(new string[]
                {
                    "-i \"",
                    text,
                    "\" -o \"",
                    text2,
                    "\" --plist"
                }), sourceFilename, false);
                if (result.exitCode != 0)
                {
                    Debug.LogError(DocStrings.DocRef.CouldNotTranslatePlist.Format(new object[]
                    {
                        sourceFilename
                    }));
                }
            }
        }
        private static void CreateDesktopJsonFromJson(string sourceFilename)
        {
            string projectDir = GenerateXmlFromGoogleServicesJson.GetProjectDir();
            string path       = Path.Combine(projectDir, sourceFilename);
            string path2      = Path.Combine(projectDir, GenerateXmlFromGoogleServicesJson.google_services_desktop_output_path);

            if (File.Exists(path2) && File.GetLastWriteTime(path2).CompareTo(File.GetLastWriteTime(path)) >= 0)
            {
                return;
            }
            if (GenerateXmlFromGoogleServicesJson.PrepareJsonDirectory())
            {
                try {
                    AssetDatabase.CopyAsset(sourceFilename, GenerateXmlFromGoogleServicesJson.google_services_desktop_output_path);
                } catch {
                    Debug.LogError(DocStrings.DocRef.CouldNotCopyFile.Format(new object[]
                    {
                        Path.Combine(projectDir, sourceFilename),
                        Path.Combine(projectDir, GenerateXmlFromGoogleServicesJson.google_services_desktop_output_path)
                    }));
                }
            }
        }