Skip to content

Instantly share code, notes, and snippets.

@saumya
Last active April 12, 2016 12:24
Show Gist options
  • Save saumya/9638603 to your computer and use it in GitHub Desktop.
Save saumya/9638603 to your computer and use it in GitHub Desktop.
Cordova 3.4, iOS project creation and enabling all the plugins. Its the plugman way. First download the Archieve and unzip the native platform (iOS, Android, whihever you want), in this case we focus on iOS. Then follow the commands below.
Ref:
1. http://cordova.apache.org/docs/en/3.4.0/guide_platforms_ios_tools.md.html#iOS%20Command-line%20Tools
2. http://cordova.apache.org/docs/en/3.4.0/plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins
===================================================================
//From inside the project package
./create path/to/preoject/folder com.package.name ProjectName
===================================================================
//From inside the Cordova project folder
======================================================================================
plugman install --platform ios --project . --plugin org.apache.cordova.battery-status
plugman install --platform ios --project . --plugin org.apache.cordova.camera
plugman install --platform ios --project . --plugin org.apache.cordova.console
plugman install --platform ios --project . --plugin org.apache.cordova.contacts
plugman install --platform ios --project . --plugin org.apache.cordova.device
plugman install --platform ios --project . --plugin org.apache.cordova.device-motion
plugman install --platform ios --project . --plugin org.apache.cordova.device-orientation
plugman install --platform ios --project . --plugin org.apache.cordova.dialogs
plugman install --platform ios --project . --plugin org.apache.cordova.file
plugman install --platform ios --project . --plugin org.apache.cordova.file-transfer
plugman install --platform ios --project . --plugin org.apache.cordova.geolocation
plugman install --platform ios --project . --plugin org.apache.cordova.globalization
plugman install --platform ios --project . --plugin org.apache.cordova.inappbrowser
plugman install --platform ios --project . --plugin org.apache.cordova.media
plugman install --platform ios --project . --plugin org.apache.cordova.media-capture
plugman install --platform ios --project . --plugin org.apache.cordova.network-information
plugman install --platform ios --project . --plugin org.apache.cordova.splashscreen
plugman install --platform ios --project . --plugin org.apache.cordova.vibration
======================================================================================
//From anywhere in the system
======================================================================================
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.battery-status
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.camera
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.console
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.contacts
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.device
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.device-motion
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.device-orientation
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.dialogs
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.file
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.file-transfer
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.geolocation
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.globalization
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.inappbrowser
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.media
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.media-capture
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.network-information
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.splashscreen
plugman install --platform ios --project /path/to/cordova/project/folder --plugin org.apache.cordova.vibration
======================================================================================
@saumya
Copy link
Author

saumya commented Apr 12, 2016

Plugin install is updated to
plugman install --platform android --project . --plugin cordova-plugin-console
from previously used
plugman install --platform android --project . --plugin org.apache.cordova.console
The change is in the last part, how the plugin is referred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment