Open craig-at-rsg opened 7 years ago
I have a solution for you:
1) Download me.apla.cordova.app-preferences plugin locally.
2) Extract it.
3) Open /bin/after_prepare.js and /bin/lib/android.js files.
4) Modify the content as it follows: // cordova = req('cordova'), // cordova_lib = cordova.cordova_lib, cordova_lib = req('cordova-lib'),
5) Save the files and create a new zip file of the plugin.
And thanks to Andi from Monaca for figuring this out.
Any way the change digicomisrael outlined can become part of this project?
Thank you @digicomisrael but actually the credit goes to @knight9999 :) I will create a pull request for this fix.
Issue: With version 0.7.6 and up plugman installation fails.
This works: plugman install --platform android --project ./platforms/android --plugin https://github.com/apla/me.apla.cordova.app-preferences#version/0.6.3 --plugins_dir plugins
This doesn't work: plugman install --platform android --project ./platforms/android --plugin https://github.com/apla/me.apla.cordova.app-preferences#version/0.7.7 --plugins_dir plugins
The failure message is: Cannot find module 'cordova'
Here's the stack trace:
Please specify your environment
Plugin version:
Toolchain:
Platforms affected:
What the scope of your problem: