Coder Social home page Coder Social logo

Comments (5)

orcoliver avatar orcoliver commented on September 17, 2024

Sometimes write changes, sometimes no write changes.

from cordova-custom-config.

dpa99c avatar dpa99c commented on September 17, 2024

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 or cordova 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.

GitRubb avatar GitRubb commented on September 17, 2024

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.

GitRubb avatar GitRubb commented on September 17, 2024

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.

dpa99c avatar dpa99c commented on September 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.