Skip to content

Remove Alamofire e migra networking para URLSession - #2

Draft
allistoncarlos wants to merge 1 commit into
mainfrom
cursor/remove-alamofire-urlsession-6167
Draft

Remove Alamofire e migra networking para URLSession#2
allistoncarlos wants to merge 1 commit into
mainfrom
cursor/remove-alamofire-urlsession-6167

Conversation

@allistoncarlos

Copy link
Copy Markdown
Owner

Resumo

Remove a dependência do Alamofire e migra a camada de networking para URLSession, no mesmo padrão usado no GameNet/FinanceHealth.

Mudanças

  • NetworkManager agora usa URLSession nativo com:
    • injeção do header Authorization
    • retry em 401 com refresh token
    • retry em erros 5xx
  • AutoCareAPI deixa de depender do Alamofire (HTTPMethod, encoders e URLRequestConvertible locais)
  • Removidos EventMonitor, RequestInterceptor e o pacote SPM Alamofire

Notas

O Pulse/PulseUI permanece no projeto para a console de debug na Home; apenas o bridge via Alamofire EventMonitor foi removido.

Open in Web Open in Cursor 

Replace Alamofire Session/EventMonitor/RequestInterceptor with a
native URLSession NetworkManager, matching the GameNet/FinanceHealth
pattern: auth header injection, 401 refresh retry, and 5xx retries.

Co-authored-by: Alliston <allistoncarlos@users.noreply.github.com>
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.

2 participants