-
Notifications
You must be signed in to change notification settings - Fork 6
chore: Release 6.1.7 #178
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
chore: Release 6.1.7 #178
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
+10.8 KB
(100%)
OneSignalSDK.DotNet.Android.Core.Binding/Jars/core-release.aar
Binary file not shown.
Binary file modified
BIN
+331 Bytes
(100%)
OneSignalSDK.DotNet.Android.Notifications.Binding/Jars/notifications-release.aar
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| { | ||
| "android": "5.8.0", | ||
| "android": "5.8.1", | ||
| "ios": "5.5.1" | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π£ Pre-existing: native core 5.8.1 (and 5.8.0 before it) declares
com.onesignal:otel:5.8.1as a runtime POM dependency, and the bundledcore-release.aardirectly referencescom.onesignal.otel.*types (e.g.OtelFactory,IOtelLogger,IOtelCrashReporter,IOtelOpenTelemetryCrash,OtelAnrDetector), but nootel-release.aaris bundled and the nuspec adds no Xamarin equivalent. Net effect on .NET/MAUI consumers is that OTel-driven features (crash uploader, ANR detector, OTel logging, the new SDK-4417features_enabledper-event payload) are silently disabled on Android 26+ βOtelLifecycleManagerandOneSignalCrashUploaderWrapperwrap startup incatch (Throwable), so theNoClassDefFoundErroris swallowed rather than crashing the app. PR #176 already mirrored other 5.8.0+ transitive deps (KotlinX.Serialization.Json,Lifecycle.*Ktx,Activity.Ktx);com.onesignal:otelwas the missed sibling. Suggest a follow-up adding aOneSignalSDK.DotNet.Android.Otel.Bindingthat wrapsotel-5.8.1.aar(present on Maven Central) and listing it in the nuspec β not a release blocker.Extended reasoning...
What is wrong
The bundled
core-release.aarcontains direct bytecode references tocom.onesignal.otel.*types but the .NET binding does not ship the correspondingotel-release.aar. Verified empirically:core-5.8.1.pom(Maven Central) declares<groupId>com.onesignal</groupId><artifactId>otel</artifactId><version>5.8.1</version><scope>runtime</scope>β same declaration exists in the 5.8.0 POM.javaponOtelAnrDetector.classextracted from the bundledcore-release.aarshows:implements com.onesignal.otel.crash.IOtelAnrDetector, fields of typecom.onesignal.otel.IOtelLogger/com.onesignal.otel.IOtelCrashReporter, constructor parametercom.onesignal.otel.IOtelOpenTelemetryCrash,invokevirtual com.onesignal.otel.OtelFactory.createCrashReporter, andinvokestatic com.onesignal.otel.crash.OtelCrashHandlerKt.isOneSignalAtFault.OneSignalCrashUploaderWrapperreturnscom.onesignal.otel.crash.OtelCrashUploaderand is registered as an auto-startedIStartableServiceinCoreModule.AndroidManifest.xmlcarriestools:overrideLibrary="com.onesignal.otel"β explicit acknowledgement thatotelis a separate AAR expected to be merged in.otel*.aaranywhere;update_native_binaries.shnever fetches it; the nuspec lists noXamarin.OpenTelemetry.*/com.onesignal.otelequivalent.otel-5.8.1.aar(63,809 bytes) is publicly available atrepo1.maven.org/maven2/com/onesignal/otel/5.8.1/.Why this is pre-existing, not a regression
Same condition existed in 6.1.5 / 6.1.6 (native 5.8.0). PR #176 explicitly audited 5.8.0+ transitive deps and added
Xamarin.KotlinX.Serialization.Json,Lifecycle.ViewModel.Ktx,Lifecycle.Runtime.Ktx, andActivity.Ktx, but did not includeotel. Whether that omission was deliberate or an oversight is unclear, but the existing inline comments (<!-- Required by FeatureFlagsJsonParser in native core 5.8.0+ -->) follow the same shape one would use for an otel binding.Real impact: silent feature disablement, not a hard crash
Addressing the refutation: a refuting verifier correctly notes there are gates that prevent the
NoClassDefFoundErrorfrom reaching users in most paths. Confirming this:OtelSdkSupport.isSupported()returnsfalsebelow API 26;OtelLifecycleManager.initializeFromCachedConfig()returns early with the log'Device SDK < 26, Otel not supported β skipping all Otel features'. So devices below API 26 are unaffected.OtelLifecycleManager.initializeFromCachedConfig/subscribeToConfigStore/startCrashHandler/startAnrDetector/startOtelLoggingandOneSignalCrashUploaderWrapper.starteach wrap their bodies incatch (Throwable)with log strings like'OneSignal: Failed to start crash handler:'.ThrowableincludesNoClassDefFoundError, so the missing classes manifest as a logged error, not a process crash.OtelConfigEvaluator.evaluate), so on most production .NET clients OTel paths never start in the first place.So the bug submitter's framing of 'runtime crash' overstates impact. The accurate impact is: on Android 26+, every OTel-backed feature is broken silently β crash uploads via
OtelCrashUploader, ANR detection viaOtelAnrDetector, OTel logging, and the new SDK-4417ossdk.features_enabledper-event payload all fail to start, are caught, and are logged. The 5.8.0->5.8.1 bump itself does not materially expand the surface area; SDK-4417 only adds an attribute to existing emission paths, all of which live inside the unbundledotelAAR.Step-by-step proof
OneSignal.initWithContextruns DI;CoreModuleregistersOneSignalCrashUploaderWrapperasIStartableService.OneSignalCrashUploaderWrapper.start(). Its return typeOtelCrashUploaderis incom.onesignal.otel.crash.com.onesignal.otel.crash.OtelCrashUploaderto verify the method signature when the method is first invoked βNoClassDefFoundError.catch (Throwable)wrapper logs'OneSignal: Failed to start crash handler:'. The app keeps running. Crash uploads are off for this user.OtelLifecycleManager.startOtelLoggingandstartAnrDetectorfollow the same path β all three OTel subsystems remain dark for the .NET consumer.How to fix
Mirror the PR #176 pattern: add a sibling binding project (e.g.
OneSignalSDK.DotNet.Android.Otel.Binding) that wrapsotel-5.8.1.aarfrom Maven Central, reference it fromOneSignalSDK.DotNet, and add the resultingotel-release.aarplus the binding DLL/PDB to the<files>block inOneSignalSDK.DotNet.nuspec. Updateupdate_native_binaries.shto fetch the otel artifact alongside the existing four. Ship in a follow-up PR β this is structural work and not appropriate to bundle into a release-bump PR.Why flagging on this release PR
Pre-existing and out of scope to fix here, but PR #176 already established that the team is paying down the 5.8.0+ transitive-dep gap, and
otelwas the missed sibling. This release PR is the natural place to log the follow-up so it doesn't slip through another version cycle.