Page 1 of 3
Upgrade older app with plugins added manually
Posted: Wed Feb 24, 2016 5:46 pm
by M&M
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
Upgrade older app with plugins added manually
Posted: Wed Feb 24, 2016 5:53 pm
by Serhii Kulibaba
Hello,
Project structures of libraries 2.0 and 3.0 are different, so it is impossible to keep that plugins after upgrade them.
Upgrade older app with plugins added manually
Posted: Wed Feb 24, 2016 6:40 pm
by M&M
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
Upgrade older app with plugins added manually
Posted: Wed Feb 24, 2016 7:44 pm
by Serhii Kulibaba
No, it is better to add them with Appery.io plugin manager
Upgrade older app with plugins added manually
Posted: Thu Feb 25, 2016 3:33 am
by M&M
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
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
Upgrade older app with plugins added manually
Posted: Sat Feb 27, 2016 7:28 pm
by Illya Stepanov
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.
Upgrade older app with plugins added manually
Posted: Sun Feb 28, 2016 3:37 pm
by M&M
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
Upgrade older app with plugins added manually
Posted: Sun Feb 28, 2016 4:59 pm
by Illya Stepanov
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.
Upgrade older app with plugins added manually
Posted: Sun Feb 28, 2016 7:42 pm
by M&M
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
Upgrade older app with plugins added manually
Posted: Mon Feb 29, 2016 3:27 pm
by Illya Stepanov
Provide your project GUID for this app which is causes build error -- we need to check our build logs for more details.