Skip to content

Commit f3731f1

Browse files
committed
Merge branch 'main' into dev/grendel/clr-host
* main: Bump com.android.tools.build:manifest-merger from 31.8.0 to 31.8.1 (#9800) [Xamarin.Android.Build.Tasks] unify `$(AndroidCodegenTarget)` (#9806) Bump to dotnet/java-interop@f30e420a (#9793)
2 parents c23a9cf + 66ffd38 commit f3731f1

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

Configuration.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
<LibUnwindSourceFullPath>$([System.IO.Path]::GetFullPath ('$(LibUnwindSourceDirectory)'))</LibUnwindSourceFullPath>
145145
<LibUnwindGeneratedHeadersFullPath>$([System.IO.Path]::GetFullPath ('$(LibUnwindGeneratedHeadersDirectory)'))</LibUnwindGeneratedHeadersFullPath>
146146
<LZ4SourceFullPath>$([System.IO.Path]::GetFullPath ('$(LZ4SourceDirectory)'))</LZ4SourceFullPath>
147-
<JavaInteropTargetFrameworkVersion>net8.0</JavaInteropTargetFrameworkVersion>
147+
<JavaInteropTargetFrameworkVersion>net9.0</JavaInteropTargetFrameworkVersion>
148148
</PropertyGroup>
149149
<PropertyGroup>
150150
<AdbToolPath Condition=" '$(AdbToolPath)' == '' ">$(AndroidSdkFullPath)\platform-tools\</AdbToolPath>

Documentation/docs-mobile/building-apps/build-properties.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ Possible values include:
273273
Xamarin.Android 6.1 or later. Xamarin.Android 6.1 and later bind
274274
`Mono.Android.dll` with this value.
275275

276+
- **JavaInterop1**: experimental value, currently the default for the
277+
NativeAOT runtime.
278+
276279
The default value is `XAJavaInterop1`.
277280

278281
## AndroidCreatePackagePerAbi

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
<!-- Bindings properties -->
4141
<!-- jar2xml is not supported -->
4242
<AndroidClassParser>class-parse</AndroidClassParser>
43-
<!-- Anything other than XAJavaInterop1 is not supported -->
44-
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget>
43+
<AndroidCodegenTarget Condition=" '$(AndroidCodegenTarget)' == '' and '$(_AndroidRuntime)' != 'NativeAOT' ">XAJavaInterop1</AndroidCodegenTarget>
4544
<AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods Condition=" '$(AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods)' == '' ">true</AndroidBoundInterfacesContainStaticAndDefaultInterfaceMethods>
4645
<AndroidBoundInterfacesContainTypes Condition=" '$(AndroidBoundInterfacesContainTypes)' == '' ">true</AndroidBoundInterfacesContainTypes>
4746
<AndroidBoundInterfacesContainConstants Condition=" '$(AndroidBoundInterfacesContainConstants)' == '' ">true</AndroidBoundInterfacesContainConstants>

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeAOT.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This file contains the NativeAOT-specific MSBuild logic for .NET for Android.
1212
<!-- Default property values for NativeAOT -->
1313
<PropertyGroup>
1414
<_AndroidRuntimePackRuntime>NativeAOT</_AndroidRuntimePackRuntime>
15-
<_AndroidCodeGenerationTarget Condition=" '$(_AndroidCodeGenerationTarget)' == '' ">JavaInterop1</_AndroidCodeGenerationTarget>
15+
<AndroidCodegenTarget Condition=" '$(AndroidCodegenTarget)' == '' ">JavaInterop1</AndroidCodegenTarget>
1616
<!-- NativeAOT's targets currently gives an error about cross-compilation -->
1717
<DisableUnsupportedError Condition=" $([MSBuild]::IsOSPlatform('windows')) and '$(DisableUnsupportedError)' == '' ">true</DisableUnsupportedError>
1818
</PropertyGroup>

src/Xamarin.Android.Build.Tasks/Xamarin.Android.Bindings.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Copyright (C) 2012 Xamarin Inc. All rights reserved.
4747
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == '' And '$(AndroidUseLatestPlatformSdk)' == 'False'">v5.0</TargetFrameworkVersion>
4848
<LangVersion Condition=" '$(LangVersion)' == '' ">8.0</LangVersion>
4949
<AndroidClassParser Condition=" '$(AndroidClassParser)' == '' ">jar2xml</AndroidClassParser>
50-
<AndroidCodegenTarget Condition=" '$(AndroidCodegenTarget)' == '' ">XAJavaInterop1</AndroidCodegenTarget>
5150
<_AndroidIsBindingProject>True</_AndroidIsBindingProject>
5251
</PropertyGroup>
5352

src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ because xbuild doesn't support framework reference assemblies.
15191519

15201520
<GenerateJavaStubs
15211521
AndroidRuntime="$(_AndroidRuntime)"
1522-
CodeGenerationTarget="$(_AndroidCodeGenerationTarget)"
1522+
CodeGenerationTarget="$(AndroidCodegenTarget)"
15231523
ResolvedAssemblies="@(_ResolvedAssemblies)"
15241524
ResolvedUserAssemblies="@(_ResolvedUserMonoAndroidAssemblies)"
15251525
ErrorOnCustomJavaObject="$(AndroidErrorOnCustomJavaObject)"

src/manifestmerger/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repositories {
1919

2020
dependencies {
2121
// https://mvnrepository.com/artifact/com.android.tools.build/manifest-merger
22-
implementation 'com.android.tools.build:manifest-merger:31.8.0'
22+
implementation 'com.android.tools.build:manifest-merger:31.8.1'
2323
}
2424

2525
sourceSets {

0 commit comments

Comments
 (0)