Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 566b915

Browse files
committed
2.3.6-RC1
1 parent ccd256b commit 566b915

6 files changed

Lines changed: 25 additions & 14 deletions

File tree

CodeHub.Core/ViewModels/App/MenuViewModel.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using CodeHub.Core.Messages;
1616
using Cirrious.MvvmCross.Plugins.Messenger;
1717
using CodeHub.Core.ViewModels.Notifications;
18+
using CodeFramework.Core.ViewModels;
1819

1920
namespace CodeHub.Core.ViewModels.App
2021
{
@@ -152,6 +153,11 @@ public ICommand GoToSettingsCommand
152153
get { return new MvxCommand(() => ShowMenuViewModel<SettingsViewModel>(null));}
153154
}
154155

156+
public ICommand GoToSupport
157+
{
158+
get { return new MvxCommand(() => ShowMenuViewModel<WebBrowserViewModel>(new WebBrowserViewModel.NavObject { Url = "https://codehub.uservoice.com/" })); }
159+
}
160+
155161
public ICommand GoToRepositoryCommand
156162
{
157163
get { return new MvxCommand<RepositoryIdentifier>(x => ShowMenuViewModel<RepositoryViewModel>(new RepositoryViewModel.NavObject { Username = x.Owner, Repository = x.Name }));}

CodeHub.Core/ViewModels/App/UpgradesViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Threading.Tasks;
33
using CodeHub.Core.Services;
44
using System.Linq;
5+
using System;
56

67
namespace CodeHub.Core.ViewModels.App
78
{

CodeHub.iOS/AppDelegate.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
7070

7171
Flurry.Analytics.FlurryAgent.StartSession("4F3YDWSN8XBB4QKTNHYS");
7272

73-
if (Runtime.Arch != Arch.SIMULATOR)
74-
Flurry.Analytics.FlurryAgent.SetCrashReportingEnabled(true);
75-
76-
7773
Mvx.Resolve<CodeFramework.Core.Services.IErrorService>().Init("http://sentry.dillonbuchanan.com/api/5/store/", "17e8a650e8cc44678d1bf40c9d86529b ", "9498e93bcdd046d8bb85d4755ca9d330");
7874

7975
// Setup theme
@@ -98,7 +94,13 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
9894

9995
this.Window.MakeKeyAndVisible();
10096

101-
this.StampInstallDate("CodeHub", DateTime.Now.ToString());
97+
try
98+
{
99+
this.StampInstallDate("CodeHub", DateTime.UtcNow.ToString());
100+
}
101+
catch
102+
{
103+
}
102104

103105
InAppPurchases.Instance.PurchaseError += HandlePurchaseError;
104106
InAppPurchases.Instance.PurchaseSuccess += HandlePurchaseSuccess;
@@ -144,12 +146,12 @@ void HandlePurchaseError (object sender, Exception e)
144146
MonoTouch.Utilities.ShowAlert("Unable to make purchase", e.Message);
145147
}
146148

147-
public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, System.Action<UIBackgroundFetchResult> completionHandler)
148-
{
149-
if (application.ApplicationState == UIApplicationState.Active)
150-
return;
149+
public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo)
150+
{
151+
if (application.ApplicationState == UIApplicationState.Active)
152+
return;
151153
HandleNotification(userInfo, false);
152-
}
154+
}
153155

154156
private void HandleNotification(NSDictionary data, bool fromBootup)
155157
{

CodeHub.iOS/CodeHub.iOS.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
<IpaPackageName>
6565
</IpaPackageName>
6666
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
67+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
6768
</PropertyGroup>
6869
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
6970
<DebugType>none</DebugType>
@@ -101,7 +102,7 @@
101102
<DefineConstants>DEBUG</DefineConstants>
102103
<MtouchUseSGen>true</MtouchUseSGen>
103104
<MtouchUseThumb>true</MtouchUseThumb>
104-
<MtouchUseLlvm>true</MtouchUseLlvm>
105+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
105106
</PropertyGroup>
106107
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
107108
<DebugType>none</DebugType>
@@ -122,6 +123,7 @@
122123
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
123124
<MtouchUseLlvm>true</MtouchUseLlvm>
124125
<MtouchUseSGen>true</MtouchUseSGen>
126+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
125127
</PropertyGroup>
126128
<ItemGroup>
127129
<Compile Include="Images\Images.cs" />

CodeHub.iOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<key>CFBundleIdentifier</key>
2222
<string>com.dillonbuchanan.codehub</string>
2323
<key>CFBundleShortVersionString</key>
24-
<string>2.3.5</string>
24+
<string>2.3.6</string>
2525
<key>CFBundleIconFiles</key>
2626
<array>
2727
<string>Icon-60@2x</string>
@@ -71,7 +71,7 @@
7171
<string>UIInterfaceOrientationLandscapeRight</string>
7272
</array>
7373
<key>CFBundleVersion</key>
74-
<string>2.3.5.0</string>
74+
<string>2.3.6.1</string>
7575
<key>UILaunchStoryboardName</key>
7676
<string>Launch</string>
7777
</dict>

CodeHub.iOS/Views/App/MenuView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected override void CreateMenuRoot()
9090

9191
private void PresentUserVoice()
9292
{
93-
93+
ViewModel.GoToSupport.Execute(null);
9494
}
9595

9696
protected override void ProfileButtonClicked(object sender, System.EventArgs e)

0 commit comments

Comments
 (0)