mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-18 19:22:51 +08:00
updated to include iOS config & js source files config
This commit is contained in:
parent
33c2270b6e
commit
c26377ae98
31
plugin.xml
31
plugin.xml
@ -2,10 +2,22 @@
|
||||
|
||||
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
id="org.apache.cordova.core">
|
||||
id="org.apache.cordova.core"
|
||||
version="0.1.0">
|
||||
<name>Camera</name>
|
||||
|
||||
<js-module src="www/CameraConstants.js" name="camera">
|
||||
<clobbers target="window.camera" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/CameraPopoverOptions.js" name="camera">
|
||||
<clobbers target="window.camera" />
|
||||
</js-module>
|
||||
|
||||
<js-module src="www/Camera.js" name="camera">
|
||||
<clobbers target="navigator.camera" />
|
||||
</js-module>
|
||||
|
||||
<!-- android -->
|
||||
<platform name="android">
|
||||
<config-file target="res/xml/config.xml" parent="/cordova/plugins">
|
||||
@ -13,5 +25,20 @@ id="org.apache.cordova.core">
|
||||
</config-file>
|
||||
|
||||
<source-file src="CameraLauncher.java" target-dir="org/apache/cordova/core" />
|
||||
</platform>
|
||||
</platform>
|
||||
|
||||
<!-- ios -->
|
||||
<platform name="ios">
|
||||
<config-file target="config.xml" parent="/*">
|
||||
<feature name="Camera">
|
||||
<param name="ios-package" value="CDVCamera" />
|
||||
</feature>
|
||||
</config-file>
|
||||
<header-file src="src/ios/CDVCamera.h" />
|
||||
<source-file src="src/ios/CDVCamera.m" />
|
||||
<header-file src="src/ios/CDVJpegHeaderWriter.h" />
|
||||
<source-file src="src/ios/CDVJpegHeaderWriter.m" />
|
||||
<header-file src="src/ios/CDVExif.h" />
|
||||
</platform>
|
||||
|
||||
</plugin>
|
||||
|
Loading…
Reference in New Issue
Block a user