Skip to content

Commit ebaeb6b

Browse files
ignore Android binding warnings (#4423)
* Fix Android binding warnings - treat as errors but suppress expected warnings - Enable TreatWarningsAsErrors for Android bindings project - Suppress expected/unavoidable Android binding warnings (BG8xxx codes) - These warnings are caused by Java interface circular dependencies in Sentry SDK - Warnings are documented with explanations for each type - New warning types will now break the build for review - Analyzed 1528 warnings and confirmed they're due to binding limitations - Solution preserves existing Metadata.xml strategic type removals --------- Co-authored-by: Stefan Pölz <[email protected]>
1 parent 3d2b22a commit ebaeb6b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Sentry.Bindings.Android/Sentry.Bindings.Android.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@
66
<!-- This gets resolved by the DownloadSentryAndroidSdk target -->
77
<SentryNativeNdkVersion></SentryNativeNdkVersion>
88
<Description>.NET Bindings for the Sentry Android SDK</Description>
9+
10+
<!-- Android binding warnings - these are largely unavoidable due to Java interface circular dependencies -->
11+
<!-- Only suppress warnings that are confirmed to be expected/unavoidable -->
12+
<!-- BG8801: Invalid parameter types - caused by circular interface dependencies in Sentry Java SDK -->
13+
<!-- BG8C01: Invalid base interface - interfaces reference types removed by Metadata.xml -->
14+
<!-- BG8701: Invalid return types - return types reference unresolvable interfaces -->
15+
<!-- BG8800/BG8700: Unknown/Invalid types - types intentionally removed by Metadata.xml -->
16+
<!-- BG8605/BG8606: Missing Java types - Compose UI types not available in our binding context -->
17+
<!-- BG8604: Missing ancestor types - nested types whose parents are removed -->
18+
<!-- BG8502/BG8503: Interface invalidation - cascade effect from other binding issues -->
19+
<!-- BG8401/BG8400: Field/property conflicts - resolved individually in Metadata.xml where needed -->
20+
<!-- BG8C00: Base interface not found -->
21+
<NoWarn>$(NoWarn);BG8801;BG8C01;BG8701;BG8800;BG8700;BG8605;BG8606;BG8604;BG8502;BG8401;BG8400;BG8503;BG8C00</NoWarn>
922
</PropertyGroup>
1023

1124
<!-- Use a separate readme, and don't add the changelog to the nuget. -->

0 commit comments

Comments
 (0)