Skip to content

Commit

Permalink
- Fixed the MVVM Light and Coding4fun reference issues.
Browse files Browse the repository at this point in the history
- Used proper nuget packages for c4f and PhoneFlipMenu
- Updated the splashscreen and marketplacebackground images.
- Updated the icons
- Set the FlurryAPIKey to be read in from a file.
- Project now needs a FlurryConfig.xml file in the Domainr7 folder, it's structure should be like this:
<?xml version="1.0" encoding="utf-8"?>
<Flurry>
  <ApiKey>APIKEYGOESHERE20</ApiKey>
</Flurry>
  • Loading branch information
ScottIsAFool committed Apr 24, 2012
1 parent 934c4fe commit 5a3db25
Show file tree
Hide file tree
Showing 23 changed files with 53 additions and 14 deletions.
41 changes: 39 additions & 2 deletions Domainr7/App.xaml.cs
Expand Up @@ -7,6 +7,10 @@
using Microsoft.Phone.Shell;
using Microsoft.Phone.Net.NetworkInformation;
using Domainr7.Model;
using System.Windows.Resources;
using System.IO;
using System.Xml.Linq;
using System.Linq;

namespace Domainr7
{
Expand Down Expand Up @@ -46,6 +50,8 @@ public static bool IsNetworkAvailable
}
}

private static string FlurryApiKey { get; set; }

// Easy access to the root frame
public PhoneApplicationFrame RootFrame
{
Expand All @@ -65,6 +71,8 @@ public App()
// Phone-specific initialization
InitializePhoneApplication();

SetFlurryApiKey();

// Show graphics profiling information while debugging.
if (System.Diagnostics.Debugger.IsAttached)
{
Expand All @@ -87,18 +95,47 @@ public App()

}

private void SetFlurryApiKey()
{
StreamResourceInfo sri = Application.GetResourceStream(new Uri("FlurryConfig.xml", UriKind.Relative));
if (sri == null)
{
FlurryApiKey = "NoKeyFound";
}
else
{
try
{
XDocument doc = XDocument.Load(sri.Stream);
string key = doc.Descendants("ApiKey").FirstOrDefault().Value;
if (string.IsNullOrEmpty(key))
{
FlurryApiKey = "NoKeyFound";
}
else
{
FlurryApiKey = key;
}
}
catch
{
FlurryApiKey = "NoKeyFound";
}
}
}

// Code to execute when the application is launching (eg, from Start)
// This code will not execute when the application is reactivated
private void Application_Launching(object sender, LaunchingEventArgs e)
{
FlurryWP7SDK.Api.StartSession(Constants.FlurryAPIKey);
FlurryWP7SDK.Api.StartSession(FlurryApiKey);
}

// Code to execute when the application is activated (brought to foreground)
// This code will not execute when the application is first launched
private void Application_Activated(object sender, ActivatedEventArgs e)
{
FlurryWP7SDK.Api.StartSession(Constants.FlurryAPIKey);
FlurryWP7SDK.Api.StartSession(FlurryApiKey);
}

// Code to execute when the application is deactivated (sent to background)
Expand Down
Binary file modified Domainr7/ApplicationIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Domainr7/BackgroundIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 10 additions & 7 deletions Domainr7/Domainr7.csproj
Expand Up @@ -48,12 +48,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Coding4Fun.Phone.Controls, Version=1.5.5.0, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="Coding4Fun.Phone.Controls.Toolkit">
<HintPath>..\packages\coding4fun\Coding4Fun.Phone.Controls.Toolkit.dll</HintPath>
<Reference Include="Coding4Fun.Phone.Controls, Version=1.5.6.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Coding4Fun.Phone.Controls.Complete.1.5.6\lib\sl4-windowsphone71\Coding4Fun.Phone.Controls.dll</HintPath>
</Reference>
<Reference Include="Coding4Fun.Phone.Site.Controls">
<HintPath>..\packages\coding4fun\Coding4Fun.Phone.Site.Controls.dll</HintPath>
<Reference Include="Coding4Fun.Phone.Controls.Toolkit, Version=1.5.6.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Coding4Fun.Phone.Controls.Complete.1.5.6\lib\sl4-windowsphone71\Coding4Fun.Phone.Controls.Toolkit.dll</HintPath>
</Reference>
<Reference Include="DomainrSharp.WindowsPhone, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand All @@ -73,8 +74,8 @@
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.4.5.3\lib\sl4-windowsphone71\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="PhoneFlipMenuControl">
<HintPath>..\packages\PhoneFlipMenu\PhoneFlipMenuControl.dll</HintPath>
<Reference Include="PhoneFlipMenuControl, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\PhoneFlipMenu.1.0.0\lib\sl4-wp71\PhoneFlipMenuControl.dll</HintPath>
</Reference>
<Reference Include="ReactiveUI.Blend_WP7">
<HintPath>..\packages\reactiveui-xaml.2.5.2.0\lib\SL3-WP\ReactiveUI.Blend_WP7.dll</HintPath>
Expand Down Expand Up @@ -106,6 +107,7 @@
<Reference Include="System.Windows.Interactivity, Version=3.8.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
<Reference Include="mscorlib.extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml.XPath, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\ScottIsAFool.WindowsPhone.1.0.7.0\lib\System.Xml.XPath.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -173,6 +175,7 @@
<Content Include="Content\About\Data.xml">
<SubType>Designer</SubType>
</Content>
<Content Include="FlurryConfig.xml" />
<Content Include="Icons\appbar.share.rest.png" />
<Content Include="Images\clearboxicon.png" />
<Content Include="SplashScreenImage.jpg">
Expand Down
4 changes: 1 addition & 3 deletions Domainr7/Model/Constants.cs
Expand Up @@ -17,8 +17,6 @@ public static class Constants
public const string AvailabilityMaybe = "maybe";
public const string AvailabilityTLD = "tld";
public const string AvailabilityAvailable = "available";
public const string AvailabilityUnavailable = "unavailable";

public const string FlurryAPIKey = "1GNRE5L1JTM96K6DCWQX";
public const string AvailabilityUnavailable = "unavailable";
}
}
2 changes: 1 addition & 1 deletion Domainr7/Properties/WMAppManifest.xml
Expand Up @@ -16,7 +16,7 @@
<TemplateType5>
<BackgroundImageURI IsRelative="true" IsResource="false">BackgroundIcon.png</BackgroundImageURI>
<Count>0</Count>
<Title>Domainr</Title>
<Title></Title>
</TemplateType5>
</PrimaryToken>
</Tokens>
Expand Down
Binary file modified Domainr7/SplashScreenImage.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions Domainr7/packages.config
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Coding4Fun.Phone.Controls.Complete" version="1.5.6" />
<package id="DomainrSharp" version="1.0.1" />
<package id="Newtonsoft.Json" version="4.5.3" />
<package id="PhoneFlipMenu" version="1.0.0" />
<package id="reactiveui-core" version="2.5.2.0" />
<package id="reactiveui-xaml" version="2.5.2.0" />
<package id="Rx_Experimental-Main" version="1.1.11111" />
Expand Down
Binary file modified Marketplace/Icon.pdn
Binary file not shown.
Binary file modified Marketplace/MarketplaceBackground.pdn
Binary file not shown.
Binary file modified Marketplace/SplashScreenImage.pdn
Binary file not shown.
Binary file modified Marketplace/en/Logo173.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Marketplace/en/Logo200.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Marketplace/en/Logo62.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Marketplace/en/Logo99.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Marketplace/en/MarketplaceBackground.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion packages/coding4fun/[Content_Types].xml

This file was deleted.

0 comments on commit 5a3db25

Please sign in to comment.