Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
285983a
[tests] try to use jdk 11 for device tests (#6033)
dellis1972 Jun 22, 2021
8d42584
[ci] Use macOS 11 for Android Designer tests (#6035)
pjcollins Jun 22, 2021
81f955a
[One .NET] enable C# bindings for @(AndroidLibrary) (#6056)
jonathanpeppers Jun 29, 2021
a51e889
[tests] update jfrog/bintray urls (#6086)
moljac Jul 13, 2021
13f1800
[ci] Use new 1ES Hosted win2019 Pool (#6063)
pjcollins Jul 8, 2021
ae70076
[build] delete platform-31 folder on test jobs (#6103)
jonathanpeppers Jul 20, 2021
708a49e
[xaprepare] don't install microsoft-net-runtime-android workload (#6114)
jonathanpeppers Jul 22, 2021
059b65a
[tests] we don't need to check if Clean deletes directories (#6117)
jonathanpeppers Jul 23, 2021
a5e6806
[Xamarin.Android.Build.Tasks] require JDK 11 for API-31+ (#6084)
jonathanpeppers Jul 29, 2021
d9d15c8
Bump to MSbuild.StructuredLogger 2.1.500 (#6168)
jonathanpeppers Aug 5, 2021
ff05a0d
[Mono.Android] Bind Android 12 Beta 3 and API-31 enumification (#6089)
jpobst Aug 9, 2021
4044112
[API-31 enumification] Fix some enum namespaces names (#6177)
jpobst Aug 12, 2021
aa4dc67
[One .NET] enable WebSocketTests (#6028)
jonathanpeppers Jun 17, 2021
bfc4530
[Tests] Disable Mono.Android WebSocket tests (#6197)
grendello Aug 18, 2021
1fff7b8
[Xamarin.Android.Build.Tasks] exported="true" when MauiLauncher=true …
jonathanpeppers Aug 21, 2021
fe0d5ab
[One .NET] implement $(SupportedPlatformOSVersion) for minSdkVersion …
jonathanpeppers Jul 30, 2021
9d58fad
[Mono.Android] API-31 stabilization (#6174)
jpobst Aug 23, 2021
7c2f588
[Mono.Android] Fix incorrect Bluetooth enumification (#6214)
jpobst Aug 25, 2021
c46e836
Bump to dotnet/installer/main@9c463710 6.0.100-rc.1.21369 (#6072)
dotnet-maestro[bot] Jul 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Configuration.Override.props.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
kept consistent with each other, lest Bad Things Happen™
-->
<!-- The default Android API level to bind in src/Mono.Android -->
<AndroidApiLevel>30</AndroidApiLevel>
<AndroidApiLevel>31</AndroidApiLevel>
<!-- The Xamarin.Android $(TargetFrameworkVersion) value that corresponds to $(AndroidApiLevel) -->
<AndroidFrameworkVersion>v11.0</AndroidFrameworkVersion>
<AndroidFrameworkVersion>v12.0</AndroidFrameworkVersion>
<!-- The default Android API "id" that corresponds to $(AndroidApiLevel) -->
<AndroidPlatformId>30</AndroidPlatformId>
<AndroidPlatformId>31</AndroidPlatformId>

<!--
Colon-separated list of ABIs to build the mono JIT for.
Expand Down
4 changes: 2 additions & 2 deletions Configuration.props
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<AndroidFirstPlatformId Condition="'$(AndroidFirstPlatformId)' == ''">$(AndroidFirstApiLevel)</AndroidFirstPlatformId>
<_IsRunningNuGetRestore Condition="$(RestoreTaskAssemblyFile.EndsWith('NuGet.exe', StringComparison.InvariantCultureIgnoreCase))">True</_IsRunningNuGetRestore>
<!-- *Latest* *stable* API level binding that we support; used when building src/Xamarin.Android.Build.Tasks -->
<AndroidLatestStableApiLevel Condition="'$(AndroidLatestStableApiLevel)' == ''">30</AndroidLatestStableApiLevel>
<AndroidLatestStableApiLevel Condition="'$(AndroidLatestStableApiLevel)' == ''">31</AndroidLatestStableApiLevel>
<AndroidLatestStablePlatformId Condition="'$(AndroidLatestStablePlatformId)' == ''">$(AndroidLatestStableApiLevel)</AndroidLatestStablePlatformId>
<AndroidLatestStableFrameworkVersion Condition="'$(AndroidLatestStableFrameworkVersion)'==''">v11.0</AndroidLatestStableFrameworkVersion>
<AndroidLatestStableFrameworkVersion Condition="'$(AndroidLatestStableFrameworkVersion)'==''">v12.0</AndroidLatestStableFrameworkVersion>
<!-- The API level and TargetFrameworkVersion for the default Mono.Android.dll build -->
<AndroidApiLevel Condition=" '$(AndroidApiLevel)' == '' ">$(AndroidLatestStableApiLevel)</AndroidApiLevel>
<AndroidPlatformId Condition=" '$(AndroidPlatformId)' == '' ">$(AndroidLatestStablePlatformId)</AndroidPlatformId>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* Bump last two digits of the patch version for service releases.
* Bump first digit of the patch version for feature releases (and reset the first two digits to 0)
-->
<AndroidPackVersion>30.0.100</AndroidPackVersion>
<AndroidPackVersion>31.0.100</AndroidPackVersion>
</PropertyGroup>

<!-- Common <PackageReference/> versions -->
Expand Down
2 changes: 1 addition & 1 deletion Documentation/building/windows/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ After the solution has built successfully, you can [use your
build][using-your-build] to build Xamarin.Android application and library
projects. Note that by default `Xamarin.Android.sln` only builds support for
the `$(TargetFrameworkVersion)` specified in the `$(AndroidFrameworkVersion)`
property of the [`Configuration.props`][configprops-main] file (`v11.0` when
property of the [`Configuration.props`][configprops-main] file (`v12.0` when
this guide was last updated), so you will need to ensure that your application
and library projects are configured to use that particular target framework
version.
Expand Down
8 changes: 8 additions & 0 deletions Documentation/release-notes/6084.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#### Application build and deployment

- [GitHub Pull Request #6084](https://github.com/xamarin/xamarin-android/pull/6084):
Android API 31 and a `$(TargetFrameworkVersion)` of `v11.0.99`
requires JDK 11. This can be obtained manually by installing
[Microsoft OpenJDK 11][ms-openjdk].

[ms-openjdk]: https://docs.microsoft.com/java/openjdk/download
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public sealed class CheckApiCompatibility : Task
{ "v9.0", "v8.1" },
{ "v10.0", "v9.0" },
{ "v11.0", "v10.0" },
{ "v11.0.99", "v11.0" },
{ "v12.0", "v11.0" },
};

static readonly string assemblyToValidate = "Mono.Android.dll";
Expand Down
4 changes: 2 additions & 2 deletions build-tools/api-merge/merge-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<File Path="api-28.xml.in" Level="28" />
<File Path="api-29.xml.in" Level="29" />
<File Path="api-30.xml.in" Level="30" />
<File Path="api-S.xml.in" Level="S" />
<File Path="api-31.xml.in" Level="31" />
</Inputs>
<Outputs>
<File Path="android-19\mcw\api.xml" LastLevel="19" />
Expand All @@ -34,6 +34,6 @@
<File Path="android-28\mcw\api.xml" LastLevel="28" />
<File Path="android-29\mcw\api.xml" LastLevel="29" />
<File Path="android-30\mcw\api.xml" LastLevel="30" />
<File Path="android-S\mcw\api.xml" LastLevel="S" />
<File Path="android-31\mcw\api.xml" LastLevel="31" />
</Outputs>
</Configuration>
2 changes: 1 addition & 1 deletion build-tools/api-xml-adjuster/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ API_XML_TOOL = $(BUILDBIN)/api-xml-adjuster.exe
RUNTIME = mono --debug
RUN_CLASS_PARSE = $(RUNTIME) $(CLASS_PARSE)
RUN_API_XML_TOOL = $(RUNTIME) $(API_XML_TOOL)
API_LEVELS = 10 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 S
API_LEVELS = 10 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

XML_OUTPUT_DIR = .

Expand Down
18 changes: 7 additions & 11 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ variables:
DotNet6Version: 6.0.100-preview.3.21202.5
HostedMacImage: macOS-10.15
HostedWinVS2019: Hosted Windows 2019 with VS2019
VSEngWinVS2019: Xamarin-Android-Win2019
VSEngWinVS2019: android-win-2019
# Run all tests if:
# - User who queued the job requested it (They set XA.RunAllTests to true)
# - This is the master integration branch (Pipeline defaults XA.RunAllTests to true)
Expand Down Expand Up @@ -171,7 +171,7 @@ stages:

- template: yaml-templates\clean.yaml

- template: yaml-templates\update-vs.yaml
- template: yaml-templates\delete-platform-31.yaml

- script: |
echo ##vso[task.setvariable variable=JI_JAVA_HOME]%USERPROFILE%\android-toolchain\$(XA.Jdk11.Folder)
Expand Down Expand Up @@ -293,7 +293,7 @@ stages:

- template: yaml-templates\clean.yaml

- template: yaml-templates\update-vs.yaml
- template: yaml-templates\delete-platform-31.yaml

- script: |
echo ##vso[task.setvariable variable=JI_JAVA_HOME]%USERPROFILE%\android-toolchain\$(XA.Jdk11.Folder)
Expand Down Expand Up @@ -927,7 +927,6 @@ stages:
job_name: mac_msbuild_tests_1
job_suffix: Legacy
nunit_categories: '&& cat != SmokeTests'
jdkTestFolder: $(XA.Jdk8.Folder)

- template: yaml-templates\run-msbuild-mac-tests.yaml
parameters:
Expand All @@ -936,15 +935,13 @@ stages:
job_suffix: Legacy
nunit_categories: '&& cat != SmokeTests'
run_extra_tests: true
jdkTestFolder: $(XA.Jdk8.Folder)

- template: yaml-templates\run-msbuild-mac-tests.yaml
parameters:
node_id: 3
job_name: mac_msbuild_tests_3
job_suffix: Legacy
nunit_categories: '&& cat != SmokeTests'
jdkTestFolder: $(XA.Jdk8.Folder)

# Xamarin.Android (Test MSBuild Legacy - Windows)
- template: yaml-templates\run-msbuild-win-tests.yaml
Expand All @@ -953,7 +950,6 @@ stages:
job_name: win_msbuild_tests_1
job_suffix: Legacy
nunit_categories: '&& cat != SmokeTests'
jdkTestFolder: $(XA.Jdk8.Folder)

- template: yaml-templates\run-msbuild-win-tests.yaml
parameters:
Expand All @@ -962,15 +958,13 @@ stages:
job_suffix: Legacy
nunit_categories: '&& cat != SmokeTests'
run_extra_tests: true
jdkTestFolder: $(XA.Jdk8.Folder)

- template: yaml-templates\run-msbuild-win-tests.yaml
parameters:
node_id: 3
job_name: win_msbuild_tests_3
job_suffix: Legacy
nunit_categories: '&& cat != SmokeTests'
jdkTestFolder: $(XA.Jdk8.Folder)

- stage: msbuild_dotnet
displayName: One .NET Tests
Expand Down Expand Up @@ -1037,7 +1031,7 @@ stages:
parameters:
job_name: mac_msbuilddevice_tests
job_suffix: Legacy
jdkTestFolder: $(XA.Jdk8.Folder)
jdkTestFolder: $(XA.Jdk11.Folder)

# Check - "Xamarin.Android (MSBuild Emulator Tests macOS - One .NET)"
- template: yaml-templates/run-msbuild-device-tests.yaml
Expand All @@ -1056,7 +1050,7 @@ stages:
- job: designer_integration_mac
displayName: macOS
pool:
vmImage: $(HostedMacImage)
vmImage: internal-macos-11
timeoutInMinutes: 120
cancelTimeoutInMinutes: 5
workspace:
Expand Down Expand Up @@ -1133,7 +1127,9 @@ stages:
targetPath: $(Build.ArtifactStagingDirectory)/designer-binlogs

# Check - "Xamarin.Android (Designer Tests Windows)"
# TODO: Enable once Windows test issues are fixed.
- job: designer_integration_win
condition: false
displayName: Windows
pool: $(HostedWinVS2019)
timeoutInMinutes: 120
Expand Down
10 changes: 10 additions & 0 deletions build-tools/automation/yaml-templates/delete-platform-31.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# NOTE: temporary workaround to delete platform-31
steps:

- script: rm -rfv "$HOME/Library/Android/sdk/platforms/android-31"
displayName: delete API 31
condition: and(succeeded(), eq(variables['agent.os'], 'Darwin'))

- script: if exist "%USERPROFILE%\android-toolchain\sdk\platforms\android-31" rmdir /s /q "%USERPROFILE%\android-toolchain\sdk\platforms\android-31"
displayName: delete API 31
condition: and(succeeded(), eq(variables['agent.os'], 'Windows_NT'))
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:

- template: setup-test-environment.yaml
parameters:
updateVS: true
jdkTestFolder: ${{ parameters.jdkTestFolder }}

- task: DownloadPipelineArtifact@1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ steps:
parameters:
provisionExtraArgs: ${{ parameters.provisionExtraArgs }}

- template: delete-platform-31.yaml

- script: |
echo "##vso[task.setvariable variable=JI_JAVA_HOME]$HOME/Library/Android/${{ parameters.jdkTestFolder }}"
echo "##vso[task.setvariable variable=DOTNET_TOOL_PATH]$HOME/Library/Android/dotnet/dotnet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BuildAndroidPlatforms
new AndroidPlatform (apiName: "Pie", apiLevel: 28, platformID: "28", include: "v9.0", framework: "v9.0"),
new AndroidPlatform (apiName: "Q", apiLevel: 29, platformID: "29", include: "v10.0", framework: "v10.0"),
new AndroidPlatform (apiName: "R", apiLevel: 30, platformID: "30", include: "v11.0", framework: "v11.0"),
new AndroidPlatform (apiName: "S", apiLevel: 31, platformID: "S", include: "v11.0.99", framework: "v11.0.99", stable: false),
new AndroidPlatform (apiName: "S", apiLevel: 31, platformID: "31", include: "v12.0", framework: "v12.0"),
};

// These are here until we can drop "legacy" targets and use only .NET6+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public AndroidToolchain ()
new AndroidPlatformComponent ("platform-28_r04", apiLevel: "28", pkgRevision: "4"),
new AndroidPlatformComponent ("platform-29_r01", apiLevel: "29", pkgRevision: "1"),
new AndroidPlatformComponent ("platform-30_r01", apiLevel: "30", pkgRevision: "1"),
new AndroidPlatformComponent ("platform-S_r05", apiLevel: "S", pkgRevision: "5"),
new AndroidPlatformComponent ("platform-31_r01", apiLevel: "31", pkgRevision: "1"),

new AndroidToolchainComponent ("sources-30_r01", destDir: Path.Combine ("platforms", $"android-30", "src"), pkgRevision: "1", dependencyType: AndroidToolchainComponentType.BuildDependency),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ protected override async Task<bool> Execute (Context context)
Utilities.CopyFileToDir (file, destination);
}

// Install the microsoft-net-runtime-android workload
if (!Utilities.RunCommand (dotnetTool, BuildPaths.XamarinAndroidSourceRoot, ignoreEmptyArguments: false, new [] { "workload", "install", "microsoft-net-runtime-android", "--skip-manifest-update", "--verbosity", "diag" })) {
Log.ErrorLine ($"dotnet workload install failed.");
return false;
}

return true;
}

Expand Down
12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.100-preview.6.21306.2">
<Dependency Name="Microsoft.Dotnet.Sdk.Internal" Version="6.0.100-rc.1.21369.3">
<Uri>https://github.com/dotnet/installer</Uri>
<Sha>c83bef2f34e5302bfc651d12df2f8bbcd2a981dc</Sha>
<Sha>9c463710a333a48301a211fbd7b8ca3b15d4f1f7</Sha>
</Dependency>
<Dependency Name="Microsoft.NET.ILLink.Tasks" Version="6.0.100-preview.6.21304.2" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal">
<Dependency Name="Microsoft.NET.ILLink.Tasks" Version="6.0.100-preview.6.21366.2" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal">
<Uri>https://github.com/mono/linker</Uri>
<Sha>21df7dbbf881507c98026c1b9e7532303b3c0a06</Sha>
<Sha>460dd6ddb329a5588d9e4399f4257ce28dfadaca</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.App.Ref" Version="6.0.0-preview.6.21306.1" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal">
<Dependency Name="Microsoft.NETCore.App.Ref" Version="6.0.0-rc.1.21368.1" CoherentParentDependency="Microsoft.Dotnet.Sdk.Internal">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>5b8e1780ad7740e632c285bc2af13a8d0b20c5a9</Sha>
<Sha>96ce6b35359b3c159ef3e685dd67cf30bb46769b</Sha>
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
Expand Down
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project>
<!--Package versions-->
<PropertyGroup>
<MicrosoftDotnetSdkInternalPackageVersion>6.0.100-preview.6.21306.2</MicrosoftDotnetSdkInternalPackageVersion>
<MicrosoftNETILLinkTasksPackageVersion>6.0.100-preview.6.21304.2</MicrosoftNETILLinkTasksPackageVersion>
<MicrosoftDotnetSdkInternalPackageVersion>6.0.100-rc.1.21369.3</MicrosoftDotnetSdkInternalPackageVersion>
<MicrosoftNETILLinkTasksPackageVersion>6.0.100-preview.6.21366.2</MicrosoftNETILLinkTasksPackageVersion>
<MicrosoftDotNetApiCompatPackageVersion>5.0.0-beta.20181.7</MicrosoftDotNetApiCompatPackageVersion>
<MicrosoftDotNetBuildTasksFeedPackageVersion>6.0.0-beta.21212.6</MicrosoftDotNetBuildTasksFeedPackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>6.0.0-preview.6.21306.1</MicrosoftNETCoreAppRefPackageVersion>
<MicrosoftNETCoreAppRefPackageVersion>6.0.0-rc.1.21368.1</MicrosoftNETCoreAppRefPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Trim all characters after first `-` or `+` is encountered. -->
Expand Down
2 changes: 1 addition & 1 deletion external/Java.Interop
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,14 @@
"primaryOutputs": [
{ "path": "AndroidBinding1.csproj" }
],
"symbols": {
"supportedOSVersion": {
"type": "parameter",
"description": "Overrides $(SupportedOSPlatformVersion) in the project",
"datatype": "string",
"replaces": "SUPPORTED_OS_PLATFORM_VERSION",
"defaultValue": "21"
}
},
"defaultName": "AndroidBinding1"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-android</TargetFramework>
<SupportedOSPlatformVersion>SUPPORTED_OS_PLATFORM_VERSION</SupportedOSPlatformVersion>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">AndroidBinding1</RootNamespace>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"description": "Overrides the package name in the AndroidManifest.xml",
"datatype": "string",
"replaces": "com.companyname.AndroidApp1"
},
"supportedOSVersion": {
"type": "parameter",
"description": "Overrides $(SupportedOSPlatformVersion) in the project",
"datatype": "string",
"replaces": "SUPPORTED_OS_PLATFORM_VERSION",
"defaultValue": "21"
}
},
"defaultName": "AndroidApp1"
Expand Down
1 change: 1 addition & 0 deletions src/Microsoft.Android.Templates/android/AndroidApp1.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-android</TargetFramework>
<SupportedOSPlatformVersion>SUPPORTED_OS_PLATFORM_VERSION</SupportedOSPlatformVersion>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">AndroidApp1</RootNamespace>
<OutputType>Exe</OutputType>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
android:versionCode="1"
android:versionName="1.0"
package="com.companyname.AndroidApp1">
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true">
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,14 @@
"primaryOutputs": [
{ "path": "AndroidLib1.csproj" }
],
"symbols": {
"supportedOSVersion": {
"type": "parameter",
"description": "Overrides $(SupportedOSPlatformVersion) in the project",
"datatype": "string",
"replaces": "SUPPORTED_OS_PLATFORM_VERSION",
"defaultValue": "21"
}
},
"defaultName": "AndroidLib1"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-android</TargetFramework>
<SupportedOSPlatformVersion>SUPPORTED_OS_PLATFORM_VERSION</SupportedOSPlatformVersion>
<RootNamespace Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">AndroidLib1</RootNamespace>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#if ANDROID_26

namespace Android.Bluetooth.LE
{
public sealed partial class AdvertisingSetParameters
{
public sealed partial class Builder
{
// These methods were obsoleted as a warning in API-31
[global::System.Obsolete ("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")]
[global::System.Runtime.Versioning.SupportedOSPlatformAttribute ("android26.0")]
public unsafe Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetPrimaryPhy ([global::Android.Runtime.GeneratedEnum] Android.Bluetooth.LE.ScanSettingsPhy primaryPhy)
=> SetPrimaryPhy ((Android.Bluetooth.BluetoothPhy) primaryPhy);

[global::System.Obsolete ("This method has the wrong enumeration. Use the version that takes an 'Android.Bluetooth.BluetoothPhy' instead.")]
[global::System.Runtime.Versioning.SupportedOSPlatformAttribute ("android26.0")]
public unsafe Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetSecondaryPhy ([global::Android.Runtime.GeneratedEnum] Android.Bluetooth.LE.ScanSettingsPhy secondaryPhy)
=> SetSecondaryPhy ((Android.Bluetooth.BluetoothPhy) secondaryPhy);
}
}
}

#endif

Loading