[arduino 1.5] "Not a valid library" importing Bitlash

The new IDE 1.5 has 'fat' libraries support: libraries that contains code to run on more than one microcontroller architecture. The advantages of having a 'fat' library are clear:

  • The IDE will automatically lists the available libraries based on the architecture of the currently selected board
  • The same library can have multiple architecture inside => you don't have to install a different version of the same library for every architecture.

We also tried to introduce an auto-detection mechanism that takes apart non-fat libraries from fat libraries.
This mechanism didn't worked as expected because we assumed that library writers would only use 'examples' and 'utility' folder. This is a clearly wrong assumption, and the patch i have just pushed on the repository fixes this problem.

So, guys, don't worry: all your libraries will continue to work as expected (of course if you try an AVR specific library on the Due it will not work).

I'll invite you all to check if the patch will fix the issues you are having.

C