Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Update ExposureNotification binding #142

Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: msbuild ${{ github.workspace }}/Covid19Radar/Covid19Radar.Android/Covid19Radar.Android.csproj /restore /t:Build /p:Configuration=${{ matrix.Configuration }}
test:
name: Test
runs-on: ubuntu-latest
runs-on: macos-latest # Tests must be executed on macos
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ローカルにNuGetパッケージを置くとテストが通らなくなって困ったけど、実験を繰り返した結果、プラットフォームをmacosにしたら動くことがわかった。

https://github.com/keiji/cocoa/runs/3034626142
https://github.com/keiji/cocoa/runs/3035372919

needs: [build_ios, build_android]
steps:
- name: Checkout
Expand Down
3 changes: 3 additions & 0 deletions Covid19Radar.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Radar.Android", "Covid19Radar\Covid19Radar.Android\Covid19Radar.Android.csproj", "{92B1EC8F-ECF4-403A-B6F4-5EC80F43A69A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5A03DD13-C0FC-4998-AFEB-74D5390C59A1}"
ProjectSection(SolutionItems) = preProject
Nuget.config = Nuget.config
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Covid19Radar.iOS", "Covid19Radar\Covid19Radar.iOS\Covid19Radar.iOS.csproj", "{3104A081-8DF8-4EDB-A40A-38DE78AA63AC}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
<Version>4.6.0.967</Version>
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.Nearby.ExposureNotification">
<Version>19.7.1-eap.1</Version>
<Version>19.7.2-eap-alpha03</Version>
</PackageReference>
<PackageReference Include="Xamarin.GooglePlayServices.SafetyNet">
<Version>117.0.0-preview03</Version>
Expand Down
2 changes: 1 addition & 1 deletion Covid19Radar/Covid19Radar.iOS/Covid19Radar.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
<Version>4.6.0.967</Version>
</PackageReference>
<PackageReference Include="Xamarin.iOS.ExposureNotification">
<Version>1.1.0-beta1</Version>
<Version>1.2.3-alpha01</Version>
</PackageReference>
<PackageReference Include="Xamarin.iOS.MaterialComponents">
<Version>92.0.0</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@
<Compile Include="**\*.android.cs" />
<Compile Include="**\*.android.*.cs" />

<PackageReference Include="Xamarin.GooglePlayServices.Basement" Version="117.2.1-preview01" />
<PackageReference Include="Xamarin.GooglePlayServices.Tasks" Version="117.0.2-preview01" />
<PackageReference Include="Xamarin.GooglePlayServices.Nearby.ExposureNotification" Version="19.7.1-eap.1" />
<PackageReference Include="Xamarin.AndroidX.Core" Version="1.2.0" />
<PackageReference Include="Xamarin.GooglePlayServices.Nearby.ExposureNotification" Version="19.7.2-eap-alpha03" />
<PackageReference Include="Xamarin.AndroidX.Core" Version="1.2.0.1" />
<PackageReference Include="Xamarin.AndroidX.Work.Runtime" Version="2.5.0.1" />
</ItemGroup>

Expand All @@ -52,7 +50,7 @@
<Compile Include="*.ios.*.cs" />

<PackageReference Include="System.IO.Compression" Version="4.3.0" />
<PackageReference Include="Xamarin.iOS.ExposureNotification" Version="1.0.0" />
<PackageReference Include="Xamarin.iOS.ExposureNotification" Version="1.2.3-alpha01" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions Nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<packageSources>
<add key="MyNuget" value="./TempNugetFeed" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
9 changes: 9 additions & 0 deletions TempNugetFeed/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# NuGet packages

We have created NuGet packages these added missing APIs.

* Xamarin.GooglePlayServices.Nearby.ExposureNotification
* Xamarin.iOS.ExposureNotification (Not included)

Please see more detail from below.
https://github.com/keiji/XamarinComponents/tree/exposurenotification/update_apis
Binary file not shown.