We just shipped Spark Libraries to the Build IDE. This feature let’s you pull in firmware code from GitHub and reuse it in your applications. Thanks so much to the incredible folks in the Spark community for providing the input to build this feature–we could not have done it without you! Here are a few links to get you started:
- Blog Post: Get started. Include a library in an app.
- Docs Page: Learn more. What else does it do?
- Annotated Example Library: Build your own.
- Community Contributed Examples:
Also, a few rough edges we’re currently aware of as well:
- Libraries cannot depend on other libraries.
- You can’t yet fork examples from the library, you need to copy and paste into the app that includes the library.
- Non UTF8 source files break things; there should be a validation.
- Upgrading a library in an app requires you to first remove it from the app, then re-add it.
There are some edge cases where “number of including apps” metric is not correct.
If you happen to run into snags or bugs with this feature, please report it here and we’ll try our best to get you unstuck. Additionally, two very simple workarounds that often fix the subtle IDE bugs include 1) refreshing the page, or 2) creating a new app and copy and pasting things into it.
Please let us know if you have questions or comments too.
We’re excited to see what you do with this feature!