Skip to content

Commit 01f03a3

Browse files
committed
Merge branch 'main' into dev/grendel/blobs-in-lib
* main: Localized file check-in by OneLocBuild Task (#8652) Bump to xamarin/xamarin-android-tools/main@b175674 (#8644) [Xamarin.Android.Build.Tasks] remove checks for `$(UsingAndroidNETSdk)` (#8647)
2 parents e6ed1ed + eda5449 commit 01f03a3

22 files changed

+84
-115
lines changed

external/xamarin-android-tools

src/Xamarin.Android.Build.Tasks/MSBuild/Xamarin/Android/Xamarin.Android.AvailableItems.targets

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,15 @@ This item group populates the Build Action drop-down in IDEs.
2929
<AvailableItemName Include="ProjectReference" />
3030
<AvailableItemName Include="AndroidManifestOverlay" />
3131
</ItemGroup>
32-
<!-- Legacy, non-binding projects -->
33-
<ItemGroup Condition=" '$(_AndroidIsBindingProject)' != 'true' and '$(UsingAndroidNETSdk)' != 'true' ">
34-
<AvailableItemName Include="AndroidAarLibrary" />
35-
<AvailableItemName Include="AndroidJavaLibrary" />
36-
</ItemGroup>
37-
<!-- Legacy, non-application projects -->
38-
<ItemGroup Condition=" '$(AndroidApplication)' != 'true' and '$(UsingAndroidNETSdk)' != 'true' ">
39-
<AvailableItemName Include="EmbeddedNativeLibrary" />
40-
</ItemGroup>
41-
<!-- Legacy binding projects or .NET 6 -->
42-
<ItemGroup Condition=" '$(_AndroidIsBindingProject)' == 'true' or '$(UsingAndroidNETSdk)' == 'true' ">
32+
33+
<!-- All project types -->
34+
<ItemGroup>
4335
<AvailableItemName Include="TransformFile" />
4436
<AvailableItemName Include="LibraryProjectProperties" />
4537
<AvailableItemName Include="JavaDocIndex" />
4638
<AvailableItemName Include="JavaDocJar" />
4739
<AvailableItemName Include="JavaSourceJar" />
4840
</ItemGroup>
49-
<!-- Legacy binding projects -->
50-
<ItemGroup Condition=" '$(_AndroidIsBindingProject)' == 'true' and '$(UsingAndroidNETSdk)' != 'true' ">
51-
<AvailableItemName Include="EmbeddedJar" />
52-
<AvailableItemName Include="EmbeddedNativeLibrary" />
53-
<AvailableItemName Include="EmbeddedReferenceJar" />
54-
<AvailableItemName Include="InputJar" />
55-
<AvailableItemName Include="ReferenceJar" />
56-
<AvailableItemName Include="LibraryProjectZip" />
57-
</ItemGroup>
5841

5942
<!-- Default item metadata -->
6043
<ItemDefinitionGroup>
@@ -64,13 +47,13 @@ This item group populates the Build Action drop-down in IDEs.
6447
</AndroidResource>
6548
<AndroidLibrary>
6649
<Bind>true</Bind>
67-
<Pack Condition=" '$(UsingAndroidNETSdk)' == 'true' ">true</Pack>
50+
<Pack>true</Pack>
6851
</AndroidLibrary>
6952
<LibraryProjectZip>
70-
<Pack Condition=" '$(UsingAndroidNETSdk)' == 'true' ">true</Pack>
53+
<Pack>true</Pack>
7154
</LibraryProjectZip>
7255
<AndroidJavaSource>
73-
<Bind Condition=" '$(UsingAndroidNETSdk)' == 'true' ">true</Bind>
56+
<Bind>true</Bind>
7457
</AndroidJavaSource>
7558
<AndroidAarLibrary>
7659
<!-- NOTE: .aar items should skip %(AndroidSkipResourceProcessing) by default -->
@@ -80,38 +63,26 @@ This item group populates the Build Action drop-down in IDEs.
8063

8164
<!-- Convert @(AndroidLibrary) to the legacy item group names -->
8265
<Target Name="_CategorizeAndroidLibraries">
83-
<!-- Applications, or legacy class libraries -->
84-
<ItemGroup Condition=" '$(AndroidApplication)' == 'true' or ('$(_AndroidIsBindingProject)' != 'true' and '$(UsingAndroidNETSdk)' != 'true') ">
66+
<!-- Applications -->
67+
<ItemGroup Condition=" '$(AndroidApplication)' == 'true' ">
8568
<AndroidAarLibrary Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.aar' " />
8669
<AndroidJavaLibrary Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' " />
70+
<InputJar Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' and '%(AndroidLibrary.Bind)' == 'true' " />
8771
</ItemGroup>
88-
<!-- Any library that is not an app -->
72+
<!-- Class libraries, not an application -->
8973
<ItemGroup Condition=" '$(AndroidApplication)' != 'true' ">
9074
<EmbeddedNativeLibrary Include="@(AndroidNativeLibrary)" />
91-
</ItemGroup>
92-
<!-- Any .NET 6 project -->
93-
<ItemGroup Condition=" '$(UsingAndroidNETSdk)' == 'true' ">
94-
<LibraryProjectZip Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.aar' and '%(AndroidLibrary.Bind)' == 'true' " />
95-
</ItemGroup>
96-
<!-- .NET 6 application projects -->
97-
<ItemGroup Condition=" '$(AndroidApplication)' == 'true' and '$(UsingAndroidNETSdk)' == 'true' ">
98-
<InputJar Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' and '%(AndroidLibrary.Bind)' == 'true' " />
99-
</ItemGroup>
100-
<!-- .NET 6 class libraries-->
101-
<ItemGroup Condition=" '$(AndroidApplication)' != 'true' and '$(UsingAndroidNETSdk)' == 'true' ">
10275
<AndroidAarLibrary Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.aar' and '%(AndroidLibrary.Bind)' != 'true' " />
10376
<AndroidJavaLibrary Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' and '%(AndroidLibrary.Bind)' != 'true' " />
10477
<EmbeddedJar Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' and '%(AndroidLibrary.Bind)' == 'true' " />
105-
<!-- .aar files should be copied to $(OutputPath) in .NET 6-->
78+
<!-- .aar files should be copied to $(OutputPath) in .NET 6+ -->
10679
<None Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.aar' " TfmSpecificPackageFile="%(AndroidLibrary.Pack)" Pack="false" CopyToOutputDirectory="PreserveNewest" Link="%(Filename)%(Extension)" />
10780
<!-- @(LibraryProjectZip) items that are not in @(AndroidLibrary) -->
10881
<None Include="@(LibraryProjectZip)" Exclude="@(AndroidLibrary)" TfmSpecificPackageFile="%(LibraryProjectZip.Pack)" Pack="false" CopyToOutputDirectory="PreserveNewest" Link="%(Filename)%(Extension)" />
10982
</ItemGroup>
110-
<!-- Legacy binding projects -->
111-
<ItemGroup Condition=" '$(_AndroidIsBindingProject)' == 'true' and '$(UsingAndroidNETSdk)' != 'true' ">
112-
<LibraryProjectZip Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.aar' and '%(AndroidLibrary.Bind)' == 'true' " />
113-
<EmbeddedJar Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' and '%(AndroidLibrary.Bind)' == 'true' " />
114-
<EmbeddedReferenceJar Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.jar' and '%(AndroidLibrary.Bind)' != 'true' " />
83+
<!-- All projects -->
84+
<ItemGroup>
85+
<LibraryProjectZip Include="@(AndroidLibrary)" Condition=" '%(AndroidLibrary.Extension)' == '.aar' and '%(AndroidLibrary.Bind)' == 'true' " />
11586
</ItemGroup>
11687
</Target>
11788

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ It is shared between "legacy" binding projects and .NET 5 projects.
2020
<GeneratedOutputPath Condition=" '$(GeneratedOutputPath)' == '' ">$(IntermediateOutputPath)generated\</GeneratedOutputPath>
2121
<AndroidJavadocVerbosity Condition=" '$(AndroidJavadocVerbosity)' == '' ">intellisense</AndroidJavadocVerbosity>
2222
<ApiOutputFile Condition=" '$(ApiOutputFile)' == '' ">$(IntermediateOutputPath)api.xml</ApiOutputFile>
23-
<ClassParseToolExe Condition=" '$(UsingAndroidNETSdk)' == 'true' ">class-parse.dll</ClassParseToolExe>
24-
<ClassParseToolExe Condition=" '$(ClassParseToolExe)' == '' ">class-parse.exe</ClassParseToolExe>
25-
<BindingsGeneratorToolExe Condition=" '$(UsingAndroidNETSdk)' == 'true' ">generator.dll</BindingsGeneratorToolExe>
26-
<BindingsGeneratorToolExe Condition=" '$(BindingsGeneratorToolExe)' == '' ">generator.exe</BindingsGeneratorToolExe>
23+
<ClassParseToolExe Condition=" '$(ClassParseToolExe)' == '' ">class-parse.dll</ClassParseToolExe>
24+
<BindingsGeneratorToolExe Condition=" '$(BindingsGeneratorToolExe)' == '' ">generator.dll</BindingsGeneratorToolExe>
2725
<JavadocToMdocToolExe Condition=" '$(JavadocToMdocToolExe)' == '' ">javadoc-to-mdoc.exe</JavadocToMdocToolExe>
2826
<_GeneratorStampFile>$(_AndroidStampDirectory)generator.stamp</_GeneratorStampFile>
2927
</PropertyGroup>

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
@@ -8,8 +8,7 @@
88
<MonoAndroidAssetsPrefix Condition=" '$(MonoAndroidAssetsPrefix)' == '' ">Assets</MonoAndroidAssetsPrefix>
99
<AndroidResgenClass Condition=" '$(AndroidResgenClass)' == '' ">Resource</AndroidResgenClass>
1010
<AndroidEnableSGenConcurrent Condition=" '$(AndroidEnableSGenConcurrent)' == '' ">true</AndroidEnableSGenConcurrent>
11-
<AndroidHttpClientHandlerType Condition=" '$(AndroidHttpClientHandlerType)' == '' and '$(UsingAndroidNETSdk)' == 'true' ">Xamarin.Android.Net.AndroidMessageHandler</AndroidHttpClientHandlerType>
12-
<AndroidHttpClientHandlerType Condition=" '$(AndroidHttpClientHandlerType)' == '' and '$(UsingAndroidNETSdk)' != 'true' ">Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
11+
<AndroidHttpClientHandlerType Condition=" '$(AndroidHttpClientHandlerType)' == '' ">Xamarin.Android.Net.AndroidMessageHandler</AndroidHttpClientHandlerType>
1312
<AndroidGenerateResourceDesigner Condition=" '$(AndroidGenerateResourceDesigner)' == '' ">true</AndroidGenerateResourceDesigner>
1413
<AndroidUseDesignerAssembly Condition=" '$(AndroidUseDesignerAssembly)' == '' ">true</AndroidUseDesignerAssembly>
1514
<AndroidUseIntermediateDesignerFile Condition=" '$(AndroidUseDesignerAssembly)' == 'True' ">false</AndroidUseIntermediateDesignerFile>

src/Xamarin.Android.Build.Tasks/Properties/Resources.cs.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,4 +1006,8 @@ Pokud chcete pro sestavení z příkazového řádku použít vlastní cestu JDK
10061006
{0} - The deprecated MSBuild property name
10071007
{1} - The numeric version of .NET</comment>
10081008
</data>
1009+
<data name="XA1039" xml:space="preserve">
1010+
<value>The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.</value>
1011+
<comment>The following are literal names and should not be translated: Android Support, AndroidX, .NET.</comment>
1012+
</data>
10091013
</root>

src/Xamarin.Android.Build.Tasks/Properties/Resources.de.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,4 +1006,8 @@ Um einen benutzerdefinierten JDK-Pfad für einen Befehlszeilenbuild zu verwenden
10061006
{0} - The deprecated MSBuild property name
10071007
{1} - The numeric version of .NET</comment>
10081008
</data>
1009+
<data name="XA1039" xml:space="preserve">
1010+
<value>The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.</value>
1011+
<comment>The following are literal names and should not be translated: Android Support, AndroidX, .NET.</comment>
1012+
</data>
10091013
</root>

src/Xamarin.Android.Build.Tasks/Properties/Resources.es.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,4 +1006,8 @@ Para usar una ruta de acceso de JDK personalizada para una compilación de líne
10061006
{0} - The deprecated MSBuild property name
10071007
{1} - The numeric version of .NET</comment>
10081008
</data>
1009+
<data name="XA1039" xml:space="preserve">
1010+
<value>The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.</value>
1011+
<comment>The following are literal names and should not be translated: Android Support, AndroidX, .NET.</comment>
1012+
</data>
10091013
</root>

src/Xamarin.Android.Build.Tasks/Properties/Resources.fr.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,4 +1006,8 @@ Pour utiliser un chemin JDK personnalisé pour une build de ligne de commande, d
10061006
{0} - The deprecated MSBuild property name
10071007
{1} - The numeric version of .NET</comment>
10081008
</data>
1009+
<data name="XA1039" xml:space="preserve">
1010+
<value>The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.</value>
1011+
<comment>The following are literal names and should not be translated: Android Support, AndroidX, .NET.</comment>
1012+
</data>
10091013
</root>

src/Xamarin.Android.Build.Tasks/Properties/Resources.it.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,4 +1006,8 @@ Per usare un percorso JDK personalizzato per una compilazione della riga di coma
10061006
{0} - The deprecated MSBuild property name
10071007
{1} - The numeric version of .NET</comment>
10081008
</data>
1009+
<data name="XA1039" xml:space="preserve">
1010+
<value>The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.</value>
1011+
<comment>The following are literal names and should not be translated: Android Support, AndroidX, .NET.</comment>
1012+
</data>
10091013
</root>

src/Xamarin.Android.Build.Tasks/Properties/Resources.ja.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,4 +1007,8 @@ In this message, the term "handheld app" means "app for handheld devices."
10071007
{0} - The deprecated MSBuild property name
10081008
{1} - The numeric version of .NET</comment>
10091009
</data>
1010+
<data name="XA1039" xml:space="preserve">
1011+
<value>The Android Support libraries are not supported in .NET 9 and later, please migrate to AndroidX. See https://aka.ms/xamarin/androidx for more details.</value>
1012+
<comment>The following are literal names and should not be translated: Android Support, AndroidX, .NET.</comment>
1013+
</data>
10101014
</root>

0 commit comments

Comments
 (0)