Skip to content

Commit

Permalink
update to new extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ziomek64 committed Mar 14, 2024
1 parent 326ea03 commit 6113598
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 24 deletions.
38 changes: 19 additions & 19 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<Project ToolsVersion="15.0">
<ItemGroup>
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.2.1" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0-rc.2.23479.6" />
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.2.2" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageVersion Include="Uno.Core.Extensions.Logging.Singleton" Version="4.0.1" />
<PackageVersion Include="Uno.Extensions.Authentication" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Authentication.WinUI" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Configuration" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Authentication.WinUI" Version="4.1.0-dev.52" />
<PackageVersion Include="Uno.Extensions.Configuration" Version="4.1.0-dev.52" />
<PackageVersion Include="Uno.Extensions.Hosting" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Hosting.WinUI" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Logging.OSLog" Version="1.7.0" />
<PackageVersion Include="Uno.Extensions.Logging.WinUI" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Hosting.WinUI" Version="4.1.0-dev.52" />
<PackageVersion Include="Uno.Extensions.Logging.OSLog" Version="1.8.0-dev.1" />
<PackageVersion Include="Uno.Extensions.Logging.WinUI" Version="4.1.0-dev.52" />
<PackageVersion Include="Uno.Extensions.Navigation" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Navigation.WinUI" Version="3.0.11" />
<PackageVersion Include="Uno.Extensions.Navigation.Toolkit.WinUI" Version="3.0.11" />
<PackageVersion Include="Uno.Material.WinUI" Version="4.0.6" />
<PackageVersion Include="Uno.Toolkit.WinUI" Version="5.0.17" />
<PackageVersion Include="Uno.Toolkit.WinUI.Material" Version="5.0.17" />
<PackageVersion Include="Uno.Resizetizer" Version="1.2.1" />
<PackageVersion Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="5.0.48" />
<PackageVersion Include="Uno.Extensions.Navigation.WinUI" Version="4.1.0-dev.52" />
<PackageVersion Include="Uno.Extensions.Navigation.Toolkit.WinUI" Version="4.1.0-dev.52" />
<PackageVersion Include="Uno.Material.WinUI" Version="4.1.1" />
<PackageVersion Include="Uno.Toolkit.WinUI" Version="5.1.7" />
<PackageVersion Include="Uno.Toolkit.WinUI.Material" Version="5.1.7" />
<PackageVersion Include="Uno.Resizetizer" Version="1.3.0" />
<PackageVersion Include="Uno.UI.Adapter.Microsoft.Extensions.Logging" Version="5.1.87" />
<PackageVersion Include="Uno.UniversalImageLoader" Version="1.9.36" />
<PackageVersion Include="Uno.WinUI" Version="5.0.48" />
<PackageVersion Include="Uno.WinUI.Lottie" Version="5.0.48" />
<PackageVersion Include="Uno.WinUI.DevServer" Version="5.0.48" />
<PackageVersion Include="Xamarin.Google.Android.Material" Version="1.10.0.1" />
<PackageVersion Include="Uno.WinUI" Version="5.1.87" />
<PackageVersion Include="Uno.WinUI.Lottie" Version="5.1.87" />
<PackageVersion Include="Uno.WinUI.DevServer" Version="5.1.87" />
<PackageVersion Include="Xamarin.Google.Android.Material" Version="1.10.0.3" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace UnoApp6.Droid;
[IntentFilter(
new[] { Android.Content.Intent.ActionView },
Categories = new[] { Android.Content.Intent.CategoryDefault, Android.Content.Intent.CategoryBrowsable },
DataScheme = "myprotocol")]
DataScheme = "myapplication")]
public class WebAuthenticationBrokerActivity : Uno.AuthenticationBroker.WebAuthenticationBrokerActivityBase
{
}
7 changes: 4 additions & 3 deletions UnoApp6/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,10 @@ protected async override void OnLaunched(LaunchActivatedEventArgs args)
.Section<AppConfig>()
)

.UseAuthentication(auth =>
auth.AddWeb()
)
.UseAuthentication(builder =>
{
builder.AddWeb();
})


.ConfigureServices((context, services) =>
Expand Down
1 change: 1 addition & 0 deletions UnoApp6/Presentation/LoginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ private async Task DoLogin()
{
var success = await _authService.LoginAsync();
Console.WriteLine("Login");
Console.WriteLine(success);
}

public string Title { get; } = "Login";
Expand Down
2 changes: 1 addition & 1 deletion UnoApp6/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
},
"Web": {
"LoginStartUri": "https://anilist.co/api/v2/oauth/authorize?client_id=15408&response_type=token",
"LogoutStartUri": "https://anilist.co/api/v2/oauth/authorize?client_id=15408&response_type=token"
"LogoutStartUri": "myapplication:/authentication-callback"
}
}

0 comments on commit 6113598

Please sign in to comment.