<commit_before>#if UNITY_IOS
using System.IO;

using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEditor.iOS.Xcode;

using UnityEngine;

namespace EE.Editor {
    public class IosProcessor : IPostprocessBuildWithReport {
        public int callbackOrder { get; }

        public void OnPostprocessBuild(BuildReport report) {
            var plistPath = Path.Combine(report.summary.outputPath, "Info.plist");
            var plist = new PlistDocument();
            plist.ReadFromFile(plistPath);
            var settings = LibrarySettings.Instance;
            if (settings.IsAdMobEnabled) {
                var appId = settings.AdMobIosAppId;
                if (appId.Length == 0) {
                    Debug.LogError("AdMob iOS App Id is missing");
                } else {
                    plist.root.SetString("GADApplicationIdentifier", appId);
                }
            }
            plist.WriteToFile(plistPath);
        }
    }
}

#endif // UNITY_IOS<commit_msg>Fix plist (for AdMob).<commit_after>#if UNITY_IOS
using System.IO;

using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEditor.iOS.Xcode;

using UnityEngine;

namespace EE.Editor {
    public class IosProcessor : IPostprocessBuildWithReport {
        public int callbackOrder { get; }

        public void OnPostprocessBuild(BuildReport report) {
            var plistPath = Path.Combine(report.summary.outputPath, "Info.plist");
            var plist = new PlistDocument();
            plist.ReadFromFile(plistPath);
            var settings = LibrarySettings.Instance;
            if (settings.IsAdMobEnabled) {
                var appId = settings.AdMobIosAppId;
                if (appId.Length == 0) {
                    Debug.LogError("AdMob iOS App Id is missing");
                } else {
                    plist.root.SetString("GADApplicationIdentifier", appId);
                }
                // Add SKAdNetworkItems
                var items = plist.root.CreateArray("SKAdNetworkItems");
                var dict = items.AddDict();
                dict.SetString("SKAdNetworkIdentifier", "cstr6suwn9.skadnetwork");
            }
            plist.WriteToFile(plistPath);
        }
    }
}

#endif // UNITY_IOS
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0017825311942959, 'mean_word_length': 2.037889039242219, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1436956', 'n_tokens_mistral': 651, 'n_tokens_neox': 610, 'n_words': 128}