javaBin / javazone-ios-app

MIT License
2 stars 0 forks source link

Remove AF - use async await URLSession #48

Closed chrissearle closed 5 months ago

chrissearle commented 7 months ago

Info service is using async await and url session.

Replace AF in session service and config (and remove licence overview - we have no further dependencies to display licences for).

Issue right now - MOC can only be grabbed from app delegate on main thread.

From what I can tell - AF runs calls in background but response handlers on main.

I want to run everything on background until we are done and ready to save.

But - you need MOC to create new objects.

Need to test more - maybe a dispatch to main after call to fetchData is good enough? Its after the network and parse calls.