-
사용자 플러그인 등록 방법카테고리 없음 2015. 10. 16. 13:37
Install Custom Plugin
Custom Plugin은 설치방법은 다음과 같습니다.
이런 형식으로 플러그맨(Plugman)을 이용해서 설치하시면 됩니다.
단, 반드시 설치하시려고 하는 플러그인 폴더내에 Plugin.xml 설정파일이 있어야 설치가 가능합니다.plugman install --platform ios --project /Users/qnibus/Documents/ProjectName --plugin /Users/qnibus/Download/phonegap-plugins-master/iOS/ChildBrowser
Plugin.xml 작성방법은 http://docs.phonegap.com/en/3.0.0/plugin_ref_spec.md.html 이곳을 참고해주세요!
아래 inAppBrowser 플러그인의 plugin.xml 파일이오니 참고하세요!plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="org.apache.cordova.inappbrowser"
version="0.2.4">
<name>InAppBrowser</name>
<description>Cordova InAppBrowser Plugin</description>
<license>Apache 2.0</license>
<keywords>cordova,in,app,browser,inappbrowser</keywords>
<repo>https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git</repo>
<issue>https://issues.apache.org/jira/browse/CB/component/12320641</issue>
<engines>
<engine name="cordova" version=">=3.1.0" /><!-- Needs cordova/urlutil -->
</engines>
<js-module src="www/InAppBrowser.js" name="InAppBrowser">
<clobbers target="window.open" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="InAppBrowser">
<param name="android-package" value="org.apache.cordova.inappbrowser.InAppBrowser"/>
</feature>
</config-file>
<source-file src="src/android/InAppBrowser.java" target-dir="src/org/apache/cordova/inappbrowser" />
<source-file src="src/android/InAppChromeClient.java" target-dir="src/org/apache/cordova/inappbrowser" />
</platform>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="InAppBrowser">
<param name="ios-package" value="CDVInAppBrowser" />
</feature>
</config-file>
<header-file src="src/ios/CDVInAppBrowser.h" />
<source-file src="src/ios/CDVInAppBrowser.m" />
<framework src="CoreGraphics.framework" />
</platform>
<!-- blackberry10 -->
<!-- <platform name="blackberry10">
<config-file target="www/config.xml" parent="/widget">
<feature name="InAppBrowser" value="InAppBrowser"/>
</config-file>
</platform>
-->
<!-- wp7 -->
<platform name="wp7">
<config-file target="config.xml" parent="/*">
<feature name="InAppBrowser">
<param name="wp-package" value="InAppBrowser"/>
</feature>
</config-file>
<source-file src="src/wp/InAppBrowser.cs" />
</platform>
<!-- wp8 -->
<platform name="wp8">
<config-file target="config.xml" parent="/*">
<feature name="InAppBrowser">
<param name="wp-package" value="InAppBrowser"/>
</feature>
</config-file>
<source-file src="src/wp/InAppBrowser.cs" />
</platform>
<!-- windows8 -->
<platform name="windows8">
<js-module src="www/windows8/InAppBrowserProxy.js" name="InAppBrowserProxy">
<merges target="" />
</js-module>
</platform>
</plugin>
나중에 내방식대로 변경.
댓글