You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task/Issue URL:
https://app.asana.com/1/137249556945/project/1202552961248957/task/1210331622687071?focus=true
### Description
Moves creation of RMF JsonAdapter to lazy so it inits on background
thread
### Steps to test this PR
_Feature 1_
- [ ] Put a `Thread.sleep(20_000)` in RMFMapperModule L59 (first line in
`provideMoshiAdapter`)
- [ ] Update RemoteMessagingService endpoint to
`https://www.jsonblob.com/api/1374757173657264128`
- [ ] Install the app
- [ ] Run the app
- [ ] Should not freeze, you can interact with the app
- [ ] in 20 seconds RMF will appear
### UI changes
| Before | After |
| ------ | ----- |
!(Upload before screenshot)|(Upload after screenshot)|
Copy file name to clipboardExpand all lines: remote-messaging/remote-messaging-impl/src/main/java/com/duckduckgo/remote/messaging/impl/di/RMFMapperModule.kt
Copy file name to clipboardExpand all lines: remote-messaging/remote-messaging-impl/src/main/java/com/duckduckgo/remote/messaging/impl/mappers/MessageMapper.kt
Copy file name to clipboardExpand all lines: remote-messaging/remote-messaging-impl/src/test/java/com/duckduckgo/remote/messaging/fixtures/TestMessageMapper.kt
0 commit comments