Skip to content

Commit

Permalink
Remove rollback and native HTTP handler for Android (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharykeeping authored Oct 14, 2024
1 parent a53dfcb commit bf587d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Install MAUI Workload
run: |
dotnet nuget locals all --clear
dotnet workload install maui --ignore-failed-sources --from-rollback-file rollback.json
dotnet workload install android maui wasm-tools --source https://api.nuget.org/v3/index.json --from-rollback-file rollback.json
dotnet workload install maui --ignore-failed-sources
dotnet workload install android maui wasm-tools --source https://api.nuget.org/v3/index.json
- name: Restore Dependencies
run: |
Expand Down
3 changes: 0 additions & 3 deletions rollback.json

This file was deleted.

3 changes: 3 additions & 0 deletions src/MobileUI/MobileUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>

<!-- Workaround for HttpClient disposed crashes on Android -->
<UseNativeHttpHandler Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">false</UseNativeHttpHandler>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
Expand Down

0 comments on commit bf587d8

Please sign in to comment.