Comments (5)
Sometimes write changes, sometimes no write changes.
from cordova-custom-config.
This is not information to diagnose if there is an issue - the versions of OSX and node are somewhat irrelevant. Please provide the following information:
- Version of this plugin with which the issue was observed
- Version of Cordova CLI
- The entire verbose output of a "failed" build or prepare operation:
cordova prepare android --verbose
orcordova build android --verbose
- The contents of your
config.xml
Without this information, it won't be possible to diagnose a problem and this issue will be closed.
from cordova-custom-config.
I'm seeing the same issue, fs.writeFileSync is not writing the updated AndroidManifest.xml.
OS X 10.11.4 and Node version 4.4.3.
Here's some other similarly reported issues:
jprichardson/node-fs-extra#238
http://stackoverflow.com/questions/36916155/nodejsfs-write-callback-and-fs-writefile-not-working
from cordova-custom-config.
Found out the issue (at least for my case), it was a plugin trying to reinstall itself after the prepare completes.
cordova-custom-config: Applied custom config from config.xml to /.../platforms/android/AndroidManifest.xml
Discovered plugin "cordova-plugin-intent" in config.xml. Installing to the project
Fetching plugin "cordova-plugin-intent@~0.1.2" via npm
Plugin "com.napolitano.cordova.plugin.intent" already installed on android.
If you have a plugin installed with a different name then what's listed in its plugin.xml id, cordova custom config will try to re-install the plugin, when that happens the Android xml changes are reverted.
from cordova-custom-config.
@GitRubb cordova-custom-config does not perform any re-installation of plugins - these operations are being performed by Cordova itself. This is evident from the log output you have posted, because all log messages from cordova-custom-config are prefixed with cordova-custom-config:
.
cordova-custom-config applies its configuration changes using an after_prepare
hook, which is the latest point in the prepare process it has access to. If the Cordova CLI comes along afterwards and resets those changes, there's nothing this plugin can do about it.
I'm going to close this issue as the OP has failed to provide sufficient information to diagnose his problem, however if you're able to consistently reproduce an issue, please open it separately.
from cordova-custom-config.
Related Issues (20)
- Android: custom-preference isn't doing anything, no error given HOT 1
- not compatible with cordova 9
- iOS location issue on uploading the apptore - ask for NSLocationAlwaysUsageDescription HOT 2
- All of a sudden (after updating node/npm LTS and cordova to 8.1.2), upon 'cordova run android', "Error loading dependencies (Cannot find module 'tostr') - attempting to resolve" - must install all deps by hand now HOT 6
- cordova-custom-config: Error updating config for platform 'android': Cannot use absolute path on element HOT 2
- Cordova builds fail with XCode-beta 11 HOT 4
- i need help with error unboun prefix HOT 1
- Question: iOS - how to set Legacy Build System ? HOT 5
- Builds fail when attempting usesClearText=true HOT 1
- Cordova ios build error - can someone help HOT 1
- Question: is this plugin needed for UISupportedInterfaceOrientations? HOT 2
- support capacitor HOT 1
- [Bug][Android] '"{{proj_path}}\platforms\android\cordova\version"' is not recognized as an internal or external command, operable program or batch file. HOT 1
- Cannot insert new Item to the section on AndroidManifest
- Vulnerability with package 'colors' HOT 1
- vulnerability in xcode package HOT 1
- Config.xml Bug HOT 6
- Ionic - The prefix "tools" for attribute "tools:node" associated with an element type "uses-permission" is not bound. HOT 1
- cordova-ios renamed Images.xcassets as Assets.xcassets meaning that asset_catalog needs to be updated
- BSF Cordova Ecosystem Crowdfunding Plan
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-custom-config.