Skip to content

Commit

Permalink
Update HockeySDK.Xamarin for iOS to 4.1.0-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alina Popa committed May 11, 2016
1 parent 7e2560a commit 762cba2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 31 deletions.
46 changes: 19 additions & 27 deletions src/MobileApps/MyDriving/MyDriving.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,16 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary l
ServiceLocator.Instance.Add<IAuthentication, Authentication>();
ServiceLocator.Instance.Add<ILogger, PlatformLogger>();
ServiceLocator.Instance.Add<IOBDDevice, OBDDevice>();

Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
SQLitePCL.CurrentPlatform.Init();

#if !XTC
if (!string.IsNullOrWhiteSpace(Logger.HockeyAppiOS))
{
Setup.EnableCustomCrashReporting(() =>
{
var manager = BITHockeyManager.SharedHockeyManager;
manager.Configure(Logger.HockeyAppiOS);
manager.StartManager();
manager.Authenticator.AuthenticateInstallation();
AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
Setup.ThrowExceptionAsNative(e.ExceptionObject);
TaskScheduler.UnobservedTaskException += (sender, e) =>
Setup.ThrowExceptionAsNative(e.Exception);
});
var manager = BITHockeyManager.SharedHockeyManager;
manager.Configure(Logger.HockeyAppiOS);
manager.StartManager();
}
#endif

Expand All @@ -57,21 +49,21 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary l
.InstantiateViewController("loginViewController");
Window.RootViewController = viewController;
#else
if (Settings.Current.FirstRun)
{
var viewController = UIStoryboard.FromName("Main", null)
.InstantiateViewController("gettingStartedViewController");
var navigationController = new UINavigationController(viewController);
Window.RootViewController = navigationController;

Settings.Current.FirstRun = false;
}
else
{
var viewController = UIStoryboard.FromName("Main", null)
.InstantiateViewController("loginViewController");
Window.RootViewController = viewController;
}
if (Settings.Current.FirstRun)
{
var viewController = UIStoryboard.FromName("Main", null)
.InstantiateViewController("gettingStartedViewController");
var navigationController = new UINavigationController(viewController);
Window.RootViewController = navigationController;

Settings.Current.FirstRun = false;
}
else
{
var viewController = UIStoryboard.FromName("Main", null)
.InstantiateViewController("loginViewController");
Window.RootViewController = viewController;
}
#endif
}
else
Expand Down
7 changes: 4 additions & 3 deletions src/MobileApps/MyDriving/MyDriving.iOS/MyDriving.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@
<HintPath>..\..\packages\Xamarin.TestCloud.Agent.0.18.2\lib\Xamarin.iOS10\Calabash.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="HockeySDK, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\HockeySDK.Xamarin.4.1.0-beta1\lib\Xamarin.iOS10\HockeySDK.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Azure.Devices.Client.PCL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\packages\Microsoft.Azure.Devices.Client.PCL.1.0.3\lib\portable-net45+wp8+wpa81+win8+MonoAndroid10+MonoTouch10+Xamarin.iOS10+UAP10\Microsoft.Azure.Devices.Client.PCL.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -245,9 +249,6 @@
<Reference Include="BTProgressHUD">
<HintPath>..\..\..\Components\btprogresshud-1.20\lib\ios-unified\BTProgressHUD.dll</HintPath>
</Reference>
<Reference Include="HockeySDK">
<HintPath>..\..\packages\HockeySDK.Xamarin.4.1.0-alpha2\lib\Xamarin.iOS10\HockeySDK.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\OBDLibrary\ObdLibiOS\ObdLibiOS.csproj">
Expand Down
2 changes: 1 addition & 1 deletion src/MobileApps/MyDriving/MyDriving.iOS/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<packages>
<package id="Acr.Support" version="1.1.1" targetFramework="xamarinios10" />
<package id="Acr.UserDialogs" version="4.3.4" targetFramework="xamarinios10" />
<package id="HockeySDK.Xamarin" version="4.1.0-alpha2" targetFramework="xamarinios10" />
<package id="HockeySDK.Xamarin" version="4.1.0-beta1" targetFramework="xamarinios10" />
<package id="Humanizer" version="2.0.1" targetFramework="xamarinios10" />
<package id="Humanizer.Core" version="2.0.1" targetFramework="xamarinios10" />
<package id="Microsoft.Azure.Devices.Client.PCL" version="1.0.3" targetFramework="xamarinios10" />
Expand Down

0 comments on commit 762cba2

Please sign in to comment.