Fork us on GitHub

Automatically Install, Update & Distribute cn1libs (extensions)

A new way to handle dependencies that works properly for mobile
Post Image

Automatically Install, Update & Distribute cn1libs (extensions)

Managing your project dependencies and 3rd party extensions among the hard to navigate list of cn1libs has always been challenging. We are now tackling this problem in the new settings UI which is scheduled to launch for all IDE’s this Friday.

To get started just open the new Codename One settings UI:

Launching the new preferences UI
Figure 1. Launching the new preferences UI
You need to use an up to date plugin from the June 10th release

Then open the extensions option:

Extensions Option In the Settings
Figure 2. Extensions Option In the Settings

Once you launch the extensions UI you should see this screen where you can download/search thru available Codename One extensions.

The Extensions UI
Figure 3. The Extensions UI

Once downloaded you will see a check mark next to the installed extensions.

Adding your Own

The list of extensions is based on a github project which you can fork to extend. You can update the version of cn1libs you make and also contribute. Notice that while all the current libraries in the list are open source this is by no means a requirement…​

We have quite a few cn1libs already from the community and we’d appreciate more of those to help the community at large.

What’s Next?

We will probably refine this process as it matures e.g. add more tagging based UI and make an "uninstall" process as well…​

However, this depends a lot on your involvement & feedback so let us know what you think and take part in the project.

Share this Post:

Posted by Shai Almog

Shai is the co-founder of Codename One. He's been a professional programmer for over 25 years. During that time he has worked with dozens of companies including Sun Microsystems.
For more follow Shai on Twitter & github.