Giter Club home page Giter Club logo

cordova-plugin-gapreload's People

Contributors

dlmiles avatar sebastien-p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-gapreload's Issues

android/res/xml/config.xml loses my added <feature> tags on `prepare` with this plugin added

I'm having a problem where my android specific config.xml gets replaced with the /config.xml after prepare, and I'm sure it has something to do with your plugin's xml. It doesn't happen on ios, and it doesn't happen without your plugin.

I noticed your plugin adds the following to my plugins/android.json (among other changes):

        "config.xml": {
            "/*": {
                "<access origin=\"*://192.168.10.100\" />": 1,
                "<access origin=\"*://$LIVERELOAD_HOST\" />": 1
            }
        },

This particular addition is not in my plugins/ios.json file. If I delete these lines, I do not experience the issue.

Is this an issue with your plugin (likely the xml), or is it a cordova issue?
Thank you for your help! Otherwise a very useful and fantastic plugin.

Plugin breaks cross-origin requests

Installing this plugin appears to break cordova apps' ability to make cross origin requests. This appears to be related to how livereload actually works but it might be worth mentioning as a caveat in the docs. Maybe this issue could be mitigated using a CORS proxy?

gapreload.xml overwriting every `prepare` job

So I save it, then run cordova prepare and it will re-insert $SERVER_HOST again...

<gapreload>
    <param name="SERVER_HOST" value="10.0.1.27" />
    <param name="SERVER_PORT" value="8888" />
    <param name="SERVER_HOST" value="$SERVER_HOST" />
    <param name="SERVER_PORT" value="$SERVER_PORT" />
    <param name="LIVERELOAD_HOST" value="$LIVERELOAD_HOST" />
    <param name="LIVERELOAD_PORT" value="$LIVERELOAD_PORT" />
</gapreload>

This plugin has unnecessary hard dependency on org.apache.cordova.device

plugin.xml:
<dependency id="org.apache.cordova.device"/>

It appears to use this inside gapreload.js:50 to access device.platform.toLowerCase(); however the global cordova.platformId should provide the same without the need for the dependency.

As strange as it may sound not all platforms have a working org.apache.cordova.device and Cordova project provided no easy way to unit test any plugin with fake/mocked input data from any other platform.

Simulator not showing updates

Hi Sebastien,

First off - thanks for the plugin! I use LiveReload when I code for the web and it's a huge time saver. I'm just starting out with PhoneGap and came across your plugin. Looks fantastic.

I've followed the steps exactly in the video, but I can't get my changes to appear in my simulator (I'm running a 4s simulator running iOS8). From what I can see, LiveReload is running the post-processing command and I think the simulator is refreshing.. it's just not reflecting the changes I make. The only major difference I notice is that my cordova server returns a bunch of 304s (with a 200 for the one file I edit) instead of a bunch of 200s like in your demo.

Have there been any changes to the cordova CLI that could be causing this? Sorry I can't provide much insight.. this is literally the first thing I'm trying with PhoneGap.

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.