Giter Club home page Giter Club logo

Comments (4)

dlew avatar dlew commented on August 16, 2024

I could be convinced to lower compileSdkVersion but I'm skeptical. Typically you should always be compiling to the latest SDK version - what's blocking you from upgrading?

(Keep in mind, targetSdk is a different beast; you can compile to a higher SDK than you target.)

from joda-time-android.

erikhuizinga avatar erikhuizinga commented on August 16, 2024

I agree, but it's not the point. The point is that a library that seems to not depend on the compile SDK suddenly imposes a compile SDK version bump. That decreases the developer experience of this library for everybody that hasn't eagerly kept the compile SDK version up to date. It's a side effect, seemingly.

Note that this is a 'problem' in general: any lib implementing (or api-ing?) an AndroidX lib that requires compile SDK 31 will have its users' builds break... I guess that this issue is on AndroidX, because they chose to add this requirement recently for many (if not all) of their libs. And it's undocumented, AFAIK.

The fix on the user end should be trivial, so probably not worth fixing by you. Besides, if you'd stick with compatibility for the previous compile SDK version, then your lib will likely not be able to upgrade AndroidX dependencies for a year, always lagging behind the latest and greatest possibilities (in theory).

Makes you wonder what the use is of the compile SDK version, if AndroidX forces you to use the latest stable by default... 🤔

Feel free to close this issue.

from joda-time-android.

dlew avatar dlew commented on August 16, 2024

I'm not really sure I understand the exact ask here - is it that joda-time-android stops depending on androidx.startup?

from joda-time-android.

erikhuizinga avatar erikhuizinga commented on August 16, 2024

Concretely, I ask to stop depending on libraries that set minCompileSdk to greater than 30. E.g. if you'd downgrade AndroidX Startup, the previous version likely doesn't require that.

But I now remember the support library, which I think always has had the implicit requirement that your compile SDK version is at least the support lib's major version. Since AndroidX, that major version isn't in the version names any more, so I guess that's partially where the issue lies (like I wrote before): AndroidX fails to communicate / document the minimum required compile SDK:

And actually the minimum compile SDK is 31. This, while the Play Store accepts apps (or app updates) with target SDK 30 and therefore it is safe to assume that some of those apps will also use compile SDK 30. That leads to the problem described in this issue: breaking builds. However, like discussed it's not a problem to upgrade the compile SDK version, so I'm closing this.

from joda-time-android.

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.