Repository navigation
fix: [SDK-5616] remove composite login from the public API - #2818
abdulraqeeb33 wants to merge 2 commits into
Conversation
📊 Diff Coverage ReportDiff 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
Overall (aggregate gate)10/69 touched executable lines covered (14.5% — requires ≥ 80%) Per-file detail (informational; gate is aggregate above):
❌ Coverage Check FailedAggregate coverage on touched lines is 14.5% (minimum 80%). |
|
Consider:
|
|
Done in d60006c.
|
d60006c to
6d97ebb
Compare
|
Click preview stack at the top |
|
Thanks, heres some more findings
|
The profile login still has open bugs, so apps should not be able to call it yet. login(externalId) is unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
OneSignalUserProfile, LoginData, and OneSignalResult are only used by the profile login, which is no longer public. Co-authored-by: Cursor <cursoragent@cursor.com>
6d97ebb to
a1e1976
Compare
|
Closing this. The product wants composite login to ship with the If the backend team does not change Create User, we can discuss other options before releasing this on the other SDKs. Hiding the public method is not the path for now. |
Description
One Line Summary
Composite login is no longer a public method, so 5.11.0 cannot ship
login(externalId, profile)while the remaining bugs are still open.Details
Fixes SDK-5616. Stacked on #2816, which is stacked on #2815.
Motivation
login(externalId, profile)is public on main. SDK-5606 and SDK-5615 are still open, and the rest of the fix will take longer than this release.Scope
The profile overload is removed from
OneSignalandIOneSignal.login(externalId)andloginSuspendare unchanged.The implementation stays on
OneSignalImp, which is outside the public API dump, so the fixes above can keep calling it. The demo app no longer has the "Login with profile" button.OneSignalUserProfileandLoginDatastay public types. Nothing public accepts or returns them.Testing
Unit testing
OneSignalSuspendMethodsExistTestnow asserts the profile login is absent fromOneSignal. The composite login tests still call the method onOneSignalImp.Manual testing
Not run on a device. This removes a public method and a demo button. It does not change the identity-only login path.
Affected code checklist
Checklist
Overview
Testing
Final pass
Made with Cursor