Skip to content

feat(logger): [SDK-4939] adopt shared-module legacy purge (bump KMP submodule) - #2693

Closed
abdulraqeeb33 wants to merge 1 commit into
ar/sdk-4939from
ar/sdk-4939-kmp-integration
Closed

feat(logger): [SDK-4939] adopt shared-module legacy purge (bump KMP submodule)#2693
abdulraqeeb33 wants to merge 1 commit into
ar/sdk-4939from
ar/sdk-4939-kmp-integration

Conversation

@abdulraqeeb33

Copy link
Copy Markdown
Contributor

Summary

Linear: SDK-4939

Follow-up that moves the legacy crash-file purge from host-side into the shared KMP module, so it runs for every host (iOS included), not just Android.

  • Bumps OneSignal-KMP-SDK to the commit from OneSignal-KMP-SDK#8 (adds ILogFileStore.deleteUnrecognizedEntries() to the contract + a post-upload purge in LogCrashUploader).
  • FileLogStore.deleteUnrecognizedEntries() now overrides the contract method, so it's invoked both by the shared uploader's sweep and by the host belt-and-suspenders call.

Stacking / merge order

Stacked on #2691 (base branch = ar/sdk-4939). Merge order:

  1. OneSignal-KMP-SDK#8
  2. #2691
  3. this PR — I'll rebase onto main and re-pin the submodule to KMP#8's merged SHA (currently pinned to the branch commit 5c80f7b).

Test plan

  • :OneSignal:core:compileDebugKotlin (compiles against bumped submodule)
  • :OneSignal:core:testDebugUnitTest --tests "*FileLogStoreTest*" --tests "*OneSignalCrashUploaderWrapperTest*"
  • :OneSignal:core:detekt + :OneSignal:core:spotlessKotlinCheck
  • KMP side: :kmp:testDebugUnitTest (10/10 LogCrashTest) + :kmp:spotlessCheck

Made with Cursor

…ubmodule)

Bumps OneSignal-KMP-SDK to the commit that moves the legacy crash-file purge
into the shared LogCrashUploader (OneSignal-KMP-SDK#8), so the cleanup runs in
the shared module for every host (iOS included) rather than only host-side.

FileLogStore.deleteUnrecognizedEntries now overrides the new ILogFileStore
contract method, so it is invoked both by the KMP uploader's post-upload sweep
and by the host belt-and-suspenders call in OneSignalCrashUploaderWrapper.

Stacked on #2691. Submodule pin will be updated to the merged KMP SHA once
OneSignal-KMP-SDK#8 lands.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

📊 Diff Coverage Report

Diff Coverage Report (Changed Lines Only)

Gate: aggregate coverage on changed executable lines must be ≥ 80% (JaCoCo line data for lines touched in the diff).

Changed Files Coverage

✅ Coverage Check Passed

All checked files have no executable lines (or fully covered)

📥 View workflow run

@abdulraqeeb33

Copy link
Copy Markdown
Contributor Author

Superseded by #2691 — host purge + KMP submodule adoption are now combined on ar/sdk-4939.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant