Code Monkey home page Code Monkey logo

Comments (6)

ber4444 avatar ber4444 commented on September 7, 2024 1

Actually, the joda-time GH page says Joda-time is no longer in active development except to keep timezone data up to date. [...] Projects needing to support lower API levels can use the ThreeTenABP library. and the ThreeTenABP GH page says Development on this library is winding down. Please consider switching to Android Gradle plugin 4.0, java.time.*, and its core library desugaring feature in the coming months. I was using the Android Gradle plugin 3.6.2 so should try it with the pre-release 4.0 plugin. When I look at https://developer.android.com/studio/preview/features#j8-desugar, I can see only A subset of java.time is supported so let's see if that is enough.

from dateparser.

yogurtearl avatar yogurtearl commented on September 7, 2024 1

for future reference, java8 desugaring link:
https://developer.android.com/studio/releases/gradle-plugin#j8-library-desugaring

from dateparser.

sisyphsu avatar sisyphsu commented on September 7, 2024

Yes, it uses lots of java.time.*, so it only works in JDK 1.8+, don't support old versions.

from dateparser.

ber4444 avatar ber4444 commented on September 7, 2024

Java 8 is not a problem, but yes the java.time.* APIs are not available, see https://jakewharton.com/androids-java-8-support/

I guess you could have a ThreeTenBP version as a fallback for Android 6 and 7. Or if not, just warn SDK consumers of limitations.

from dateparser.

sisyphsu avatar sisyphsu commented on September 7, 2024

I'm considering use joda-time to replace java.time, joda is more compatible with older versions.

from dateparser.

ber4444 avatar ber4444 commented on September 7, 2024

That worked, closing it.

from dateparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.