M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Upgrade older app with plugins added manually

My old app has cordova plugins added to it manually - in the cordova_plugins.js and config.xml. The java files are in their respective folders. Can such an app be upgraded to libraries v3.0? Currently the app version is v2.3. It has many third party cordova plugins. It will be too troublesome if I have to create a new app and add all those plugins again

Thanks
M.M

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Upgrade older app with plugins added manually

Hello,

Project structures of libraries 2.0 and 3.0 are different, so it is impossible to keep that plugins after upgrade them.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Upgrade older app with plugins added manually

ok thank you.

Some plugins need a few lines to be added in AndroidManifest.xml file. So it is ok (or possible) to still add the plugins manually like it was done before? I created a new app with v3.0

Thanks,
M.M

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Upgrade older app with plugins added manually

No, it is better to add them with Appery.io plugin manager

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Upgrade older app with plugins added manually

The plugin used to work in v2.3 which I added manually. Now the same plugin when I add in new mobile app which is using v3.0, it shows the following error

Image

That is why I wanted to know if manual addition is still possible. Because the same plugin is working 100% perfectly in my other app which is v2.3

Thanks,
M.M

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Upgrade older app with plugins added manually

Just to make it more clear here, are you adding Cordova plugin using our builder feature or manually?

Also provide us your app GUID which is causing build fail - we will check our logs.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Upgrade older app with plugins added manually

My old app which was version 2.3 had 10 different plugins that I added manually as per the older documentation. When I upgrade the app to v3.0 and try building the apk, it fails.

So here is what I did

I created a new app with v3.0. Then used the plugin import feature to import the plugins. I managed to import 9 out of the 10 plugins. But there is one plugin that I am not able to import. It does import but when I try to build the apk it fails but the same plugin is working fine in my previous app when it was added manually. So I just wanted to know if manual addition is still possible. Hope my explanation is clear.

Thanks,
M.M

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Upgrade older app with plugins added manually

As Sergiy said before, the Appery.io projects structure has been changed completely in versions 2.3 and 3.0 -- so previous approaches won't work for newer version.

Could you please provide us your project GUID and GitHub link to your plugin which causing build issues.

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Upgrade older app with plugins added manually

it is this Cordova plugin: https://github.com/mbppower/CordovaCa...

It imports without error into my new v3.0 app but the apk does not build. If I exclude this plugin then I can build the apk without any errors or problem

Thanks,
M.M

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Upgrade older app with plugins added manually

Provide your project GUID for this app which is causes build error -- we need to check our build logs for more details.

Return to “Issues”