ProductList
This commit is contained in:
@@ -66,6 +66,7 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" Version="$(MauiVersion)"/>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1"/>
|
||||
<PackageReference Include="MudBlazor" Version="8.8.0"/>
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Bimix.UI.Shared.Extensions;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MudBlazor.Services;
|
||||
|
||||
namespace Bimix.UI.Mobile;
|
||||
@@ -17,7 +18,8 @@ public static class MauiProgram
|
||||
builder.Services.AddMudServices();
|
||||
|
||||
var baseUrl = GetApiBaseUrl();
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(baseUrl) });
|
||||
builder.Services.AddSharedServices(baseUrl);
|
||||
|
||||
|
||||
#if DEBUG
|
||||
builder.Services.AddBlazorWebViewDeveloperTools();
|
||||
@@ -30,9 +32,9 @@ public static class MauiProgram
|
||||
{
|
||||
#if IOS
|
||||
// iOS symulator - użyj swojego IP
|
||||
return "http://192.168.1.100:5015/"; // Zastąp swoim IP
|
||||
return "http://192.168.13.44:7142/"; // Zastąp swoim IP
|
||||
#else
|
||||
return "https://localhost:7015/";
|
||||
return "https://localhost:7142/";
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user