-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tune-cancellation
- Loading branch information
Showing
225 changed files
with
1,921 additions
and
1,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: Xamarin.Android warning XA4231 | ||
description: XA4231 warning code | ||
ms.date: 04/23/2020 | ||
--- | ||
# Xamarin.Android warning XA4231 | ||
|
||
## Example messages | ||
|
||
``` | ||
warning XA4231: The Android class parser value 'jar2xml' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'class-parse'. | ||
``` | ||
|
||
## Issue | ||
|
||
The Android class parser `jar2xml` has been deprecated. | ||
|
||
## Solution | ||
|
||
To resolve this warning, update the **Android Class Parser** setting in the Visual | ||
Studio project property pages or the **.jar file parser** setting in Visual | ||
Studio for Mac to **class-parse**. This corresponds to the `class-parse` value | ||
for the `AndroidClassParser` MSBuild property in the _.csproj_ file: | ||
|
||
```xml | ||
<PropertyGroup> | ||
<AndroidClassParser>class-parse</AndroidClassParser> | ||
</PropertyGroup> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: Xamarin.Android warning XA4232 | ||
description: XA4232 warning code | ||
ms.date: 04/23/2020 | ||
--- | ||
# Xamarin.Android warning XA4232 | ||
|
||
## Example messages | ||
|
||
``` | ||
warning XA4232: The Android code generation target 'XamarinAndroid' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'XAJavaInterop1'. | ||
``` | ||
|
||
## Issue | ||
|
||
The Android code generation target `XamarinAndroid` has been deprecated. | ||
|
||
## Solution | ||
|
||
To resolve this warning, update the **Android Codegen target** setting in the | ||
Visual Studio project property pages or the **Code generation target** setting | ||
in Visual Studio for Mac to **XAJavaInterop1**. This corresponds to the | ||
`XAJavaInterop1` value for the `AndroidCodegenTarget` MSBuild property in the | ||
_.csproj_ file: | ||
|
||
```xml | ||
<PropertyGroup> | ||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget> | ||
</PropertyGroup> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#### Mono.Android.dll Nullable Reference Type Annotations | ||
|
||
`Mono.Android.dll` assemblies of all platform levels are now annotated with | ||
C#8's nullable reference types (NRT). Users who opt their applications into | ||
this feature with `<Nullable>enable</Nullable>` will receive warnings if their | ||
code does not properly account for possible `null` values. | ||
|
||
General documentation for the NRT feature is available here: | ||
https://docs.microsoft.com/en-us/dotnet/csharp/nullable-references. | ||
|
||
Note: | ||
The majority of `Mono.Android.dll` is automatically generated from the Android | ||
Java source, including these new annotations. As such, we will not be manually | ||
fixing places where the Android source code is not annotated correctly. | ||
|
||
If there is an error regarding nullability for any of the Mono.Android APIs | ||
that Xamarin adds to the Android source (such as `JavaList` or `InputStreamAdapter`), | ||
please file a bug so we can properly annotate our additions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
### Bindings projects XA4231 warning for deprecated jar2xml parser | ||
|
||
Any bindings project that has the `AndroidClassParser` MSBuild property set to | ||
the old `jar2xml` parser or any other unrecognized value will now get a XA4231 | ||
build warning: | ||
|
||
``` | ||
warning XA4231: The Android class parser 'jar2xml' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'class-parse' instead. | ||
``` | ||
|
||
To resolve this warning, update the **Android Class Parser** setting in the Visual | ||
Studio project property pages or the **.jar file parser** setting in Visual | ||
Studio for Mac to **class-parse**. This corresponds to the `class-parse` value | ||
for the `AndroidClassParser` MSBuild property in the _.csproj_ file: | ||
|
||
```xml | ||
<PropertyGroup> | ||
<AndroidClassParser>class-parse</AndroidClassParser> | ||
</PropertyGroup> | ||
``` | ||
|
||
### Bindings projects XA4232 warning for deprecated XamarinAndroid code generation target | ||
|
||
Any bindings project that has the `AndroidCodegenTarget` MSBuild property set to | ||
the old `XamarinAndroid` code generation target or any other unrecognized value | ||
will now get a XA4232 build warning: | ||
|
||
``` | ||
warning XA4232: The Android code generation target value 'XamarinAndroid' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'XAJavaInterop1'. | ||
``` | ||
|
||
To resolve this warning, update the **Android Codegen target** setting in the | ||
Visual Studio project property pages or the **Code generation target** setting | ||
in Visual Studio for Mac to **XAJavaInterop1**. This corresponds to the | ||
`XAJavaInterop1` value for the `AndroidCodegenTarget` MSBuild property in the | ||
_.csproj_ file: | ||
|
||
```xml | ||
<PropertyGroup> | ||
<AndroidCodegenTarget>XAJavaInterop1</AndroidCodegenTarget> | ||
</PropertyGroup> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### Tidier IntelliSense suggestions for Java.Lang.Object subclasses | ||
|
||
`Java.Lang.Object` contains several properties and methods that are | ||
required to be `public` to support bindings, but are not intended | ||
to be called by users. Use `[EditorBrowser]` to hide them from | ||
IntelliSense, making it easier to find useful members. | ||
|
||
[IntelliSense cleanup)[images/4583.png] | ||
|
||
### Issues fixed | ||
|
||
#### IDE compatibility | ||
|
||
* [GitHub 4582](https://github.com/xamarin/xamarin-android/issues/4582): | ||
Some `Java.Lang.Object` properties and methods like `Handle` and | ||
`PeerReference` appeared in IntelliSense suggestions even though they were | ||
primarily intended for use only in generated code. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.