mapbox / mapbox/mapbox-navigation-android
Make RouteShield#toBitmap return an Expected
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
`RouteShield#toBitmap` returns a nullable type which makes it hard to understand the reason for the failed parsing/processing in case it happens. We might want to consider introducing another functions that returns `Expected` instead or refactor the existing function with the next semver release.
cc @abhishek1508
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating RouteShield#toBitmap and reviewing its current nullable return contract and the parsing or processing failures it can represent. The issue leaves open whether to add an Expected-returning function or change the existing API in the next semver release, so completion requires settling that API direction and documenting the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100