Giter Site home page Giter Site logo

Comments (5)

pocorall avatar pocorall commented on June 2, 2024

After closed the issue #43, I found an additional issue about versioning the library.

Most of the developed app will target below the Android 4.1; and these project usually depends on minimum supported version of Android library, because it prevents mistakenly using newly added features in recent versions of Android.

If Scaloid releases only one version that contains all of the helper methods that is available at the most recent version, developers will takes risk of NoSuchMethodError, and should always check availability manually for every method calls.

I think that Scaloid still needs to be released for multiple versions of Android library.

from scaloid.

guersam avatar guersam commented on June 2, 2024

It makes sense.

How about having androidAPILevel annotation with a SBT plugin which checks API compatibility according to the project's minSdkVersion at compile time?

from scaloid.

guersam avatar guersam commented on June 2, 2024

Just a little possibility.. not sure of the implementation about automatic checking yet. But won't be the annotation visible in IDEs at least?

from scaloid.

guersam avatar guersam commented on June 2, 2024

Also have an idea about the macro based re-implementation for class/helper generation which automatically wraps provided Android SDK in classpath, but it'll result in the lack of IDE support.

from scaloid.

pocorall avatar pocorall commented on June 2, 2024

It will be nice if a macro makes proper exception when a missing method is accessed.

But I'd like to lower the priority of this issue, because specifying Android version on Scaloid is not too much burden for both Scaloid users and developers(we).

from scaloid.

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.