AGP 7.4.0 - When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
# Description
Code: https://github.com/jaredsburrows/android-gif-example/pull/243
AGP 7.4.0+ brings in new lint checks
# Repro
```
git clone github.com/jaredsburrows/android-gif-example
cd android-gif-example
git checkout pr/jaredsburrows/updates-1666632461
gradlew :app:lintDebug
```
# Error:
```
Error: When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS permission (usage from com.bumptech.glide.request.target.NotificationTarget) [NotificationPermission]
Explanation for issues of type "NotificationPermission":
When targeting Android 13 and higher, posting permissions requires holding
the runtime permission android.permission.POST_NOTIFICATIONS.
```
See: https://github.com/jaredsburrows/android-gif-example/actions/runs/3379144926/jobs/5610312788
Contributor guide
Assessment
This issue has not been assessed yet.