Insights integration
This commit is contained in:
parent
036c82e241
commit
07ff0fc5cc
3 changed files with 19 additions and 2 deletions
|
|
@ -360,6 +360,10 @@
|
|||
</Reference>
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.IO.Compression.FileSystem" />
|
||||
<Reference Include="Xamarin.Insights, Version=1.10.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>packages\Xamarin.Insights.1.10.2.110\lib\portable-win+net40\Xamarin.Insights.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ using System.Globalization;
|
|||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using Xamarin;
|
||||
|
||||
namespace MatterHackers.MatterControl
|
||||
{
|
||||
|
|
@ -357,11 +358,23 @@ namespace MatterHackers.MatterControl
|
|||
[STAThread]
|
||||
public static void Main()
|
||||
{
|
||||
// Make sure we have the right woring directory as we assume everything relative to the executable.
|
||||
// Make sure we have the right working directory as we assume everything relative to the executable.
|
||||
Directory.SetCurrentDirectory(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location));
|
||||
|
||||
Datastore.Instance.Initialize();
|
||||
|
||||
#if !DEBUG
|
||||
// Conditionally spin up Insights reporting if not on the Stable channel
|
||||
string channel = UserSettings.Instance.get("UpdateFeedType");
|
||||
if (string.IsNullOrEmpty(channel) || channel != "release")
|
||||
#endif
|
||||
{
|
||||
Insights.Initialize(
|
||||
"2b84bf883521ee8deca1b633b7d33818c20b87cc",
|
||||
string.Format("{0} ({1})", VersionInfo.Instance.ReleaseVersion, VersionInfo.Instance.BuildVersion),
|
||||
"MatterControl Desktop");
|
||||
}
|
||||
|
||||
MatterControlApplication app = MatterControlApplication.Instance;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Newtonsoft.Json" version="6.0.6" targetFramework="net45" />
|
||||
<package id="Xamarin.Insights" version="1.9.1.107" targetFramework="net45" />
|
||||
<package id="Xamarin.Insights" version="1.10.2.110" targetFramework="net45" />
|
||||
</packages>
|
||||
Loading…
Add table
Add a link
Reference in a new issue