Skip to content

Commit 01fef1f

Browse files
David BritchDavid Britch
David Britch
authored and
David Britch
committed
[TodoAWSAuth] Updated sample. Still no UWP support.
1 parent fb62e40 commit 01fef1f

File tree

83 files changed

+6379
-599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+6379
-599
lines changed

WebServices/TodoAWSAuth/.gitignore

Lines changed: 0 additions & 40 deletions
This file was deleted.

WebServices/TodoAWSAuth/Droid/Assets/AboutAssets.txt

100644100755
File mode changed.

WebServices/TodoAWSAuth/Droid/Authentication.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

WebServices/TodoAWSAuth/Droid/MainActivity.cs

100644100755
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
using System;
2-
3-
using Android.App;
4-
using Android.Content;
1+
using Android.App;
52
using Android.Content.PM;
6-
using Android.Runtime;
7-
using Android.Views;
8-
using Android.Widget;
93
using Android.OS;
104

115
namespace TodoAWSSimpleDB.Droid
126
{
13-
[Activity (Label = "TodoAWS-SimpleDB.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
7+
[Activity(Label = "TodoAWS-SimpleDB.Droid", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
148
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
159
{
16-
protected override void OnCreate (Bundle bundle)
10+
protected override void OnCreate(Bundle bundle)
1711
{
18-
base.OnCreate (bundle);
12+
base.OnCreate(bundle);
13+
14+
global::Xamarin.Forms.Forms.Init(this, bundle);
1915

20-
global::Xamarin.Forms.Forms.Init (this, bundle);
16+
Xamarin.Auth.Presenters.OAuthLoginPresenter.PlatformLogin = (authenticator) =>
17+
{
18+
var oAuthLogin = new OAuthLoginPresenter();
19+
oAuthLogin.Login(authenticator);
20+
};
2121

22-
App.Speech = new Speech ();
23-
LoadApplication (new App ());
22+
App.Speech = new Speech();
23+
LoadApplication(new App());
2424
}
2525
}
2626
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Xamarin.Auth;
2+
3+
namespace TodoAWSSimpleDB.Droid
4+
{
5+
public class OAuthLoginPresenter
6+
{
7+
public void Login(Authenticator authenticator)
8+
{
9+
Xamarin.Forms.Forms.Context.StartActivity(authenticator.GetUI(Xamarin.Forms.Forms.Context));
10+
}
11+
}
12+
}

WebServices/TodoAWSAuth/Droid/Properties/AndroidManifest.xml

100644100755
File mode changed.

WebServices/TodoAWSAuth/Droid/Properties/AssemblyInfo.cs

100644100755
File mode changed.

WebServices/TodoAWSAuth/Droid/Renderers/AuthenticationPageRenderer.cs

Lines changed: 0 additions & 77 deletions
This file was deleted.

WebServices/TodoAWSAuth/Droid/Resources/AboutResources.txt

100644100755
File mode changed.

0 commit comments

Comments
 (0)