jts-core version upgrade? #935
Replies: 2 comments 2 replies
-
The reason is linked in the integration guide: Mapsforge and VTM libraries use: sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7 New JTS (and OkHttp) seem to require Java 8. |
Beta Was this translation helpful? Give feedback.
-
There were reports with Java 8 problems on some Androids and devices. I may update it in the future, but after testing. Updates of JTS / OkHttp may be better or not.
Mapsforge and VTM are open source libraries. |
Beta Was this translation helpful? Give feedback.
-
Hi @devemux86,
dependabot recently informed us that version 0.19.0 of jts-core has become available. We are currently using 0.16.1 in conjunction with vtm / c:geo (can't remember anymore why we selected that specific version, though), and the integration guide still states 0.15.1, so I'm a bit confused.
I did a quick test by changing build.gradle, but then the map crashes with an exception. A quick search for this brought up the reason: There has been a slight interface change with 0.17 (?), as described in this issue by a different project using jts, which leads to this crash. Adapting to this would require a slight code change in VTM.
Regarding your comment in this old vtm issue I would expect this to be the compileSDK setting, which currently needs to be at API level 30 anyway, IIRC, according to Play Store rules. This setting is independent from min supported API version. c:geo still runs on API level 21+ currently. I did a quick test with setting jts-core version number to 0.19.0 and compiling this for an emulated API 21 device - compiles fine and starts without problems (but crashes on opening the vtm-based map due to the interface change described above).
Do you have any plans to adapt vtm to most recent versions of jts (maybe under what conditions) or would you accept a PR for it?
Beta Was this translation helpful? Give feedback.
All reactions