Skip to content

Commit 2934099

Browse files
committed
Merge branch 'main' into dev/grendel/perfetto-integration
* main: Localized file check-in by OneLocBuild Task (#8974) Bump to xamarin/xamarin-android-binutils/L_18.1.6-8.0.0@97b574b (#8969) [Mono.Android] Bind API-VanillaIceCream Beta 2 (#8948) [ci] Update OneLocBuildToken (#8973) [s360] Ignore irrelevant lz4+Python warnings (#8962) LEGO: Merge pull request 8971 Localized file check-in by OneLocBuild Task (#8963) [ci] Use long version for maestro publishing (#8964) Localized file check-in by OneLocBuild Task (#8957) LEGO: Merge pull request 8958
2 parents 59290b3 + efdbc7a commit 2934099

File tree

102 files changed

+3632
-513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+3632
-513
lines changed

.lgtm.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
queries:
22
- exclude: cs/campaign/constantine
3+
paths:
4+
exclude:
5+
# we don't ship lz4 tests
6+
- external/lz4/tests

Documentation/workflow/HowToAddNewApiLevel.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# HowTo: Add a new Android API Level
22

3-
## Developer Preview
3+
## Unstable Previews
44

5-
The first developer preview generally ships in late February or early March. At this early
5+
The first unstable preview generally ships in late February or early March. At this early
66
stage for the APIs, we simply add literal bindings for them. We do not spend resources on
77
the more manual parts like enumification that will likely change as the APIs mature.
88

@@ -13,22 +13,32 @@ the more manual parts like enumification that will likely change as the APIs mat
1313
- Add new level to `/build-tools/xaprepare/xaprepare/ConfigAndData/Dependencies/AndroidToolchain.cs`:
1414
- `new AndroidPlatformComponent ("platform-S_r01", apiLevel: "S", pkgRevision: "1"),`
1515

16-
At this point, you can run `Xamarin.Android.sln /t:Prepare` using your usual mechanism, and
16+
At this point, you can run `Xamarin.Android.sln -t:Prepare` using your usual mechanism, and
1717
the new platform will be downloaded to your local Android SDK.
1818

19+
### Build Xamarin.Android
20+
21+
Build `Xamarin.Android.sln` using your usual mechanism. This will not use the new platform yet,
22+
but will build the tools like `param-name-importer` and `class-parse` that will be needed
23+
in the next steps.
24+
1925
### Generate `params.txt` File
2026

21-
- In `/external/Java.Interop/tools/param-name-importer`:
22-
- Run: `dotnet run -source-stub-zip C:/Users/USERNAME/android-toolchain/platforms/android-35/android-stubs-src.jar -output-text api-35.params.txt -output-xml api-35.params.xml -verbose -framework-only`
23-
- Copy the produced `api-X.params.txt` file to `/src/Mono.Android/Profiles/`
27+
Build the `params.txt` file for the desired level:
28+
29+
- Unstable: `dotnet-local.cmd build build-tools/create-android-api -t:GenerateParamsFile -p:ParamApiLevel=VanillaIceCream`
30+
- Stable: `dotnet-local.cmd build build-tools/create-android-api -t:GenerateParamsFile -p:ParamApiLevel=35`
31+
32+
This will create a `api-XX.params.txt` file in `/src/Mono.Android/Profiles/` that needs to be committed.
2433

2534
### Generate `api.xml` File
2635

2736
- Run `xaprepare android-sdk-platforms=all` to download all Android SDK platforms
2837
- Add level to `/build-tools/api-merge/merge-configuration.xml` to create `api-S.xml.class-parse`
2938
- Run the following command to create a merged `api.xml`:
30-
- `dotnet-local.cmd build build-tools\create-android-api -t:GenerateApiDescription`
31-
- Copy the `bin\BuildDebug\api\api-xx.xml` file to `src\Mono.Android\Profiles`
39+
- `dotnet-local.cmd build build-tools/create-android-api -t:GenerateApiDescription`
40+
41+
This will create a `api-XX.xml` file in `/src/Mono.Android/Profiles/` that needs to be committed.
3242

3343
### Other Infrastructure Changes
3444

Localize/loc/cs/src/Microsoft.Android.Templates/android-bindinglib/.template.config/localize/templatestrings.json.lcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
2525
<Val><![CDATA[Projekt pro vytvoření knihovny tříd androidu .NET, která se váže na nativní knihovnu Java]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android class library that binds to a native Java library]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

Localize/loc/cs/src/Microsoft.Android.Templates/android-wear/.template.config/localize/templatestrings.json.lcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
<Str Cat="Text">
2323
<Val><![CDATA[A project for creating a .NET for Android Wear application]]></Val>
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
25-
<Val><![CDATA[Projekt pro vytvoření aplikace .NET for Android Wear]]></Val>
25+
<Val><![CDATA[Projekt pro vytvoření aplikace .NET Android Wear]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android Wear application]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

Localize/loc/cs/src/Microsoft.Android.Templates/android/.template.config/localize/templatestrings.json.lcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
2525
<Val><![CDATA[Projekt pro vytvoření aplikace .NET pro Android]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android application]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

Localize/loc/cs/src/Microsoft.Android.Templates/androidlib/.template.config/localize/templatestrings.json.lcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
2525
<Val><![CDATA[Projekt pro vytvoření knihovny tříd .NET pro Android]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android class library]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

Localize/loc/cs/src/Xamarin.Android.Build.Tasks/Properties/Resources.resx.lcl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@
652652
<Val><![CDATA[Ignoruje se konfigurační soubor {0}. Konfigurační soubory .NET se v projektech .NET pro Android, které cílí na .NET 6 nebo vyšší, nepodporují.]]></Val>
653653
</Tgt>
654654
<Prev Cat="Text">
655-
<Val><![CDATA[Ignoring configuration file '{0}'. .NET configuration files are not supported in Xamarin.Android projects that target .NET 6 or higher.]]></Val>
655+
<Val><![CDATA[Ignoring configuration file '{0}'. .NET configuration files are not supported in .NET Android projects that target .NET 6 or higher.]]></Val>
656656
</Prev>
657657
</Str>
658658
<Disp Icon="Str" />
@@ -679,10 +679,10 @@
679679
<Str Cat="Text">
680680
<Val><![CDATA[Using AAPT is not supported in .NET for Android projects that target .NET 6 or higher. Please enable 'Use incremental Android packaging system (aapt2)' in the Visual Studio project property pages or edit the project file in a text editor and set the 'AndroidUseAapt2' MSBuild property to 'true'.]]></Val>
681681
<Tgt Cat="Text" Stat="Loc" Orig="New">
682-
<Val><![CDATA[Používání AAPT se v projektech .NET pro Android, které cílí na .NET 6 nebo vyšší, nepodporuje. Povolte prosím možnost Použít systém přírůstkového balení pro Android (aapt2) na stránce vlastností projektu sady Visual Studio, nebo upravte soubor projektu v textovém editoru a nastavte vlastnost MSBuildu AndroidUseAapt2 na true.]]></Val>
682+
<Val><![CDATA[Používání AAPT se v projektech .NET pro Android, které cílí na .NET 6 nebo vyšší, nepodporuje. Povolte prosím možnost Použít systém přírůstkového balení pro Android (aapt2) na stránce vlastností projektu sady Visual Studio, nebo upravte soubor projektu v textovém editoru a nastavte vlastnost MSBuild AndroidUseAapt2 na true.]]></Val>
683683
</Tgt>
684684
<Prev Cat="Text">
685-
<Val><![CDATA[Using AAPT is not supported in Xamarin.Android projects that target .NET 6 or higher. Please enable 'Use incremental Android packaging system (aapt2)' in the Visual Studio project property pages or edit the project file in a text editor and set the 'AndroidUseAapt2' MSBuild property to 'true'.]]></Val>
685+
<Val><![CDATA[Using AAPT is not supported in .NET Android projects that target .NET 6 or higher. Please enable 'Use incremental Android packaging system (aapt2)' in the Visual Studio project property pages or edit the project file in a text editor and set the 'AndroidUseAapt2' MSBuild property to 'true'.]]></Val>
686686
</Prev>
687687
</Str>
688688
<Disp Icon="Str" />
@@ -814,7 +814,7 @@
814814
<Val><![CDATA[Použití funkce AppDomain.CreateDomain() zjištěné v sestavení: {0}. .NET 6 a vyšší bude podporovat jenom jednu doménu AppDomain, takže toto rozhraní API po vydání .NET 6 už v .NET pro Android nebude dostupné.]]></Val>
815815
</Tgt>
816816
<Prev Cat="Text">
817-
<Val><![CDATA[Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 6 and higher will only support a single AppDomain, so this API will no longer be available in Xamarin.Android once .NET 6 is released.]]></Val>
817+
<Val><![CDATA[Use of AppDomain.CreateDomain() detected in assembly: {0}. .NET 6 and higher will only support a single AppDomain, so this API will no longer be available in .NET Android once .NET 6 is released.]]></Val>
818818
</Prev>
819819
</Str>
820820
<Disp Icon="Str" />
@@ -1168,7 +1168,7 @@
11681168
<Val><![CDATA[Hodnota analyzátoru tříd Androidu {0} je zastaralá a v budoucí verzi .NET pro Android se odebere. Aktualizujte vlastnosti projektu tak, aby používaly class-parse.]]></Val>
11691169
</Tgt>
11701170
<Prev Cat="Text">
1171-
<Val><![CDATA[The Android class parser value '{0}' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'class-parse'.]]></Val>
1171+
<Val><![CDATA[The Android class parser value '{0}' is deprecated and will be removed in a future version of .NET Android. Update the project properties to use 'class-parse'.]]></Val>
11721172
</Prev>
11731173
</Str>
11741174
<Disp Icon="Str" />
@@ -1180,7 +1180,7 @@
11801180
<Val><![CDATA[Cíl generování kódu pro Androidu {0} je zastaralý a v budoucí verzi .NET pro Android se odebere. Aktualizujte vlastnosti projektu tak, aby používaly XAJavaInterop1.]]></Val>
11811181
</Tgt>
11821182
<Prev Cat="Text">
1183-
<Val><![CDATA[The Android code generation target '{0}' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'XAJavaInterop1'.]]></Val>
1183+
<Val><![CDATA[The Android code generation target '{0}' is deprecated and will be removed in a future version of .NET Android. Update the project properties to use 'XAJavaInterop1'.]]></Val>
11841184
</Prev>
11851185
</Str>
11861186
<Disp Icon="Str" />
@@ -1468,7 +1468,7 @@
14681468
<Val><![CDATA[Odkazování na projekt aplikace pro Android Wear {0} z projektu aplikace pro Android je zastaralé a v budoucí verzi .NET pro Android se už nebude podporovat. Odeberte odkaz na projekt aplikace pro Android Wear z projektu aplikace pro Android a distribuujte aplikaci pro Wear jako samostatnou aplikaci.]]></Val>
14691469
</Tgt>
14701470
<Prev Cat="Text">
1471-
<Val><![CDATA[Referencing the Android Wear application project '{0}' from an Android application project is deprecated and will no longer be supported in a future version of Xamarin.Android. Remove the Android Wear application project reference from the Android application project and distribute the Wear application as a standalone application instead.]]></Val>
1471+
<Val><![CDATA[Referencing the Android Wear application project '{0}' from an Android application project is deprecated and will no longer be supported in a future version of .NET Android. Remove the Android Wear application project reference from the Android application project and distribute the Wear application as a standalone application instead.]]></Val>
14721472
</Prev>
14731473
</Str>
14741474
<Disp Icon="Str" />
@@ -1609,7 +1609,7 @@
16091609
<Val><![CDATA[Buď tuto komponentu nainstalujte ve Správci sady Android SDK (Nástroje > Android > Správce sady Android SDK…), nebo změňte projekt .NET pro Android tak, aby cílil na nainstalovanou verzi rozhraní API.]]></Val>
16101610
</Tgt>
16111611
<Prev Cat="Text">
1612-
<Val><![CDATA[Tools > Android > Android SDK Manager...]]></Val>
1612+
<Val><![CDATA[Either install it in the Android SDK Manager (Tools > Android > Android SDK Manager...), or change the .NET Android project to target an API version that is installed.]]></Val>
16131613
</Prev>
16141614
</Str>
16151615
<Disp Icon="Str" />

Localize/loc/de/src/Microsoft.Android.Templates/android-bindinglib/.template.config/localize/templatestrings.json.lcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
<Str Cat="Text">
2323
<Val><![CDATA[A project for creating a .NET for Android class library that binds to a native Java library]]></Val>
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
25-
<Val><![CDATA[Ein Projekt zum Erstellen einer .NET for Android-Klassenbibliothek, die an eine native Java-Bibliothek gebunden wird]]></Val>
25+
<Val><![CDATA[Ein Projekt zum Erstellen einer .NET für Android-Klassenbibliothek, die an eine native Java-Bibliothek gebunden wird]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android class library that binds to a native Java library]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

Localize/loc/de/src/Microsoft.Android.Templates/android-wear/.template.config/localize/templatestrings.json.lcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
<Str Cat="Text">
2323
<Val><![CDATA[A project for creating a .NET for Android Wear application]]></Val>
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
25-
<Val><![CDATA[Ein Projekt zum Erstellen einer .NET for Android Wear-Anwendung]]></Val>
25+
<Val><![CDATA[Ein Projekt zum Erstellen einer .NET für Android Wear-Anwendung]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android Wear application]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

Localize/loc/de/src/Microsoft.Android.Templates/android/.template.config/localize/templatestrings.json.lcl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
<Str Cat="Text">
2323
<Val><![CDATA[A project for creating a .NET for Android application]]></Val>
2424
<Tgt Cat="Text" Stat="Loc" Orig="New">
25-
<Val><![CDATA[Ein Projekt zum Erstellen einer .NET for Android-Anwendung]]></Val>
25+
<Val><![CDATA[Ein Projekt zum Erstellen einer .NET für Android-Anwendung]]></Val>
2626
</Tgt>
27+
<Prev Cat="Text">
28+
<Val><![CDATA[A project for creating a .NET Android application]]></Val>
29+
</Prev>
2730
</Str>
2831
<Disp Icon="Str" />
2932
</Item>

0 commit comments

Comments
 (0)