summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-09-26 00:21:27 +0200
committerJules Laplace <julescarbon@gmail.com>2017-09-26 00:21:27 +0200
commit73cbc66bb96b348ec791e6854d6c24e6d85b2fa8 (patch)
treed06eddeec93e692fde63cde5b21a20ff623f1386 /StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs
parent3be2b3aea204f145d6e7c98d835891947105ed0e (diff)
cordova-plugin-firebase
Diffstat (limited to 'StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs')
-rw-r--r--StoneIsland/plugins/cordova-plugin-google-analytics/wp8/PhoneHelpers.cs30
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;
- }
- }
- }
-}