Skip to content
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
2 changes: 1 addition & 1 deletion external/Java.Interop
5 changes: 5 additions & 0 deletions src/Xamarin.Android.Build.Tasks/Tasks/GenerateJavaStubs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ bool CreateJavaSources (IEnumerable<TypeDefinition> javaTypes, TypeDefinitionCac

bool ok = true;
foreach (var t in javaTypes) {
if (t.IsInterface) {
// Interfaces are in typemap but they shouldn't have JCW generated for them
continue;
}

using (var writer = MemoryStreamPool.Shared.CreateStreamWriter ()) {
try {
var jti = new JavaCallableWrapperGenerator (t, Log.LogWarning, cache) {
Expand Down
3 changes: 2 additions & 1 deletion src/monodroid/jni/build-info.hh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace xamarin::android::internal
{
#define STRINGIFY(_val_) #_val_
#define API_STRING(_api_) STRINGIFY(_api_)
#define VERSION_STRING(_major_, _minor_, _build_) STRINGIFY(_major_) "." STRINGIFY(_minor_) "." STRINGIFY(_build_)

class BuildInfo final
Expand Down Expand Up @@ -50,7 +51,7 @@ namespace xamarin::android::internal

static constexpr char ndk_api_level[] =
#if defined (__ANDROID_API__)
STRINGIFY(__ANDROID_API__);
API_STRING(__ANDROID_API__);
#else // def __ANDROID_API__
"";
#endif // ndef __ANDROID_API__
Expand Down