소스 검색

Add insights to windows phone

James Montemagno 10 년 전
부모
커밋
66a257ef3d
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Demos/MyWeather/MyWeather/MyWeather.WinPhone/MainPage.xaml.cs
  2. 1 0
      Demos/MyWeather/MyWeather/MyWeather.WinPhone/packages.config

+ 3 - 1
Demos/MyWeather/MyWeather/MyWeather.WinPhone/MainPage.xaml.cs

@@ -16,7 +16,9 @@ namespace MyWeather.WinPhone
 		{
 			InitializeComponent();
 			SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape;
-
+			Xamarin.Insights.Initialize("dbf5b73b9b8dc2b52514eb4d62edb05b63a6c8b5");
+			Xamarin.Insights.ForceDataTransmission = true;
+			
 			global::Xamarin.Forms.Forms.Init();
 			LoadApplication(new MyWeather.App());
 		}

+ 1 - 0
Demos/MyWeather/MyWeather/MyWeather.WinPhone/packages.config

@@ -9,4 +9,5 @@
   <package id="Xam.Plugins.Settings" version="1.5.1" targetFramework="wp80" />
   <package id="Xam.Plugins.TextToSpeech" version="1.0.1" targetFramework="wp80" />
   <package id="Xamarin.Forms" version="1.3.3.6323" targetFramework="wp80" />
+  <package id="Xamarin.Insights" version="1.10.1.109" targetFramework="wp80" />
 </packages>