How is your experience with the OutSystems Community?
9
Views
1
Comments
Integrating a Custom Capacitor Plugin into ODC Without Publishing It
Question

Hi everyone,

I've developed a custom Capacitor plugin and I want to integrate it into an OutSystems Developer Cloud (ODC) mobile application.

Is it possible to package the Capacitor plugin as a ZIP file and reference it as a local resource during the ODC mobile build process?

If that's not supported, what is the recommended approach for integrating a custom Capacitor plugin without publishing it to a public npm registry or GitHub repository?

I'm looking for a secure way to keep the plugin private while still being able to use it in ODC mobile builds.

2026-04-26 20-38-42
Paulo Solipa
Champion

Hi @Divya Chintada,

Theoretically, there is at least two ways you can do it.

The first way you are required to upload the plugin's code to your GitHub account in a private repo. In the Developer Settings of your GitHub account, you can define Fine-grained tokens, allowing to access the private repo with that token in Read-Only access. Then, in your plugin's extensibility settings, in the npm property, you can put something like "https://x-access-token:<token>@<yourRepoUrl>".

The second way is similar to what you are used to with the zip files, with some nuances:

Firstly, you will need to run the command npm pack in the root of your plugin's folder. This command will create a tarball file with your plugin that you will put in the Resources of your plugin asset.

Afterwards, you will need to have a separated plugin with a hook that gets the tarball from the capacitor project and runs the npm install command and installs your plugin.


Hope this will help.


Best regards,

Paulo Solipa

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.