val defaultDisplay: Display is deprecated

Open Beginner friendly
#112,253 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
android, flutter, kotlin
Domain
mobile

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.

Description

Flutter Product Area: Other Waiting for: Product Owner
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

Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 17m
Merged PRs (30d)
579

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry

All issues in getsentry/sentry

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.