public static void WriteSettings(AppTrackingTransparencySettings settings)
        {
            var settingsFolder = SettingsFolderPath;

            if (!Directory.Exists(settingsFolder))
            {
                Directory.CreateDirectory(settingsFolder);
            }

            File.WriteAllText(SettingsFilePath, JsonUtility.ToJson(settings, true));
        }
        public static AppTrackingTransparencySettings LoadSettings()
        {
            if (!File.Exists(SettingsFilePath))
            {
                var defaultSettings = new AppTrackingTransparencySettings();
                defaultSettings.SettingsFileVersion     = 1;
                defaultSettings.AutomaticPostProcessing = true;
                defaultSettings.AutomaticPostProcessingCallbackOrder = 10;
                defaultSettings.AddAppTransparencyTrackingFramework  = true;
                defaultSettings.AddUserTrackingUsageDescription      = true;
                defaultSettings.UserTrackingUsageDescription         = "Your data will be used to deliver personalized ads to you";
                defaultSettings.AutoDetectInfoPlistFilePath          = true;
                defaultSettings.MainInfoPlistFilePath = "Info.plist";
                return(defaultSettings);
            }

            return(JsonUtility.FromJson <AppTrackingTransparencySettings>(File.ReadAllText(SettingsFilePath)));
        }