Skip to content

Commit

Permalink
Use the XAJavaInterop1 codegen by default
Browse files Browse the repository at this point in the history
See: https://docs.microsoft.com/en-us/xamarin/android/deploy-test/building-apps/build-process#binding-project-build-properties

Basically, smaller, faster bindings - this does require 6.1 or later, so there's a condition for that.

This also bumps TargetFrameworkVersion to something a bit more sane (really I'd like to see this go to 9.0)
  • Loading branch information
Redth committed Oct 7, 2019
1 parent de9a8ef commit 4cde5ff
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
</PropertyGroup>

<PropertyGroup>
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v5.0</TargetFrameworkVersion>
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v6.1</TargetFrameworkVersion>
<AndroidUseLatestPlatformSdk Condition="'$(AndroidUseLatestPlatformSdk)' == ''">false</AndroidUseLatestPlatformSdk>
<!-- This is here to prevent a warning in the Xamarin.Android.Common.Debugging.targets when a blank is passed into _GetPrimaryCpuAbi -->
<AdbTarget Condition="'$(AdbTarget)' == ''">none</AdbTarget>
<AndroidClassParser Condition="'$(AndroidClassParser)' == ''">class-parse</AndroidClassParser>
<AndroidCodegenTarget Condition="'$(AndroidCodegenTarget)' == '' And $(TargetFrameworkVersion.TrimStart('vV')) &gt; 6.0">XAJavaInterop1</AndroidCodegenTarget>
<AndroidUseIntermediateDesignerFile Condition=" '$(AndroidUseIntermediateDesignerFile)' == '' ">True</AndroidUseIntermediateDesignerFile>
<DesignTimeBuild Condition=" '$(DesignTimeBuild)' == '' ">false</DesignTimeBuild>
</PropertyGroup>

</Project>
</Project>

0 comments on commit 4cde5ff

Please sign in to comment.