Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
380 changed files
with
23,977 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
... CirriousConference/Cirrious.Conference.Core/ApplicationObjects/ErrorApplicationObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using Cirrious.Conference.Core.Interfaces; | ||
using Cirrious.MvvmCross.ViewModels; | ||
|
||
namespace Cirrious.Conference.Core.ApplicationObjects | ||
{ | ||
public class ErrorApplicationObject | ||
: MvxApplicationObject | ||
, IErrorReporter | ||
, IErrorSource | ||
{ | ||
public void ReportError(string error) | ||
{ | ||
if (ErrorReported == null) | ||
return; | ||
|
||
InvokeOnMainThread(() => | ||
{ | ||
var handler = ErrorReported; | ||
if (handler != null) | ||
handler(this, new ErrorEventArgs(error)); | ||
}); | ||
} | ||
|
||
public event EventHandler<ErrorEventArgs> ErrorReported; | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
... CirriousConference/Cirrious.Conference.Core/ApplicationObjects/StartApplicationObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading; | ||
using Cirrious.Conference.Core.ViewModels; | ||
using Cirrious.MvvmCross.Interfaces.ViewModels; | ||
using Cirrious.MvvmCross.ViewModels; | ||
using Cirrious.MvvmCross.Interfaces.ServiceProvider; | ||
using Cirrious.Conference.Core.Interfaces; | ||
using Cirrious.MvvmCross.ExtensionMethods; | ||
|
||
namespace Cirrious.Conference.Core.ApplicationObjects | ||
{ | ||
public class StartApplicationObject | ||
: MvxApplicationObject | ||
, IMvxStartNavigation | ||
, IMvxServiceConsumer<IConferenceService> | ||
{ | ||
private readonly bool _showSplashScreen; | ||
public StartApplicationObject(bool showSplashScreen) | ||
{ | ||
_showSplashScreen = showSplashScreen; | ||
} | ||
|
||
public void Start() | ||
{ | ||
var confService = this.GetService<IConferenceService>(); | ||
if (_showSplashScreen) | ||
{ | ||
confService.BeginAsyncLoad(); | ||
RequestNavigate<SplashScreenViewModel>(); | ||
} | ||
else | ||
{ | ||
confService.DoSyncLoad(); | ||
RequestNavigate<HomeViewModel>(); | ||
} | ||
} | ||
|
||
public bool ApplicationCanOpenBookmarks | ||
{ | ||
get { return true; } | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...e - CirriousConference/Cirrious.Conference.Core/ApplicationObjects/TextProviderBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Cirrious.MvvmCross.Localization; | ||
|
||
namespace Cirrious.Conference.Core.ApplicationObjects | ||
{ | ||
public class TextProviderBuilder | ||
: MvxTextProviderBuilder | ||
{ | ||
public TextProviderBuilder() | ||
: base(Constants.GeneralNamespace, Constants.RootFolderForResources) | ||
{ | ||
} | ||
|
||
protected override IDictionary<string, string> ResourceFiles | ||
{ | ||
get | ||
{ | ||
var dictionary = this.GetType() | ||
.Assembly | ||
.GetTypes() | ||
.Where(t => t.Name.EndsWith("ViewModel")) | ||
.Where(t => !t.Name.StartsWith("Base")) | ||
.ToDictionary(t => t.Name, t => t.Name); | ||
|
||
dictionary[Constants.Shared] = Constants.Shared; | ||
return dictionary; | ||
} | ||
} | ||
} | ||
} |
112 changes: 112 additions & 0 deletions
112
Sample - CirriousConference/Cirrious.Conference.Core/Cirrious.Conference.Core.Droid.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{F178AF32-A329-4991-96A0-260A48BD7E8B}</ProjectGuid> | ||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Cirrious.Conference.Core</RootNamespace> | ||
<AssemblyName>Cirrious.Conference.Core.Droid</AssemblyName> | ||
<FileAlignment>512</FileAlignment> | ||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> | ||
<AndroidSupportedAbis>armeabi</AndroidSupportedAbis> | ||
<AndroidStoreUncompressedFileExtensions /> | ||
<MandroidI18n /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AndroidLinkMode>None</AndroidLinkMode> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AndroidLinkMode>SdkOnly</AndroidLinkMode> | ||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Mono.Android" /> | ||
<Reference Include="mscorlib" /> | ||
<Reference Include="Newtonsoft.Json.MonoDroid"> | ||
<HintPath>..\Libs\Droid\Newtonsoft.Json.MonoDroid.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Cirrious.MvvmCross.Android, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"> | ||
<HintPath>..\Libs\Droid\Cirrious.MvvmCross.Android.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="ApplicationObjects\ErrorApplicationObject.cs" /> | ||
<Compile Include="ApplicationObjects\StartApplicationObject.cs" /> | ||
<Compile Include="ApplicationObjects\TextProviderBuilder.cs" /> | ||
<Compile Include="ConferenceApp.cs" /> | ||
<Compile Include="Constants.cs" /> | ||
<Compile Include="Converters\Converters.cs" /> | ||
<Compile Include="Converters\SessionSmallDetailsValueConverter.cs" /> | ||
<Compile Include="Converters\SimpleDateValueConverter.cs" /> | ||
<Compile Include="Converters\SponsorImageValueConverter.cs" /> | ||
<Compile Include="Converters\TimeAgoConverter.cs" /> | ||
<Compile Include="Interfaces\ErrorEventArgs.cs" /> | ||
<Compile Include="Interfaces\IConferenceService.cs" /> | ||
<Compile Include="Interfaces\IErrorReporter.cs" /> | ||
<Compile Include="Interfaces\IErrorSource.cs" /> | ||
<Compile Include="Interfaces\IObservableCollection.cs" /> | ||
<Compile Include="Interfaces\ITwitterSearchProvider.cs" /> | ||
<Compile Include="Models\ConferenceService.cs" /> | ||
<Compile Include="Models\FavoritesSaver.cs" /> | ||
<Compile Include="Models\Helpers\OurObservableCollection.cs" /> | ||
<Compile Include="Models\Raw\Session.cs" /> | ||
<Compile Include="Models\Raw\Speaker.cs" /> | ||
<Compile Include="Models\Raw\Sponsor.cs" /> | ||
<Compile Include="Models\SessionWithFavoriteFlag.cs" /> | ||
<Compile Include="Models\Twitter\AtomConst.cs" /> | ||
<Compile Include="Models\Twitter\Tweet.cs" /> | ||
<Compile Include="Models\Twitter\TwitterSearch.cs" /> | ||
<Compile Include="Models\Twitter\TwitterSearchProvider.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Trace.cs" /> | ||
<Compile Include="ViewModels\AboutViewModel.cs" /> | ||
<Compile Include="ViewModels\BaseConferenceViewModel.cs" /> | ||
<Compile Include="ViewModels\BaseSponsorsViewModel.cs" /> | ||
<Compile Include="ViewModels\BaseViewModel.cs" /> | ||
<Compile Include="ViewModels\ExhibitionViewModel.cs" /> | ||
<Compile Include="ViewModels\Helpers\WithCommand.cs" /> | ||
<Compile Include="ViewModels\HomeViewModel.cs" /> | ||
<Compile Include="ViewModels\HomeViewModels\SessionsViewModel.cs" /> | ||
<Compile Include="ViewModels\HomeViewModels\TwitterViewModel.cs" /> | ||
<Compile Include="ViewModels\HomeViewModels\WelcomeViewModel.cs" /> | ||
<Compile Include="ViewModels\MapViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\BaseSessionListViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\FavoritesViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\SessionListViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\SpeakersViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\TopicsViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionViewModel.cs" /> | ||
<Compile Include="ViewModels\SplashScreenViewModel.cs" /> | ||
<Compile Include="ViewModels\SponsorsViewModel.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
166 changes: 166 additions & 0 deletions
166
Sample - CirriousConference/Cirrious.Conference.Core/Cirrious.Conference.Core.Touch.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>10.0.0</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{30EA44C7-EE97-45EC-B94D-5212CD89CEE9}</ProjectGuid> | ||
<ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>Cirrious.Conference.Core</RootNamespace> | ||
<AssemblyName>Cirrious.Conference.Core.Touch</AssemblyName> | ||
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<MtouchDebug>true</MtouchDebug> | ||
<MtouchProfiling>true</MtouchProfiling> | ||
<MtouchLink>None</MtouchLink> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\iPhoneSimulator\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<MtouchLink>None</MtouchLink> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AdHoc|iPhone' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\iPhone\AdHoc</OutputPath> | ||
<WarningLevel>4</WarningLevel> | ||
<CodesignKey>iPhone Developer</CodesignKey> | ||
<DefineConstants>MONOTOUCH</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|iPhone'"> | ||
<OutputPath>bin\iPhone\Debug\</OutputPath> | ||
<DebugType>none</DebugType> | ||
<WarningLevel>4</WarningLevel> | ||
<Optimize>false</Optimize> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|iPhone'"> | ||
<OutputPath>bin\iPhone\Release\</OutputPath> | ||
<DebugType>none</DebugType> | ||
<WarningLevel>4</WarningLevel> | ||
<Optimize>false</Optimize> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AdHoc|AnyCPU' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\AdHoc</OutputPath> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AdHoc|iPhoneSimulator' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\AdHoc</OutputPath> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="CirriousMvvmCrossTouch, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\Libs\Touch\CirriousMvvmCrossTouch.dll</HintPath> | ||
</Reference> | ||
<Reference Include="monotouch"> | ||
<HintPath>..\..\..\Library\Hacked\monotouch.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Newtonsoft_Json_MonoTouch, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\Libs\Touch\Newtonsoft_Json_MonoTouch.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Interfaces\ErrorEventArgs.cs" /> | ||
<Compile Include="ApplicationObjects\ErrorApplicationObject.cs" /> | ||
<Compile Include="Interfaces\IErrorReporter.cs" /> | ||
<Compile Include="Interfaces\IErrorSource.cs" /> | ||
<Compile Include="ApplicationObjects\StartApplicationObject.cs" /> | ||
<Compile Include="ApplicationObjects\TextProviderBuilder.cs" /> | ||
<Compile Include="ConferenceApp.cs" /> | ||
<Compile Include="Constants.cs" /> | ||
<Compile Include="Converters\Converters.cs" /> | ||
<Compile Include="Converters\SessionSmallDetailsValueConverter.cs" /> | ||
<Compile Include="Converters\SimpleDateValueConverter.cs" /> | ||
<Compile Include="Converters\SponsorImageValueConverter.cs" /> | ||
<Compile Include="Converters\TimeAgoConverter.cs" /> | ||
<Compile Include="Interfaces\IConferenceService.cs" /> | ||
<Compile Include="Interfaces\IObservableCollection.cs" /> | ||
<Compile Include="Interfaces\ITwitterSearchProvider.cs" /> | ||
<Compile Include="Models\ConferenceService.cs" /> | ||
<Compile Include="Models\FavoritesSaver.cs" /> | ||
<Compile Include="Models\Helpers\OurObservableCollection.cs" /> | ||
<Compile Include="Models\Raw\Session.cs" /> | ||
<Compile Include="Models\Raw\Speaker.cs" /> | ||
<Compile Include="Models\Raw\Sponsor.cs" /> | ||
<Compile Include="Models\SessionWithFavoriteFlag.cs" /> | ||
<Compile Include="Models\Twitter\AtomConst.cs" /> | ||
<Compile Include="Models\Twitter\Tweet.cs" /> | ||
<Compile Include="Models\Twitter\TwitterSearch.cs" /> | ||
<Compile Include="Models\Twitter\TwitterSearchProvider.cs" /> | ||
<Compile Include="Trace.cs" /> | ||
<Compile Include="ViewModels\AboutViewModel.cs" /> | ||
<Compile Include="ViewModels\BaseConferenceViewModel.cs" /> | ||
<Compile Include="ViewModels\BaseSponsorsViewModel.cs" /> | ||
<Compile Include="ViewModels\BaseViewModel.cs" /> | ||
<Compile Include="ViewModels\ExhibitionViewModel.cs" /> | ||
<Compile Include="ViewModels\Helpers\WithCommand.cs" /> | ||
<Compile Include="ViewModels\HomeViewModel.cs" /> | ||
<Compile Include="ViewModels\HomeViewModels\SessionsViewModel.cs" /> | ||
<Compile Include="ViewModels\HomeViewModels\TwitterViewModel.cs" /> | ||
<Compile Include="ViewModels\HomeViewModels\WelcomeViewModel.cs" /> | ||
<Compile Include="ViewModels\MapViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\BaseSessionListViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\FavoritesViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\SessionListViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\SpeakersViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionLists\TopicsViewModel.cs" /> | ||
<Compile Include="ViewModels\SessionViewModel.cs" /> | ||
<Compile Include="ViewModels\SplashScreenViewModel.cs" /> | ||
<Compile Include="ViewModels\SponsorsViewModel.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
<ProjectExtensions> | ||
<VisualStudio> | ||
<UserProperties ProjectLinkerExcludeFilter="\\?desktop(\\.*)?$;\\?silverlight(\\.*)?$;\.desktop;\.silverlight;\.xaml;^service references(\\.*)?$;\.clientconfig;^web references(\\.*)?$" ProjectLinkReference="6c3da376-dc4a-4b8c-924d-070c19f72bb7" /> | ||
</VisualStudio> | ||
</ProjectExtensions> | ||
</Project> |
Oops, something went wrong.