As an OutSystems developer, I had the need to use a QR Code plugin reader.

First step? Started by creating a test project to be able to choose the best plugin that suited my needs.

However…In the moment that I had to install it in the final app, I ran into… “Element uses-permission#android.permission.CAMERA at AndroidManifest.xml:30:5-90 duplicated with element declared at AndroidManifest.xml” error!

The plugin was: https://www.outsystems.com/forge/component-versions/1403 , and by extensibility configurations, I reached the project URL, as in the image bellow.

So, after a brief research, I found out that what I had to do was a minor change in plugin.xml file, instead of having

I had to have:

So all I needed to do, was to change this snippet and compile it into the OutSystems project.

So, how can we do it without native software?

1st step: create a git account at https://github.com/ and install git  https://gitforwindows.org/

2nd step: Fork the project.

Then, in your computer, open git bash in the project folder that you want the project:

Config your account on git bash.

 git config –global user.name “your username”

 git config –global user.password “your password”

or

git config user.name “your username”

git config user.password “your password”

And clone the project, as showed in the image bellow.

After cloning the project into your computer, make your code changes using any editor, and then, follow the steps:

  1. Check modified files: git status
  2. Add modified files into the list of the next commit: git add -u
  3. Commit your changes: git commit -m “description”
  4. Create a tag: git tag v1.0_1.0 -a
  5. Push your changes into the server: git push origin –tags

The project is now ready to be compiled in OutSystems project!!

Open your plugin in OutSystems, and change the URL to your repository#yourtag

1 – Publish the changes
2 – Generate App – this will compile your plugin changes

Reinstall the app in your device, and test it! 🙂

References:

https://www.outsystems.com/forums/discussion/44842/box-camera-overlay/

https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/418

LEAVE A REPLY

Please enter your comment!
Please enter your name here