Skip to content

Commit

Permalink
Switch to use Google Play Services and Support library v4 from the co…
Browse files Browse the repository at this point in the history
…mponent store
  • Loading branch information
garuma committed Dec 5, 2013
1 parent 0a75a87 commit 4bbfe2d
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 97 deletions.
16 changes: 5 additions & 11 deletions Moyeu.sln
Expand Up @@ -3,9 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010 # Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Moyeu", "Moyeu\Moyeu.csproj", "{12143BA7-FFC5-4E11-8B31-89A96247F504}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Moyeu", "Moyeu\Moyeu.csproj", "{12143BA7-FFC5-4E11-8B31-89A96247F504}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MobileHtmlAgilityPack", "MobileHtmlAgilityPack\MobileHtmlAgilityPack.csproj", "{87DC26FB-DB8B-4FC0-BE60-EFC12A8B935F}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MobileHtmlAgilityPack", "MobileHtmlAgilityPack\MobileHtmlAgilityPack.csproj", "{D91DC8A9-454E-4CB9-96BE-19652A67D0A4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GooglePlayServices", "GooglePlayServices\GooglePlayServices.csproj", "{2DDFEFA4-4944-42A7-971E-A2F751BA6036}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamSvg", "xamsvg\XamSvg.csproj", "{B70EDB4C-A85E-45BE-A180-5B0462020C6F}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XamSvg", "xamsvg\XamSvg.csproj", "{B70EDB4C-A85E-45BE-A180-5B0462020C6F}"
EndProject EndProject
Expand All @@ -19,18 +17,14 @@ Global
{12143BA7-FFC5-4E11-8B31-89A96247F504}.Debug|Any CPU.Build.0 = Debug|Any CPU {12143BA7-FFC5-4E11-8B31-89A96247F504}.Debug|Any CPU.Build.0 = Debug|Any CPU
{12143BA7-FFC5-4E11-8B31-89A96247F504}.Release|Any CPU.ActiveCfg = Release|Any CPU {12143BA7-FFC5-4E11-8B31-89A96247F504}.Release|Any CPU.ActiveCfg = Release|Any CPU
{12143BA7-FFC5-4E11-8B31-89A96247F504}.Release|Any CPU.Build.0 = Release|Any CPU {12143BA7-FFC5-4E11-8B31-89A96247F504}.Release|Any CPU.Build.0 = Release|Any CPU
{2DDFEFA4-4944-42A7-971E-A2F751BA6036}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2DDFEFA4-4944-42A7-971E-A2F751BA6036}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2DDFEFA4-4944-42A7-971E-A2F751BA6036}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2DDFEFA4-4944-42A7-971E-A2F751BA6036}.Release|Any CPU.Build.0 = Release|Any CPU
{87DC26FB-DB8B-4FC0-BE60-EFC12A8B935F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{87DC26FB-DB8B-4FC0-BE60-EFC12A8B935F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{87DC26FB-DB8B-4FC0-BE60-EFC12A8B935F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{87DC26FB-DB8B-4FC0-BE60-EFC12A8B935F}.Release|Any CPU.Build.0 = Release|Any CPU
{B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Debug|Any CPU.Build.0 = Debug|Any CPU {B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Release|Any CPU.ActiveCfg = Release|Any CPU {B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Release|Any CPU.Build.0 = Release|Any CPU {B70EDB4C-A85E-45BE-A180-5B0462020C6F}.Release|Any CPU.Build.0 = Release|Any CPU
{D91DC8A9-454E-4CB9-96BE-19652A67D0A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D91DC8A9-454E-4CB9-96BE-19652A67D0A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D91DC8A9-454E-4CB9-96BE-19652A67D0A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D91DC8A9-454E-4CB9-96BE-19652A67D0A4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Moyeu\Moyeu.csproj StartupItem = Moyeu\Moyeu.csproj
Expand Down
13 changes: 9 additions & 4 deletions Moyeu/HubwayMapFragment.cs
Expand Up @@ -25,7 +25,7 @@


namespace Moyeu namespace Moyeu
{ {
public class HubwayMapFragment : Android.Support.V4.App.Fragment, ViewTreeObserver.IOnGlobalLayoutListener, IMoyeuSection public class HubwayMapFragment: Android.Support.V4.App.Fragment, ViewTreeObserver.IOnGlobalLayoutListener, IMoyeuSection
{ {
Dictionary<int, Marker> existingMarkers = new Dictionary<int, Marker> (); Dictionary<int, Marker> existingMarkers = new Dictionary<int, Marker> ();
Marker locationPin; Marker locationPin;
Expand Down Expand Up @@ -53,7 +53,7 @@ public HubwayMapFragment (Context context)
MapsInitializer.Initialize (context); MapsInitializer.Initialize (context);
this.pinFactory = new PinFactory (context); this.pinFactory = new PinFactory (context);
this.favManager = FavoriteManager.Obtain (context); this.favManager = FavoriteManager.Obtain (context);
SetHasOptionsMenu (true); HasOptionsMenu = true;
} }


public string Name { public string Name {
Expand Down Expand Up @@ -107,11 +107,16 @@ public override View OnCreateView (LayoutInflater inflater, ViewGroup container,
mapFragment = view.FindViewById<MapView> (Resource.Id.map); mapFragment = view.FindViewById<MapView> (Resource.Id.map);
mapFragment.OnCreate (savedInstanceState); mapFragment.OnCreate (savedInstanceState);
lastUpdateText = view.FindViewById<TextView> (Resource.Id.UpdateTimeText); lastUpdateText = view.FindViewById<TextView> (Resource.Id.UpdateTimeText);
SetupInfoPane (view);
flashBar = new FlashBarController (view);
return view;
}

void SetupInfoPane (View view)
{
pane = view.FindViewById<InfoPane> (Resource.Id.infoPane); pane = view.FindViewById<InfoPane> (Resource.Id.infoPane);
pane.StateChanged += HandlePaneStateChanged; pane.StateChanged += HandlePaneStateChanged;
view.ViewTreeObserver.AddOnGlobalLayoutListener (this); view.ViewTreeObserver.AddOnGlobalLayoutListener (this);
flashBar = new FlashBarController (view);
return view;
} }


public override void OnViewCreated (View view, Bundle savedInstanceState) public override void OnViewCreated (View view, Bundle savedInstanceState)
Expand Down
4 changes: 2 additions & 2 deletions Moyeu/MainActivity.cs
Expand Up @@ -68,13 +68,13 @@ protected override void OnCreate (Bundle bundle)
Resource.String.close_drawer) { Resource.String.close_drawer) {
OpenCallback = () => { OpenCallback = () => {
ActionBar.Title = Title; ActionBar.Title = Title;
currentFragment.SetHasOptionsMenu (false); currentFragment.HasOptionsMenu = false;
InvalidateOptionsMenu (); InvalidateOptionsMenu ();
}, },
CloseCallback = () => { CloseCallback = () => {
if (currentFragment != null) { if (currentFragment != null) {
ActionBar.Title = ((IMoyeuSection)currentFragment).Title; ActionBar.Title = ((IMoyeuSection)currentFragment).Title;
currentFragment.SetHasOptionsMenu (true); currentFragment.HasOptionsMenu = true;
} }
InvalidateOptionsMenu (); InvalidateOptionsMenu ();
}, },
Expand Down
26 changes: 20 additions & 6 deletions Moyeu/Moyeu.csproj
Expand Up @@ -17,6 +17,7 @@
<AssemblyName>Moyeu</AssemblyName> <AssemblyName>Moyeu</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest> <AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<JavaMaximumHeapSize>1G</JavaMaximumHeapSize>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
Expand All @@ -43,7 +44,12 @@
<Reference Include="Mono.Android" /> <Reference Include="Mono.Android" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Net.Http" />
<Reference Include="Mono.Android.Support.v4" /> <Reference Include="GooglePlayServicesLib">
<HintPath>..\Components\googleplayservices-13.0\lib\android\GooglePlayServicesLib.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.v4">
<HintPath>..\Components\xamandroidsupportv4-18-4.18.1\lib\android\Xamarin.Android.Support.v4.dll</HintPath>
</Reference>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="MainActivity.cs" /> <Compile Include="MainActivity.cs" />
Expand Down Expand Up @@ -155,13 +161,9 @@
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\MobileHtmlAgilityPack\MobileHtmlAgilityPack.csproj"> <ProjectReference Include="..\MobileHtmlAgilityPack\MobileHtmlAgilityPack.csproj">
<Project>{87DC26FB-DB8B-4FC0-BE60-EFC12A8B935F}</Project> <Project>{D91DC8A9-454E-4CB9-96BE-19652A67D0A4}</Project>
<Name>MobileHtmlAgilityPack</Name> <Name>MobileHtmlAgilityPack</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\GooglePlayServices\GooglePlayServices.csproj">
<Project>{2DDFEFA4-4944-42A7-971E-A2F751BA6036}</Project>
<Name>GooglePlayServices</Name>
</ProjectReference>
<ProjectReference Include="..\xamsvg\XamSvg.csproj"> <ProjectReference Include="..\xamsvg\XamSvg.csproj">
<Project>{B70EDB4C-A85E-45BE-A180-5B0462020C6F}</Project> <Project>{B70EDB4C-A85E-45BE-A180-5B0462020C6F}</Project>
<Name>XamSvg</Name> <Name>XamSvg</Name>
Expand All @@ -180,4 +182,16 @@
<Folder Include="Resources\animator\" /> <Folder Include="Resources\animator\" />
<Folder Include="Resources\drawable-xxhdpi\" /> <Folder Include="Resources\drawable-xxhdpi\" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<XamarinComponentReference Include="googleplayservices">
<InstallationInProgress>True</InstallationInProgress>
<Version>13.0</Version>
<Visible>False</Visible>
</XamarinComponentReference>
<XamarinComponentReference Include="xamandroidsupportv4-18">
<InstallationInProgress>True</InstallationInProgress>
<Version>4.18.1</Version>
<Visible>False</Visible>
</XamarinComponentReference>
</ItemGroup>
</Project> </Project>
2 changes: 1 addition & 1 deletion Moyeu/RentalFragment.cs
Expand Up @@ -37,7 +37,7 @@ public class RentalFragment : Android.Support.V4.App.ListFragment, IMoyeuSection


public RentalFragment (Context context) public RentalFragment (Context context)
{ {
SetHasOptionsMenu (true); HasOptionsMenu = true;
} }


public string Name { public string Name {
Expand Down
101 changes: 28 additions & 73 deletions Moyeu/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4bbfe2d

Please sign in to comment.