ticofab / android-gpx-parser

A library to parse XML Gpx files, built for Android.
Apache License 2.0
123 stars 44 forks source link

Cannot access time #37

Closed moopat closed 3 years ago

moopat commented 3 years ago

I cannot access point.time because of the following error:

Cannot access class 'org.joda.time.DateTime'. Check your module classpath for missing or conflicting dependencies

I am pretty sure that this is because

implementation 'net.danlew:android.joda:2.10.9.1'

(from the library's build.gradle) does not expose org.joda.time classes to apps integrating your library. Changing it to

api 'net.danlew:android.joda:2.10.9.1'

should fix this without requiring apps to add joda to their dependencies.

moopat commented 3 years ago

I created a pull request for that. :-)

ticofab commented 3 years ago

Fixed in 2.0.1