diff options
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs')
| -rw-r--r-- | StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs b/StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs deleted file mode 100644 index 4bf4f895..00000000 --- a/StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Xml; - -namespace UniversalAnalyticsPlugin -{ - internal static class Helpers - { - public static string GetAppAttribute(string attributeName) - { - try - { - XmlReaderSettings xmlReaderSettings = new XmlReaderSettings(); - xmlReaderSettings.XmlResolver = new XmlXapResolver(); - using (XmlReader xmlReader = XmlReader.Create("WMAppManifest.xml", xmlReaderSettings)) - { - xmlReader.ReadToDescendant("App"); - if (!xmlReader.IsStartElement()) - { - throw new FormatException("WMAppManifest.xml is missing"); - } - return xmlReader.GetAttribute(attributeName); - } - } - catch - { - return null; - } - } - } -} |
