How to automatically install plugins in new dev environment - cordova-cli

I have a Cordova 5.1.1 project initiated in a windows pc. I uploaded to the source control only this folders and files:
- www folder
- the fetch.json and android.json files of plugins folder
- the platforms.json file of the platform folder
- the hooks folder
- the build.json and config.xml files of the root
When I download the project in a mac PC to build for iOS, I added the ios platform, but when I list pluygins ionly whitelist apprears. How can I do to cordova to install automatically plugins from fetch.json file?

Related

How do I install Android Studio 3.5 Canary 12?

I need to install it, and downloaded the file, but it is in ZIP format. Inside the archive there is no install file, only `uninstall. How do I install it?
You don't install the canary builds. They are meant to work alongside the stable versions which are installed.
For Windows, extract to some place like C:\Programs\AndroidStudioCanary and inside the bin there will be an executable file for 64bit version(and also for 32bit). Create a shortcut to the file and you are done.
For Linux, extract to some place like /home/user/AndroidStudioCanary and inside the bin there will be a bash script file studio.sh. After first launch close all projects via File->Close projects but do not close the IDE. Now in the main UI, click the settings cog and add desktop entry to create application shortcut.
Launch the shortcut from applications now.
EDIT:
Canary and stable versions can run along side each other and their settings can be changed independently. For Windows and linux the folder named .AndroidStudio3.6 will contain config for stable version and .AndroidStudioCanary4.0 or similarly named folder will contain config for the canary version. These folders are inside user directory and are hidden. I don't have a mac but assume something similar.
For canary builds, there are no traditional executable files that you use to "install" the IDE.
You can go into the bin folder, then run the studio.exe or studio64.exe file (depending on your platform) to run Android Studio

How do i build a phonegap app for webapp?

I created a phonegap project in my machine and deployed it as a web app. when i browse it shows cordova is not defined. if i place the cordova.js inside the root folder then it throws some plugins are missin. anyone guide me how to host a webapp
using phonegap project.
Use this command to add the browser platform to your Cordova project,
cordova platform add browser
Now if you check inside your platforms directory there will be a new directory called browser.
Now run this, to get a browser compatible build.
cordova build android
Inside the "platforms > browser > www" directory you will find you web assets. You can host them on your server.

Android Studio Files Backup on Linux

When Android studio is installed in Linux, there are several supporting files which are downloaded by Android studio. I wish to keep a backup of the entire Android studio installation media or installed files in such a way, so that every time I have to install it in any Linux computer, I can do it offline. The main Android studio installation media is easy to keep a backup of but how can we find out what more was downloaded and installed by it ?
I would not keep the installation file, instead better back-up the installation directory including the android sdk and android ndk installation directory (check where those directories were created).
Furthermore there is the ~/.gradle directory in your home directory which contains all the gradle related cached files.
Regarding the ~/.AndroidStudio3.0 directory in your home dir I am not sure what it contains, but it looks like there are also cached downloaded jar files.
At last you should backup the ~/.android. It contains mostly generated files, however for example the signing keys are very important.
You need to backup the following directories:
$HOME\.android
$HOME\.AndroidStudio3.0
$HOME\.gradle
In addition to the directory where Android Studio was installed.

How to setup and use Android Emulator (shipped in Android Studio) in a corporate environment (no internet access or admin rights)?

I'm trying to use Emulator on a PC which has no internet connection and I'm not local admin. I've downloaded Android Studio (no install zip) on another PC and extracted contents, but it says "No SDK folder found".
Then I manually downloaded sdk tools zip and tried to update SDK folder with no luck. It says this folder does not include Android SDK.
Then I got my local admin guy to install Studio on the PC. But when I start Studio, I get the same "No SDK folder" error. I guess this is because setup installed SDK folder under local admin AppData folder. I cannot see his folder and couldn't contact him so far.
What should I do?
I got the admin guy to copy SDK folder from his directory under C:\Users\adminguy\AppData to somewhere I can read. Now it works ok.

How can I use Visual Studio to work with a Node.js project from an Openshift Git repository?

To work with Openshift's Node.js platform and to be able to pull or push code to it, Openshift provide you with a Git URL. Openshift require the repository to be structured such that the package.json file is located in the project root.
For local development I've been using Visual Studio 2013 with the Node.js Tools successfully. I also have Windows Git tools installed. I am aware of how a Visual Studio project may be added to Git source control.
I would like to use Visual Studio to work with the Git repository that is pulled from Openshift. The way I would intend to set things up initially is to pull the remote Openshift repository into a locally created Visual Studio solution's repository for my new Node.js project, fix any conflicts, then commit and push.
The problem I have is that the way Visual Studio wants to arrange its files relative to the Git project root conflicts with how Openshift wants the files to be arranged in the repository. Specifically, as mentioned, Openshift expects the package.json to be located in the project root. Visual Studio, however, given its Solution/Project hierarchy, wants the Solution folder to be the Git repository root, but with the package.json in the project subdirectory. I have tried running git init within the project subdirectory (such that the repository root is the project folder rather than the parent solution), but then Visual Studio doesn't recognise that the project is under source control any more.
What are the options I have to be able to synchronise between a VS project and Openshift using Git? The only solution that I can think of so far is to just place a package.json file into the root of the solution which VS would ignore, but Openshift would use. This package.json would prefix .js files it references with the project subdirectory, e.g. main: app.js would become main: someproject\app.js.

Resources