Skip to content
Guillaume Gendre edited this page Jun 7, 2019 · 6 revisions

To use a plugin in your project you will have to download and add it in your iOS project, your Android project and your web folder.

Adding the Android plugin

  • Git clone the repository Plugins-[myPluginName]-Android in a folder in your Android project.
  • Import the plugin module into your project:
    • Select File > Import Module...,
    • Browse to the plugin directory and click Choose,
    • Click Finish to import the module.

Alternatively, edit your project settings.graddle and your app build.graddle.

Adding the iOS plugin

  • Git clone the repository Plugins-[myPluginName]-iOS in a folder of your iOS project folder.
  • Add it to your XCode project
    • Drag&drop the plugin folder containing the plugins classes (.h & .m) to the framework folder of your project and select "create groups".

Adding the Web plugin

  • Git clone the repository Plugins-[myPluginName]-Web in a folder of your web folder.

  • Load the plugin javascript file after the cobalt one :

    <script type="text/javascript" src="../platform/cobalt.min.js"></script> <script type="text/javascript" src="js/plugins/cobalt.[myPluginName].js"></script>

That's it !

Check out each plugin documentation for any further configuration.

Clone this wiki locally