示例#1
0
        private void Apply()
        {
            using (var stringWriter = new StringWriter()) {
                using (XmlWriter xmlWriter = XmlWriter.Create(
                           stringWriter, new XmlWriterSettings()
                {
                    Indent = true
                })) {
                    analyticsSerialiser.Serialize(xmlWriter, analytics);
                    File.WriteAllText(CONFIG, stringWriter.ToString());
                }
            }

            if (iOS.Dirty)
            {
                iOS.Save();
            }
            if (AreAndroidNotificationsInProject())
            {
                notifications.Apply();
            }
            if (AreSmartAdsInProject())
            {
                ads.Apply();
            }

            Debug.Log("[DeltaDNA] Changes have been applied to XML configuration files, please commit the updates to version control");
        }
示例#2
0
 private void DrawIOSRichPushNotificationSettings()
 {
     EditorGUI.BeginChangeCheck();
     iOS.enableRichPushNotifications = EditorGUILayout.Toggle(
         new GUIContent(
             "Enable",
             "Tick this to enable rich push notifications in the iOS app"),
         iOS.enableRichPushNotifications);
     iOS.pushNotificationServiceExtensionIdentifier = EditorGUILayout.TextField(
         new GUIContent(
             "Extension Identifier",
             "This is the bundle identifier that will be given to the push notification service extension that is added to the XCode project"),
         iOS.pushNotificationServiceExtensionIdentifier);
     if (EditorGUI.EndChangeCheck())
     {
         iOS.Save();
         Debug.Log("[DeltaDNA] Changes have been applied to XML configuration files, please commit the updates to version control");
     }
 }