Skip to content

Commit

Permalink
breaking: remove GRPC since GRPC tools are not ARM compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
alsami committed Feb 12, 2021
1 parent 9cd94f0 commit 73401b2
Show file tree
Hide file tree
Showing 17 changed files with 3 additions and 377 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ os: linux
dist: bionic
language: csharp
mono: none
dotnet: 5.0.102
dotnet: 5.0.103
solution: Covid19Api.sln

stages:
Expand Down
30 changes: 0 additions & 30 deletions Covid19Api.sln
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Api.Mongo.Migrator",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Api.AutoMapper", "src\Covid19Api.AutoMapper\Covid19Api.AutoMapper.csproj", "{2DEC9058-1FD3-457F-A0B2-DF053371DF34}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Api.Endpoints.Grpc", "src\Covid19Api.Endpoints.Grpc\Covid19Api.Endpoints.Grpc.csproj", "{8C8534AB-D819-4C9B-BF63-C750646AF787}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Api.Grpc.Client", "src\Covid19Api.Grpc.Client\Covid19Api.Grpc.Client.csproj", "{F135C222-3190-4379-A0B9-35A519E535A6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{540073C9-FD7A-44AB-B271-104E64EA5AC8}"
ProjectSection(SolutionItems) = preProject
docs\dev_https_cert_linux.md = docs\dev_https_cert_linux.md
Expand Down Expand Up @@ -302,30 +298,6 @@ Global
{2DEC9058-1FD3-457F-A0B2-DF053371DF34}.Release|x64.Build.0 = Release|Any CPU
{2DEC9058-1FD3-457F-A0B2-DF053371DF34}.Release|x86.ActiveCfg = Release|Any CPU
{2DEC9058-1FD3-457F-A0B2-DF053371DF34}.Release|x86.Build.0 = Release|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Debug|x64.ActiveCfg = Debug|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Debug|x64.Build.0 = Debug|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Debug|x86.ActiveCfg = Debug|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Debug|x86.Build.0 = Debug|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Release|Any CPU.Build.0 = Release|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Release|x64.ActiveCfg = Release|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Release|x64.Build.0 = Release|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Release|x86.ActiveCfg = Release|Any CPU
{8C8534AB-D819-4C9B-BF63-C750646AF787}.Release|x86.Build.0 = Release|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Debug|x64.ActiveCfg = Debug|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Debug|x64.Build.0 = Debug|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Debug|x86.ActiveCfg = Debug|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Debug|x86.Build.0 = Debug|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Release|Any CPU.Build.0 = Release|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Release|x64.ActiveCfg = Release|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Release|x64.Build.0 = Release|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Release|x86.ActiveCfg = Release|Any CPU
{F135C222-3190-4379-A0B9-35A519E535A6}.Release|x86.Build.0 = Release|Any CPU
{7D85801F-6AF5-407B-B262-2F85E6D8CF7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D85801F-6AF5-407B-B262-2F85E6D8CF7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D85801F-6AF5-407B-B262-2F85E6D8CF7D}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -370,8 +342,6 @@ Global
{663655F5-2BFE-4154-AF3F-BB8BF36C2165} = {EBCCA0C8-4218-490F-A131-E8DF265DC415}
{9C4F9DEA-77E9-42E7-8991-C5227AAC0119} = {2A35F3E7-12D1-4F74-8867-F5882FB47009}
{2DEC9058-1FD3-457F-A0B2-DF053371DF34} = {2A35F3E7-12D1-4F74-8867-F5882FB47009}
{8C8534AB-D819-4C9B-BF63-C750646AF787} = {2A35F3E7-12D1-4F74-8867-F5882FB47009}
{F135C222-3190-4379-A0B9-35A519E535A6} = {2A35F3E7-12D1-4F74-8867-F5882FB47009}
{7D85801F-6AF5-407B-B262-2F85E6D8CF7D} = {EBCCA0C8-4218-490F-A131-E8DF265DC415}
{0D3D25E7-6045-41C1-B63A-AFCCFE93C403} = {EBCCA0C8-4218-490F-A131-E8DF265DC415}
EndGlobalSection
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "5.0.102",
"version": "5.0.103",
"rollForward": "latestFeature"
}
}
16 changes: 0 additions & 16 deletions src/Covid19Api.AutoMapper/CountryStatisticsProfile.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using AutoMapper;
using Covid19Api.Domain;
using Covid19Api.Grpc.CountryStatistics;
using Covid19Api.Presentation.Response;
using Google.Protobuf.WellKnownTypes;

// ReSharper disable UnusedMember.Global

Expand All @@ -15,20 +13,6 @@ public CountryStatisticsProfile()
this.CreateMap<CountryStatistic, CountryStatisticDto>()
.ConvertUsing(src => new CountryStatisticDto(src.Country, src.CountryCode, src.TotalCases,
src.NewCases, src.TotalDeaths, src.NewDeaths, src.RecoveredCases, src.ActiveCases, src.FetchedAt));

this.CreateMap<CountryStatisticDto, CountryStatisticGrpcMessage>()
.ConvertUsing(src => new CountryStatisticGrpcMessage
{
Country = src.Country,
CountryCode = src.CountryCode,
ActiveCases = src.ActiveCases,
NewCases = src.NewCases,
NewDeaths = src.NewDeaths,
RecoveredCases = src.RecoveredCases,
TotalCases = src.TotalCases,
TotalDeaths = src.TotalDeaths,
FetchedAt = Timestamp.FromDateTime(src.FetchedAt),
});
}
}
}
12 changes: 0 additions & 12 deletions src/Covid19Api.AutoMapper/GlobalStatisticsProfile.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using AutoMapper;
using Covid19Api.Domain;
using Covid19Api.Grpc.GlobalStatistics;
using Covid19Api.Presentation.Response;
using Google.Protobuf.WellKnownTypes;

// ReSharper disable UnusedType.Global

Expand All @@ -16,16 +14,6 @@ public GlobalStatisticsProfile()
this.CreateMap<GlobalStatistics, GlobalStatisticDto>()
.ConvertUsing(src =>
new GlobalStatisticDto(src.Total, src.Recovered, src.Deaths, src.FetchedAt));

this.CreateMap<GlobalStatisticDto, GlobalStatisticsGrpcMessage>()
.ConvertUsing(src => new GlobalStatisticsGrpcMessage
{
Active = src.Active,
Deaths = src.Deaths,
Recovered = src.Recovered,
Total = src.Total,
FetchedAt = Timestamp.FromDateTime(src.FetchedAt)
});
}
}
}
76 changes: 0 additions & 76 deletions src/Covid19Api.Endpoints.Grpc/CountryStatisticsServiceGrpc.cs

This file was deleted.

16 changes: 0 additions & 16 deletions src/Covid19Api.Endpoints.Grpc/Covid19Api.Endpoints.Grpc.csproj

This file was deleted.

46 changes: 0 additions & 46 deletions src/Covid19Api.Endpoints.Grpc/GlobalStatisticsServiceGrpc.cs

This file was deleted.

24 changes: 0 additions & 24 deletions src/Covid19Api.Grpc.Client/Covid19Api.Grpc.Client.csproj

This file was deleted.

39 changes: 0 additions & 39 deletions src/Covid19Api.Grpc.Client/Program.cs

This file was deleted.

11 changes: 0 additions & 11 deletions src/Covid19Api.Grpc.Client/Properties/launchSettings.json

This file was deleted.

16 changes: 0 additions & 16 deletions src/Covid19Api.Presentation/Covid19Api.Presentation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,4 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.14.0" />
<PackageReference Include="Grpc.Net.Client" Version="2.34.0" />
<PackageReference Include="Grpc.Tools" Version="2.35.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>

<Protobuf Include="Protos\GlobalStatistics.proto" GrpcServices="Both" />
<Protobuf Include="Protos\CountryStatistics.proto" GrpcServices="Both" />
</ItemGroup>

</Project>
Loading

0 comments on commit 73401b2

Please sign in to comment.