getsentry / getsentry/sentry-java

Raise minSdkVersion from 21 to 26 in the next major release

Aberta
#5,508 2 comentários 0 reações 0 responsáveis Ver no GitHub
Android breaking Platform: Java Task
Linguagem predominante
Kotlin
Estrelas
1.4k
Forks
478
Merge médio
3d 4h
PRs com merge (30d)
72

Descrição

## Summary

We plan to raise the minimum supported Android SDK version from **21** (Lollipop 5.0) to **26** (Oreo 8.0) in the next major version of `sentry-android`.

We're opening this issue early so the community can share feedback or raise concerns before the change lands.

## Motivation

Android 5.x–7.x devices represent a small and declining share of the active install base. Internal telemetry from Sentry's own data shows that the vast majority of SDK consumers already target API 26+ in practice.

Raising the floor to 26 lets us:

- **Reduce testing and maintenance surface** — dropping five API levels from our test matrix lets us focus CI and development effort on the versions our users actually run.
- **Remove version-check workarounds** — lets us remove compatibility code paths for pre-26 behavior.
- **Unblock future dependency upgrades** — key dependencies in the ecosystem are raising their floors (e.g. OkHttp 5.x requires API 26+). Aligning our minimum lets us adopt newer versions without holding back the entire SDK.

## Timeline

This change will ship in the **next major version** of the SDK. It will **not** affect any 8.x release. There is no fixed date yet.

## What this means for you

If your app's own `minSdkVersion` is already 26 or higher, no action is needed.

If your app still targets API 21–25, you will need to either:
1. Stay on the latest 8.x release, or
2. Raise your own `minSdkVersion` before upgrading.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Esta é uma issue de planejamento para a próxima versão principal do sentry-android; ela não especifica arquivos de implementação, testes nem pontos de entrada. Comece revisando a configuração atual de minSdkVersion e o escopo da release e, em seguida, confirme que o suporte à API 21–25 será removido somente na próxima major release e permanecerá inalterado na 8.x.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
android
Domínio
mobile
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Pouca atividade
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
30/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.