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

Commit 847449c

Browse files
committed
Added a few more missing pngs
1 parent ec4c9af commit 847449c

14 files changed

Lines changed: 45 additions & 36 deletions

File tree

CodeHub.Core/Services/ApplicationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private static void CheckCacheSize(CodeFramework.Core.Data.AccountCache cache)
4747
var totalCacheSize = cache.Sum(x => System.IO.File.Exists(x.Path) ? new System.IO.FileInfo(x.Path).Length : 0);
4848
var totalCacheSizeMB = ((float)totalCacheSize / 1024f / 1024f);
4949

50-
if (totalCacheSizeMB > 1)
50+
if (totalCacheSizeMB > 64)
5151
{
5252
System.Console.WriteLine("Flushing cache due to size...");
5353
cache.DeleteAll();

CodeHub.Core/ViewModels/App/SettingsViewModel.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Windows.Input;
33
using Cirrious.MvvmCross.ViewModels;
44
using System.Linq;
5+
using CodeFramework.Core.Services;
56

67
namespace CodeHub.Core.ViewModels.App
78
{
@@ -22,6 +23,18 @@ public ICommand DeleteAllCacheCommand
2223
get { return new MvxCommand(DeleteCache); }
2324
}
2425

26+
public bool AnalyticsEnabled
27+
{
28+
get
29+
{
30+
return GetService<IAnalyticsService>().Enabled;
31+
}
32+
set
33+
{
34+
GetService<IAnalyticsService>().Enabled = value;
35+
}
36+
}
37+
2538
private void DeleteCache()
2639
{
2740
if (this.GetApplication().Account.Cache != null)

CodeHub.iOS/AppDelegate.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ public class AppDelegate : MvxApplicationDelegate
2727
/// </summary>
2828
private UIWindow window;
2929

30+
/// <summary>
31+
/// This is the main entry point of the application.
32+
/// </summary>
33+
/// <param name="args">The args.</param>
34+
public static void Main(string[] args)
35+
{
36+
// if you want to use a different Application Delegate class from "AppDelegate"
37+
// you can specify it here.
38+
UIApplication.Main(args, null, "AppDelegate");
39+
}
40+
3041
private class UserVoiceStyleSheet : UserVoice.UVStyleSheet
3142
{
3243
public override UIColor NavigationBarTextColor
@@ -86,6 +97,8 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
8697
var setup = new Setup(this, presenter);
8798
setup.Initialize();
8899

100+
Mvx.Resolve<CodeFramework.Core.Services.IAnalyticsService>().Init("UA-44040302-1", "CodeHub");
101+
89102
var startup = Mvx.Resolve<IMvxAppStart>();
90103
startup.Start();
91104

CodeHub.iOS/CodeHub.iOS.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
<ItemGroup>
7878
<Compile Include="Images\Images.cs" />
7979
<Compile Include="LinkerPleaseInclude.cs" />
80-
<Compile Include="Main.cs" />
8180
<Compile Include="AppDelegate.cs" />
8281
<Compile Include="Setup.cs" />
8382
<Compile Include="Theme.cs" />
@@ -351,6 +350,11 @@
351350
<BundleResource Include="Images\Buttons\check%402x.png" />
352351
<BundleResource Include="Images\Buttons\sort%402x.png" />
353352
<BundleResource Include="Images\Buttons\sort.png" />
353+
<BundleResource Include="Resources\Icon-60%402x.png" />
354+
<BundleResource Include="Resources\Icon-76.png" />
355+
<BundleResource Include="Resources\Icon-76%402x.png" />
356+
<BundleResource Include="Resources\Icon-Small-40.png" />
357+
<BundleResource Include="Resources\Icon-Small-40%402x.png" />
354358
</ItemGroup>
355359
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.MonoTouch.CSharp.targets" />
356360
<ItemGroup>

CodeHub.iOS/Info.plist

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
<string>Icon@2x</string>
3535
<string>Icon-72</string>
3636
<string>Icon-72@2x</string>
37+
<string>Icon-60@2x</string>
38+
<string>Icon-76</string>
39+
<string>Icon-76@2x</string>
40+
<string>Icon-Small-40</string>
41+
<string>Icon-Small-40@2x</string>
3742
</array>
3843
<key>UIStatusBarTintParameters</key>
3944
<dict>
@@ -47,5 +52,7 @@
4752
</dict>
4853
<key>UIViewControllerBasedStatusBarAppearance</key>
4954
<false/>
55+
<key>UIPrerenderedIcon</key>
56+
<true/>
5057
</dict>
5158
</plist>

CodeHub.iOS/Main.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.
12.7 KB
Loading

CodeHub.iOS/Resources/Icon-76.png

9.37 KB
Loading
15.6 KB
Loading
7.7 KB
Loading

0 commit comments

Comments
 (0)