mapbox / mapbox/mapbox-plugins-android
Symbol options does not support kotlinx serialization
- Dominant language
- Java
- Stars
- 242
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Good morning, I would like to know if you could modify the Symbol Options class in the data property, so that it accepts JsonElements from Kotlinx.
Example:
public class SymbolOptions extends Options {
private JsonElement data; ---> This only accept a com.google.gson.JsonElement
}
And need
public class SymbolOptions extends Options {
private JsonElement data; ---> kotlinx.serialization.json.JsonElement
}
It would be nice if you could apply this, especially since many people are starting to use this extension in cross-platform projects and import Gson and Kotlinx Serialization at the same time, it does not make sense :)
Good day
Contributor guide
Research direction
Start by locating the SymbolOptions class and its inherited Options data property, then inspect how the current com.google.gson.JsonElement type is used. Determine whether kotlinx.serialization.json.JsonElement can be supported without breaking existing Gson usage, and verify the resulting API behavior with the relevant project tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100