Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
[Guava] Update to 29.0 and target 'net6.0-android31'. (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst authored Sep 21, 2021
1 parent 92a314d commit 8d918ab
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
20 changes: 16 additions & 4 deletions Android/Guava/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@
<!-- Uncomment if a $(PackageVersionSuffix) is ever needed -->
<!-- <PackageVersionSuffix>-net6preview04</PackageVersionSuffix> -->
<!-- <PackageVersionSuffix Condition=" '$(BUILD_BUILDID)' != '' ">$(PackageVersionSuffix).$(BUILD_BUILDID)</PackageVersionSuffix> -->
<GuavaNuGetVersion>28.2.0.1$(PackageVersionSuffix)</GuavaNuGetVersion>
<GuavaFailureAccessNuGetVersion>1.0.1.3$(PackageVersionSuffix)</GuavaFailureAccessNuGetVersion>
<GuavaListenableFutureNuGetVersion>1.0.0.3$(PackageVersionSuffix)</GuavaListenableFutureNuGetVersion>
<GuavaNuGetVersion>29.0.0$(PackageVersionSuffix)</GuavaNuGetVersion>
<GuavaFailureAccessNuGetVersion>1.0.1.4$(PackageVersionSuffix)</GuavaFailureAccessNuGetVersion>
<GuavaListenableFutureNuGetVersion>1.0.0.4$(PackageVersionSuffix)</GuavaListenableFutureNuGetVersion>

<!-- Opt out of C#8 features to maintain compatibility with legacy -->
<AndroidBoundInterfacesContainConstants>false</AndroidBoundInterfacesContainConstants>
<AndroidBoundInterfacesContainTypes>false</AndroidBoundInterfacesContainTypes>
<AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>false</AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>

<!-- .NET 6+ generates Resource.designer.cs files for bindings projects which we do not want -->
<AndroidGenerateResourceDesigner>false</AndroidGenerateResourceDesigner>

<!-- .NET 6+ packages support back to API-21 -->
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>

</PropertyGroup>
<ItemGroup>
<_NuGetBuildFolders Include="build\;buildTransitive\" />
<_TfmNuGetBuildFolders Include="@(_NuGetBuildFolders->'%(Identity)monoandroid90\');@(_NuGetBuildFolders->'%(Identity)net6.0-android30.0\')" />
<_TfmNuGetBuildFolders Include="@(_NuGetBuildFolders->'%(Identity)monoandroid90\');@(_NuGetBuildFolders->'%(Identity)net6.0-android31.0\')" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Android/Guava/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var TARGET = Argument ("t", Argument ("target", "ci"));

var GUAVA_VERSION_BASE = "28.2";
var GUAVA_VERSION_BASE = "29.0";
var GUAVA_VERSION = GUAVA_VERSION_BASE + "-android";
var GUAVA_FAILUREACCESS_VERSION = "1.0.1";
var GUAVA_LISTENABLEFUTURE_VERSION = "1.0";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Xamarin.Legacy.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-android30;monoandroid90</TargetFrameworks>
<TargetFrameworks>net6.0-android;monoandroid90</TargetFrameworks>
<IsBindingProject>true</IsBindingProject>
<AssemblyName>Xamarin.Google.Guava.FailureAccess</AssemblyName>
<RootNamespace>Guava.FailureAccess</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Xamarin.Legacy.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-android30;monoandroid90</TargetFrameworks>
<TargetFrameworks>net6.0-android;monoandroid90</TargetFrameworks>
<IsBindingProject>true</IsBindingProject>
<AssemblyName>Xamarin.Google.Guava.ListenableFuture</AssemblyName>
<RootNamespace>Guava.ListenableFuture</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion Android/Guava/source/Guava/Guava.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Xamarin.Legacy.Sdk">
<PropertyGroup>
<TargetFrameworks>net6.0-android30;monoandroid90</TargetFrameworks>
<TargetFrameworks>net6.0-android;monoandroid90</TargetFrameworks>
<IsBindingProject>true</IsBindingProject>
<AssemblyName>Xamarin.Google.Guava</AssemblyName>
<RootNamespace>Guava</RootNamespace>
Expand Down

0 comments on commit 8d918ab

Please sign in to comment.