Skip to content

fix(android): declarar permissao INTERNET pro build de release - #74

Merged
egionCode merged 1 commit into
mainfrom
fix/android-release-internet-permission
Aug 8, 2026
Merged

egionCode merged 1 commit into
mainfrom
fix/android-release-internet-permission

Conversation

@egionCode

Copy link
Copy Markdown
Owner

Resumo

  • O APK de release publicado pelo CD nao conseguia fazer nenhuma chamada de rede (SocketException: Failed host lookup), porque o AndroidManifest.xml nao declarava android.permission.INTERNET.
  • Builds debug (flutter run) ganham essa permissao injetada automaticamente pela ferramenta; builds release nao, entao precisa estar explicita.
  • Validado localmente: flutter build apk --release + aapt dump permissions confirma INTERNET presente no APK gerado.

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Flutter's debug builds get this permission injected automatically by
the tooling, but release builds (the ones the CD workflow ships as a
GitHub Release asset) do not - without it declared explicitly, the app
can't even resolve DNS, surfacing as "Failed host lookup" on any
network call.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@egionCode
egionCode merged commit d203392 into main Aug 8, 2026
1 check passed
@egionCode
egionCode deleted the fix/android-release-internet-permission branch August 8, 2026 04:20
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.

1 participant