The on-device version of https://github.com/dotnet/runtime/pull/37585
Co-authored-by: Premek Vysoky <premek.vysoky@microsoft.com>
Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
# Android
- ${{ if in(parameters.platform, 'Android_x86', 'Android_x64') }}:
- Ubuntu.1804.Amd64.Android.Open
+ - ${{ if in(parameters.platform, 'Android_arm', 'Android_arm64') }}:
+ - Windows.10.Amd64.Android.Open
# iOS x64/x86
- ${{ if in(parameters.platform, 'iOS_x64', 'iOS_x86') }}:
runtimeFlavor: mono
platforms:
- Android_x86
- - Android_arm64
- tvOS_x64
- iOS_arm64
- iOS_x86
buildConfig: Release
runtimeFlavor: mono
platforms:
+ - Android_arm64
- Android_x64
- iOS_x64
variables:
public static bool IsNotFedoraOrRedHatFamily => !IsFedora && !IsRedHatFamily;
public static bool IsNotDebian10 => !IsDebian10;
+ // Android
+ public static bool IsAndroid => RuntimeInformation.IsOSPlatform(OSPlatform.Create("Android"));
+
public static bool IsSuperUser => IsBrowser || IsWindows ? false : libc.geteuid() == 0;
public static Version OpenSslVersion => !IsOSXLike && !IsWindows ?
}
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsSubsystemForLinux))] // https://github.com/dotnet/runtime/issues/18487
- [PlatformSpecific(TestPlatforms.AnyUnix)]
+ [PlatformSpecific(TestPlatforms.AnyUnix & ~TestPlatforms.Android)]
public void PropertiesOfValidDrive()
{
var root = new DriveInfo("/");