Skip to content

[Mono.Android] Bind API-S Beta 3 and enumify #6089

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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: "S", pkgRevision: "1"),

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

Expand Down
21 changes: 21 additions & 0 deletions src/Mono.Android/Android.Telephony/AccessNetworkTypes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Android.Telephony
{
#if ANDROID_31
// These constants were added in API-28 and were missed in enumification.
// Make an enum now because some new API-31 methods use them.
public enum AccessNetworkTypes
{
Unknown = 0,
Geran = 1,
Utran = 2,
Eutran = 3,
Cdma2000 = 4,
Iwlan = 5,
Ngran = 6
}
#endif
}
Loading