wire-ios
wire-ios copied to clipboard
refactor: create SelfUserAPI in WireAPI package - WPB-8741
|
|
Key points
SelfUserAPI has two endpoints: getSelfUser and pushSupportedProtocols. The implementation follows the same architecture pattern as the other APIs in the package.
getSelfUser endpoint doesn't return a supportedProtocols object in v0, in v5 it does.
pushSupportedProtocols is only available from api version >= 5.
Testing
Testing requests are properly created.
Testing both endpoints getSelfUser and pushSupportedProtocols for failure and success.
Making sure calling the pushSupportedProtocols in api versions < v5 throws an error.
Checklist
- [ ] Title contains a reference JIRA issue number like
[WPB-XXX]. - [ ] Description is filled and free of optional paragraphs.
- [ ] Adds/updates automated tests.
UI accessibility checklist
If your PR includes UI changes, please utilize this checklist:
- [ ] Make sure you use the API for UI elements that support large fonts.
- [ ] All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
- [ ] New UI elements have Accessibility strings for VoiceOver.
Test Results
130 testsβββ130 :white_check_mark:ββ0s :stopwatch: β14 suitesββββ0 :zzz: ββ1 filesββββββ0 :x:
Results for commit 34abd700.
:recycle: This comment has been updated with latest results.
Datadog Report
Branch report: refactor/self-user-api
Commit report: ec2ce56
Test service: wire-ios-mono
:white_check_mark: 0 Failed, 130 Passed, 0 Skipped, 114ms Total Time