Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow Scala versioning convention #49

Open
guersam opened this issue May 29, 2013 · 5 comments
Open

Follow Scala versioning convention #49

guersam opened this issue May 29, 2013 · 5 comments
Labels

Comments

@guersam
Copy link
Contributor

guersam commented May 29, 2013

Now we'll go with single API level as discussed in #43, so how about removing API level from our version number and follow Scala's major.minor.bugfix convention instead?

@pocorall
Copy link
Owner

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.

@guersam
Copy link
Contributor Author

guersam commented May 30, 2013

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?

@guersam
Copy link
Contributor Author

guersam commented May 30, 2013

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

@guersam
Copy link
Contributor Author

guersam commented May 30, 2013

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.

@pocorall
Copy link
Owner

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants