Gavin King <gavin...@gmail.com> a écrit :
BTW to get the new compatibility feature it is not enough to simply update the IDE, one should also go to the Eclipse 'Install New Software' menu and check the new Android feature in the Ceylon install site. This is obvious, but I was bitten by this.
--
Can't we bring up a dialog to ask the user to import an android jar in the Ceylon repo if it's not there? That would make it even easier. Same for fixing the builder order.
--
Can't we bring up a dialog to ask the user to import an android jar in the Ceylon repo if it's not there? That would make it even easier. Same for fixing the builder order.
Le 13/01/2014 22:56, Stephane Epardaud a écrit :
It seems to me that prompting with unexpected dialogs is usually not the best solution. Maybe we should simply add the various android jars to Herd, no ? Then the module name would be well-known, and it would be simpler to setup, in the compatibility plugin, some automatic way to check that the imported android ceylon module is coherent with the SDK target platform set on the project.Can't we bring up a dialog to ask the user to import an android jar in the Ceylon repo if it's not there? That would make it even easier. Same for fixing the builder order.
As for the build order, it should be possible to fix it silently.
So if we can't redistribute it, we have another problem. This is another case of dependency like the JDK which Maven calls "provided" which means "if you have it then good, if you don't then you're screwed because we're not going to give it to you".
I suppose that given the popularity of Android we could make another such special case like we do for JDK modules, and support it in the CMR and Herd and if you don't have it then it will just break. But there's more than that, because I guess that if you do depend on Android you can't use the Java modules, and the opposite.
The other question is how this works on the CLI. I assume the IDE can use the one from the ADT distrib/classpath, but from the CLI it's not clear.
We can add a new CMR repo like for Java, but we also need custom rules that prevent someone using both Java modules and Android modules, I guess.