티스토리 뷰



1. 플러그인 추가 방법


Phonegap 3.0 에서 플러그인을 추가하는 방법입니다.


추가 방법은 간단합니다.

프로젝트가 생성된 폴더로 이동하여


$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git


위와 같은 명령어로 설치하여 주시면 됩니다.



외에도 추가된 플러그인을 확인하기 위하여 


$ phonegap local plugin list


를 이용하여 설치된 플러그인의 id를 확인하실수 있으시며


$ phonegap local plugin remove org.apache.cordova.core.console


위와 같은 remove 명령어로 플러그인의 삭제역시 가능합니다.




2. 명령어 정리


설치 

$ phonegap local plugin add GIT_ADDRESS


삭제


$ phonegap local plugin remove PLUGIN_ID


리스트 보기


$ plugin local list


3. 플러그인 리스트


Basic device information (Device API): 기본 창치 정보

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git


Network Connection and Battery Events: 네트워크 접속 및 베터리 이벤트

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-battery-status.git


Accelerometer, Compass, and Geolocation: 가속기, 나침반, 위치

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device-orientation.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git


Camera, Media playback and Capture: 카메라, 미디어, 캡쳐

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git


Access files on device or network (File API): 장치 파일 및 네트워크 파일 관련 플러그인

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git


Notification via dialog box or vibration: 알람 박스 및 진동 관련 플러그인

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git


Contacts: 연락처

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts.git


Globalization: 국제화

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-globalization.git


Splashscreen: 시작화면

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git


Open new browser windows (InAppBrowser): 새로운 브라우져 여는 플러그인

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git


Debug console: 콘솔 디버그

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git


여기서 제가 자주 쓰는 플러그인은 

phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git
phonegap local plugin add https://github.com/phonegap-build/PushPlugin.git


정도가 되겠군요. ( 복사해서 붙여 넣을려고 굳이 자주 쓰는 것들을 정리했습니다. )


공유하기 링크
댓글