val defaultDisplay: Display is deprecated
- Dominant language
- Python
- Stars
- 44.8k
- Forks
- 4.9k
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 635
Description
### Environment
SaaS (https://sentry.io/)
### Steps to Reproduce
1. building Android application
2. get the warning:
```
SentryFlutterPlugin.kt:199:15: warning: 'val defaultDisplay: Display!' is deprecated. Deprecated in Java. exception: ?.defaultDisplay exception
```
### Expected Result
There is no warning
### Actual Result
```
exception: c:\Users\User\AppData\Local\Pub\Cache\hosted\pub.dev\sentry_flutter-9.16.0\android\src\main\kotlin\io\sentry\flutter\SentryFlutterPlugin.kt:199:15: warning: 'val defaultDisplay: Display!' is deprecated. Deprecated in Java.
exception: ?.defaultDisplay
exception: ^^^^^^^^^^^^^^
```
### Product Area
Other
### Link
_No response_
### DSN
_No response_
### Version
_No response_
Contributor guide
Research direction
Start in android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt at line 199 and reproduce the Android build warning from the issue. Check the deprecated defaultDisplay usage and verify the change by rebuilding the Android application; done means the warning no longer appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, flutter, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100