Skip to content

Commit

Permalink
Android Login Working
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Pulido authored and Luis Pulido committed Nov 1, 2017
1 parent 9a9946c commit d5006c6
Show file tree
Hide file tree
Showing 15 changed files with 3,864 additions and 3,016 deletions.
102 changes: 51 additions & 51 deletions MyFormsApp.sln
Expand Up @@ -7,12 +7,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFormsApp.Android", "MyFor
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFormsApp.iOS", "MyFormsApp\MyFormsApp.iOS\MyFormsApp.iOS.csproj", "{822956ED-03B4-48C9-90F8-AA1187972358}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyFormsApp.Shared", "MyFormsApp\MyFormsApp.Core\MyFormsApp.Shared.csproj", "{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{D4131F39-C979-44C1-B3F0-FA7595CA045F}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Heads", "Heads", "{3E5A44F3-3348-47B2-810F-A675C6119A2F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyFormsApp.Shared", "MyFormsApp\MyFormsApp.Shared\MyFormsApp.Shared.csproj", "{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Expand Down Expand Up @@ -145,62 +145,62 @@ Global
{822956ED-03B4-48C9-90F8-AA1187972358}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{822956ED-03B4-48C9-90F8-AA1187972358}.Release|x64.ActiveCfg = Release|iPhone
{822956ED-03B4-48C9-90F8-AA1187972358}.Release|x86.ActiveCfg = Release|iPhone
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|ARM.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|ARM.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|iPhone.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|x64.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|x64.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|x86.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.AppStore|x86.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|ARM.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|ARM.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|iPhone.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|x64.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|x64.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|x86.ActiveCfg = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Debug|x86.Build.0 = Debug|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|Any CPU.Build.0 = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|ARM.ActiveCfg = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|ARM.Build.0 = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|iPhone.ActiveCfg = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|iPhone.Build.0 = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|x64.ActiveCfg = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|x64.Build.0 = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|x86.ActiveCfg = Release|Any CPU
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6}.Release|x86.Build.0 = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|ARM.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|ARM.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|iPhone.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|x64.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|x64.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|x86.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.AppStore|x86.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|ARM.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|ARM.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|iPhone.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|x64.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|x64.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|x86.ActiveCfg = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Debug|x86.Build.0 = Debug|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|Any CPU.Build.0 = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|ARM.ActiveCfg = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|ARM.Build.0 = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|iPhone.ActiveCfg = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|iPhone.Build.0 = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|x64.ActiveCfg = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|x64.Build.0 = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|x86.ActiveCfg = Release|Any CPU
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{22AB93EF-20FD-4044-B835-DC0B3EB50E0E} = {3E5A44F3-3348-47B2-810F-A675C6119A2F}
{822956ED-03B4-48C9-90F8-AA1187972358} = {3E5A44F3-3348-47B2-810F-A675C6119A2F}
{030C38E7-CF62-4594-A7CF-FD7C804AF5E6} = {D4131F39-C979-44C1-B3F0-FA7595CA045F}
{E77D133B-468A-45D0-B7E9-FDFB1A3A61FD} = {D4131F39-C979-44C1-B3F0-FA7595CA045F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C8C7D18A-328D-43CB-BE10-6680F9DDE738}
Expand Down
41 changes: 40 additions & 1 deletion MyFormsApp/MyFormsApp.Android/MainActivity.cs
@@ -1,17 +1,24 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Content;
using Xamarin.Facebook;
using Xamarin.Facebook.AppEvents;
using Xamarin.Forms;
using Xamarin.Forms.Social.Services;
using MyFormsApp.Droid.Services;

namespace MyFormsApp.Droid
{
[Activity(Label = "MyFormsApp", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
{
public static ICallbackManager CallbackManager { get; private set; }

protected override void OnCreate(Bundle bundle)
{
TabLayoutResource = Resource.Layout.Tabbar;
Expand All @@ -20,8 +27,40 @@ protected override void OnCreate(Bundle bundle)
base.OnCreate(bundle);

global::Xamarin.Forms.Forms.Init(this, bundle);

InitializeServices();

LoadApplication(new App());
}

protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
if (CallbackManager != null)
CallbackManager.OnActivityResult(requestCode, (int)resultCode, data);
var manager = DependencyService.Get<IFacebookService>();
if (manager != null)
{
(manager as FacebookService).CallbackManager.OnActivityResult(requestCode, (int)resultCode, data);
}
}

private void InitializeServices()
{
#region Facebook

FacebookSdk.SdkInitialize(this);
AppEventsLogger.ActivateApp(this);

DependencyService.Register<IFacebookService, FacebookService>();

if (CallbackManager == null)
{
CallbackManager = CallbackManagerFactory.Create();
}

#endregion
}
}
}

25 changes: 23 additions & 2 deletions MyFormsApp/MyFormsApp.Android/MyFormsApp.Android.csproj
Expand Up @@ -49,9 +49,18 @@
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
</PropertyGroup>
<ItemGroup>
<Reference Include="Bolts.AppLinks, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Bolts.1.4.0.1\lib\MonoAndroid403\Bolts.AppLinks.dll</HintPath>
</Reference>
<Reference Include="Bolts.Tasks, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Bolts.1.4.0.1\lib\MonoAndroid403\Bolts.Tasks.dll</HintPath>
</Reference>
<Reference Include="FormsViewGroup, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.4.0.38779\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
</Reference>
<Reference Include="Google.ZXing.Core, Version=3.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Google.ZXing.Core.3.3.0\lib\MonoAndroid\Google.ZXing.Core.dll</HintPath>
</Reference>
<Reference Include="Mono.Android" />
<Reference Include="mscorlib" />
<Reference Include="System" />
Expand All @@ -74,6 +83,9 @@
<Reference Include="Xamarin.Android.Support.Core.Utils, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.Core.Utils.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Core.Utils.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.CustomTabs, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.CustomTabs.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.CustomTabs.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Android.Support.Design, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.Design.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Design.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -107,6 +119,9 @@
<Reference Include="Xamarin.Android.Support.Vector.Drawable, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Android.Support.Vector.Drawable.25.4.0.2\lib\MonoAndroid70\Xamarin.Android.Support.Vector.Drawable.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Facebook, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Facebook.Android.4.26.0\lib\MonoAndroid70\Xamarin.Facebook.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Xamarin.Forms.2.4.0.38779\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
Expand All @@ -124,6 +139,7 @@
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\FacebookService.Android.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand All @@ -145,11 +161,14 @@
<AndroidResource Include="Resources\values\styles.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MyFormsApp.Core\MyFormsApp.Shared.csproj">
<Project>{030c38e7-cf62-4594-a7cf-fd7c804af5e6}</Project>
<ProjectReference Include="..\MyFormsApp.Shared\MyFormsApp.Shared.csproj">
<Project>{e77d133b-468a-45d0-b7e9-fdfb1a3a61fd}</Project>
<Name>MyFormsApp.Shared</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\values\strings.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
Expand All @@ -172,6 +191,7 @@
<Error Condition="!Exists('..\..\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.targets'))" />
<Error Condition="!Exists('..\..\packages\Xamarin.Android.Support.Design.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Design.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Android.Support.Design.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Design.targets'))" />
<Error Condition="!Exists('..\..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.targets'))" />
<Error Condition="!Exists('..\..\packages\Xamarin.Android.Support.CustomTabs.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.CustomTabs.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Android.Support.CustomTabs.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.CustomTabs.targets'))" />
</Target>
<Import Project="..\..\packages\Xamarin.Forms.2.4.0.38779\build\netstandard1.0\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.4.0.38779\build\netstandard1.0\Xamarin.Forms.targets')" />
<Import Project="..\..\packages\Xamarin.Android.Support.Compat.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Compat.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Compat.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Compat.targets')" />
Expand All @@ -189,4 +209,5 @@
<Import Project="..\..\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.v7.AppCompat.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.AppCompat.targets')" />
<Import Project="..\..\packages\Xamarin.Android.Support.Design.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Design.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Design.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.Design.targets')" />
<Import Project="..\..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.v7.MediaRouter.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.v7.MediaRouter.targets')" />
<Import Project="..\..\packages\Xamarin.Android.Support.CustomTabs.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.CustomTabs.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.CustomTabs.25.4.0.2\build\MonoAndroid70\Xamarin.Android.Support.CustomTabs.targets')" />
</Project>
4 changes: 4 additions & 0 deletions MyFormsApp/MyFormsApp.Android/Properties/AndroidManifest.xml
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.MyFormsApp" android:installLocation="auto">
<uses-sdk android:minSdkVersion="22" />
<activity android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:label="@string/app_name" />
<application android:label="MyFormsApp.Android" android:icon="@drawable/icon"></application>
</manifest>
3 changes: 3 additions & 0 deletions MyFormsApp/MyFormsApp.Android/Properties/AssemblyInfo.cs
Expand Up @@ -29,6 +29,9 @@
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: MetaData("com.facebook.sdk.ApplicationId", Value = "@string/facebook_app_id")]

// Add some common permissions, these can be removed if not needed
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]

0 comments on commit d5006c6

Please sign in to comment.