private static void CheckConfiguration()
        {
            Delegate arg_22_0 = EditorApplication.update;

            if (GenerateXmlFromGoogleServicesJson.f__mgcacheB == null)
            {
                GenerateXmlFromGoogleServicesJson.f__mgcacheB = new EditorApplication.CallbackFunction(GenerateXmlFromGoogleServicesJson.CheckConfiguration);
            }
            EditorApplication.update = (EditorApplication.CallbackFunction)Delegate.Remove(arg_22_0, GenerateXmlFromGoogleServicesJson.f__mgcacheB);
            GenerateXmlFromGoogleServicesJson.UpdateConfigFileDirectory();
            if (GenerateXmlFromGoogleServicesJson.XMLGenerationEnabled)
            {
                GenerateXmlFromGoogleServicesJson.UpdateJsonWithBundleIdChooserDialog(UnityCompat.ApplicationId, false);
            }
            else
            {
                GenerateXmlFromGoogleServicesJson.UpdateJson(false, null, null);
            }
        }
        private static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromPath)
        {
            Debug.Log("oooooooooooooooooooooo");
            bool flag = false;

            for (int i = 0; i < importedAssets.Length; i++)
            {
                string path     = importedAssets[i];
                string fileName = Path.GetFileName(path);
                if (fileName == GenerateXmlFromGoogleServicesJson.google_services_input_file || fileName == GenerateXmlFromGoogleServicesJson.google_service_info_input_file)
                {
                    flag = true;
                    break;
                }
            }
            for (int j = 0; j < deletedAssets.Length; j++)
            {
                string a = deletedAssets[j];
                if (a == GenerateXmlFromGoogleServicesJson.google_services_desktop_output_path)
                {
                    flag = true;
                    break;
                }
            }
            for (int k = 0; k < movedAssets.Length; k++)
            {
                string a2 = movedAssets[k];
                if (a2 == GenerateXmlFromGoogleServicesJson.google_services_desktop_output_path)
                {
                    flag = true;
                    break;
                }
            }
            if (flag)
            {
                GenerateXmlFromGoogleServicesJson.UpdateConfigFileDirectory();
                GenerateXmlFromGoogleServicesJson.spamguard = false;
                GenerateXmlFromGoogleServicesJson.UpdateJson(true, null, null);
            }
        }
 public static void ForceJsonUpdate(bool canPromptToChangePackageId = false)
 {
     GenerateXmlFromGoogleServicesJson.spamguard = !canPromptToChangePackageId;
     GenerateXmlFromGoogleServicesJson.UpdateConfigFileDirectory();
     GenerateXmlFromGoogleServicesJson.UpdateJson(true, null, null);
 }