Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dotnet-client-libraries/Firebase/Firebase/Dtos/ShoeDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class ShoeDto
[Required]
public required string Brand { get; set; }

[Required]
public required decimal Price { get; set; }

[Required]
Expand Down
12 changes: 6 additions & 6 deletions dotnet-client-libraries/Firebase/Firebase/Firebase.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FirebaseAdmin" Version="2.3.0" />
<PackageReference Include="FirebaseAuthentication.net" Version="4.0.2" />
<PackageReference Include="Google.Cloud.Firestore" Version="3.3.0" />
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.5.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.5" />
<PackageReference Include="FirebaseAdmin" Version="3.6.0" />
<PackageReference Include="FirebaseAuthentication.net" Version="4.1.0" />
<PackageReference Include="Google.Cloud.Firestore" Version="4.4.0" />
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.15.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.11" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,21 @@
<table class="table shoe-table">
<thead>
<tr>
<th>
<label>Id</label>
</th>
<th>
<label>Name</label>
</th>
<th>
<label>Brand</label>
</th>
<th>
<label>Price</label>
</th>
<th>
<label>Image</label>
</th>
<th>Id</th>
<th>Name</th>
<th>Brand</th>
<th>Price</th>
<th>Image</th>
</tr>
</thead>
<tbody>
@foreach (var shoe in Model.Shoes)

Check warning on line 23 in dotnet-client-libraries/Firebase/Firebase/Pages/Firestore/Index.cshtml

View workflow job for this annotation

GitHub Actions / Build & test (dotnet-client-libraries/Firebase)

Dereference of a possibly null reference.

Check warning on line 23 in dotnet-client-libraries/Firebase/Firebase/Pages/Firestore/Index.cshtml

View workflow job for this annotation

GitHub Actions / Build & test (dotnet-client-libraries/Firebase)

Dereference of a possibly null reference.
{
<tr>
<td>
<label>@shoe.Id</label>
</td>
<td>
<label>@shoe.Name</label>
</td>
<td>
<label>@shoe.Brand</label>
</td>
<td>
<label>@shoe.Price</label>
</td>
<td>@shoe.Id</td>
<td>@shoe.Name</td>
<td>@shoe.Brand</td>
<td>@shoe.Price</td>
<td>
<img src="@shoe.ImageUri" alt="shoe-image">
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Firebase.Services;
public class FirebaseStorageService : IFirebaseStorageService
{
private readonly StorageClient _storageClient;
private const string BucketName = "codemaze-firebase.appspot.com";
private const string BucketName = "codemaze-firebase.firebasestorage.app";

public FirebaseStorageService(StorageClient storageClient)
{
Expand Down
15 changes: 8 additions & 7 deletions dotnet-client-libraries/Firebase/Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.5" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.11" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.9.0" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PackageReference Include="coverlet.collector" Version="10.0.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
Loading