1 person found this helpful
You need an Internet connection at some point. Why?
- npm install -g phonegap: downloads the PhoneGap CLI and associated dependencies from npm, which requires Internet access. You could download these to your local machine and install them that way, but either way, you need access to the Internet at some point.
- phonegap create: by default it downloads the hello-world template. You can change this to a local directory.
- phonegap platform add: downloads the platform from npm. Again, you can install from a local directory, but you will have to download the platform at some point.
- phonegap plugin add: downloads the plugin From npm. You can install from a local directory, but you'll have had to download the plugin at some point.
- The first time you build for Android, Gradle will be configured and download dependencies.
Now, if you don't mind ferrying files back and forth from an environment that has Internet access, you can download the first four on to a USB stick and copy them to the environment that doesn't and then install from local directories. I'm not entirely sure what to do about the Gradle part. You can probably do something similar, but I've never tried.
It's easier to have an Internet connection through the first build. After that (assuming you don't change platforms or plugins), I don't think you need an Internet connection until you need to deploy to an app store.