cordova-plugin-httpd
Version:
Cordova Plugin to embed httpd (web server) into Cordova App
181 lines (163 loc) • 10.3 kB
text/xml
<plugin
id="cordova-plugin-httpd"
version="0.9.3"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>CorHttpd</name>
<description>CorHttpd is an plugin to embed a httpd (web server) into Cordova</description>
<author>Liming Xie</author>
<license>MIT</license>
<keywords>httpd,web,server,http</keywords>
<repo>https://github.com/floatinghotpot/cordova-httpd.git</repo>
<issue>https://github.com/floatinghotpot/cordova-httpd/issues</issue>
<engines>
<engine name="cordova" version=">=2.9" />
<engine name="cordova-osx" version=">=4.0.0" />
</engines>
<js-module name="CorHttpd" src="www/CorHttpd.js">
<clobbers target="cordova.plugins.CorHttpd" />
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="CorHttpd">
<param name="android-package" value="com.rjfun.cordova.httpd.CorHttpd" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</config-file>
<source-file src="src/android/CorHttpd.java" target-dir="src/com/rjfun/cordova/httpd" />
<source-file src="src/android/AndroidFile.java" target-dir="src/com/rjfun/cordova/httpd" />
<source-file src="src/android/NanoHTTPD.java" target-dir="src/com/rjfun/cordova/httpd" />
<source-file src="src/android/WebServer.java" target-dir="src/com/rjfun/cordova/httpd" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="CorHttpd">
<param name="ios-package" value="CorHttpd" />
</feature>
</config-file>
<source-file src="src/ios/CorHttpd.m" />
<header-file src="src/ios/CocoaHttpd/HTTPLogging.h" />
<header-file src="src/ios/CocoaHttpd/HTTPServer.h" />
<source-file src="src/ios/CocoaHttpd/HTTPServer.m" />
<header-file src="src/ios/CocoaHttpd/WebSocket.h" />
<source-file src="src/ios/CocoaHttpd/WebSocket.m" />
<header-file src="src/ios/CocoaHttpd/HTTPMessage.h" />
<source-file src="src/ios/CocoaHttpd/HTTPMessage.m" />
<header-file src="src/ios/CocoaHttpd/HTTPAuthenticationRequest.h" />
<source-file src="src/ios/CocoaHttpd/HTTPAuthenticationRequest.m" />
<header-file src="src/ios/CocoaHttpd/HTTPConnection.h" />
<source-file src="src/ios/CocoaHttpd/HTTPConnection.m" />
<header-file src="src/ios/CocoaHttpd/HTTPResponse.h" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPAsyncFileResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPAsyncFileResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPErrorResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPErrorResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPDynamicFileResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPDynamicFileResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPRedirectResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPRedirectResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPFileResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPFileResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPDataResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPDataResponse.m" />
<header-file src="src/ios/CocoaHttpd/Mime/MultipartFormDataParser.h" />
<source-file src="src/ios/CocoaHttpd/Mime/MultipartFormDataParser.m" />
<header-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeader.h" />
<source-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeader.m" />
<header-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeaderField.h" />
<source-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeaderField.m" />
<header-file src="src/ios/CocoaHttpd/Categories/DDData.h" />
<source-file src="src/ios/CocoaHttpd/Categories/DDData.m" />
<header-file src="src/ios/CocoaHttpd/Categories/DDNumber.h" />
<source-file src="src/ios/CocoaHttpd/Categories/DDNumber.m" />
<header-file src="src/ios/CocoaHttpd/Categories/DDRange.h" />
<source-file src="src/ios/CocoaHttpd/Categories/DDRange.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaAsyncSocket/GCDAsyncSocket.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaAsyncSocket/GCDAsyncSocket.m" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDAbstractDatabaseLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDAbstractDatabaseLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDFileLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDFileLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDASLLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDASLLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDTTYLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDTTYLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDLog.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDLog.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/ContextFilterLogFormatter.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/ContextFilterLogFormatter.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/DispatchQueueLogFormatter.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/DispatchQueueLogFormatter.m" />
<framework src="CFNetwork.framework" />
<framework src="Foundation.framework" />
<framework src="Security.framework" />
</platform>
<platform name="osx">
<config-file parent="/*" target="config.xml">
<feature name="CorHttpd">
<param name="ios-package" value="CorHttpd" />
</feature>
</config-file>
<!-- OSX and iOS share the same sources -->
<source-file src="src/ios/CorHttpd.m" />
<header-file src="src/ios/CocoaHttpd/HTTPLogging.h" />
<header-file src="src/ios/CocoaHttpd/HTTPServer.h" />
<source-file src="src/ios/CocoaHttpd/HTTPServer.m" />
<header-file src="src/ios/CocoaHttpd/WebSocket.h" />
<source-file src="src/ios/CocoaHttpd/WebSocket.m" />
<header-file src="src/ios/CocoaHttpd/HTTPMessage.h" />
<source-file src="src/ios/CocoaHttpd/HTTPMessage.m" />
<header-file src="src/ios/CocoaHttpd/HTTPAuthenticationRequest.h" />
<source-file src="src/ios/CocoaHttpd/HTTPAuthenticationRequest.m" />
<header-file src="src/ios/CocoaHttpd/HTTPConnection.h" />
<source-file src="src/ios/CocoaHttpd/HTTPConnection.m" />
<header-file src="src/ios/CocoaHttpd/HTTPResponse.h" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPAsyncFileResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPAsyncFileResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPErrorResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPErrorResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPDynamicFileResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPDynamicFileResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPRedirectResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPRedirectResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPFileResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPFileResponse.m" />
<header-file src="src/ios/CocoaHttpd/Responses/HTTPDataResponse.h" />
<source-file src="src/ios/CocoaHttpd/Responses/HTTPDataResponse.m" />
<header-file src="src/ios/CocoaHttpd/Mime/MultipartFormDataParser.h" />
<source-file src="src/ios/CocoaHttpd/Mime/MultipartFormDataParser.m" />
<header-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeader.h" />
<source-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeader.m" />
<header-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeaderField.h" />
<source-file src="src/ios/CocoaHttpd/Mime/MultipartMessageHeaderField.m" />
<header-file src="src/ios/CocoaHttpd/Categories/DDData.h" />
<source-file src="src/ios/CocoaHttpd/Categories/DDData.m" />
<header-file src="src/ios/CocoaHttpd/Categories/DDNumber.h" />
<source-file src="src/ios/CocoaHttpd/Categories/DDNumber.m" />
<header-file src="src/ios/CocoaHttpd/Categories/DDRange.h" />
<source-file src="src/ios/CocoaHttpd/Categories/DDRange.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaAsyncSocket/GCDAsyncSocket.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaAsyncSocket/GCDAsyncSocket.m" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDAbstractDatabaseLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDAbstractDatabaseLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDFileLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDFileLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDASLLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDASLLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDTTYLogger.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDTTYLogger.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDLog.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/DDLog.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/ContextFilterLogFormatter.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/ContextFilterLogFormatter.m" />
<header-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/DispatchQueueLogFormatter.h" />
<source-file src="src/ios/CocoaHttpd/Vendor/CocoaLumberjack/Extensions/DispatchQueueLogFormatter.m" />
<framework src="CFNetwork.framework" />
<framework src="Foundation.framework" />
<framework src="Security.framework" />
</platform>
</plugin>