UNPKG

@spoonconsulting/cordova-plugin-simple-camera-preview

Version:

Cordova plugin that allows camera interaction from HTML code for showing camera preview below or on top of the HTML.

84 lines (68 loc) 3.97 kB
<?xml version="1.0" encoding="UTF-8"?> <plugin id="@spoonconsulting/cordova-plugin-simple-camera-preview" version="2.0.53" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"> <name>cordova-plugin-simple-camera-preview</name> <description>Cordova plugin that allows camera interaction from HTML code. Show camera preview popup on top of the HTML.</description> <license>Apache 2.0</license> <keywords>cordova,phonegap,ecosystem:cordova,cordova-android,cordova-ios,android,ios,ionic,camera,cam,camera-preview,preview</keywords> <repo>https://github.com/spoonconsulting/cordova-plugin-simple-camera-preview.git</repo> <issue>https://github.com/spoonconsulting/cordova-plugin-simple-camera-preview/issues</issue> <js-module src="www/SimpleCameraPreview.js" name="SimpleCameraPreview"> <clobbers target="SimpleCameraPreview" /> </js-module> <platform name="android"> <framework src="androidx.lifecycle:lifecycle-common:2.5.0" /> <framework src="androidx.exifinterface:exifinterface:1.3.3" /> <framework src="androidx.camera:camera-camera2:1.5.0" /> <framework src="androidx.camera:camera-lifecycle:1.5.0" /> <framework src="androidx.camera:camera-view:1.5.0" /> <framework src="androidx.camera:camera-video:1.5.0" /> <source-file src="src/android/CameraPreviewFragment.java" target-dir="src/com/spoon/simplecamerapreview" /> <source-file src="src/android/SimpleCameraPreview.java" target-dir="src/com/spoon/simplecamerapreview" /> <config-file target="res/xml/config.xml" parent="/*"> <feature name="SimpleCameraPreview"> <param name="android-package" value="com.spoon.simplecamerapreview.SimpleCameraPreview" /> <param name="onload" value="true" /> </feature> </config-file> <config-file target="AndroidManifest.xml" parent="/manifest"> <uses-feature android:name="android.hardware.camera" android:required="true"/> <uses-feature android:name="android.hardware.camera.autofocus" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> </config-file> <config-file target="res/values/strings.xml" parent="/*"> <string name="camera_error">This device does not support Camera2 API</string> </config-file> </platform> <platform name="ios"> <config-file target="config.xml" parent="/*"> <feature name="SimpleCameraPreview"> <param name="ios-package" value="SimpleCameraPreview" onload="true" /> </feature> </config-file> <config-file target="*-Info.plist" parent="NSCameraUsageDescription"> <string>This App requires camera access to let you take the pictures that you would like to upload.</string> </config-file> <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription"> <string>This App requires access to your location to add GPS exif to captured images.</string> </config-file> <header-file src="src/ios/SimpleCameraPreview.h" /> <source-file src="src/ios/SimpleCameraPreview.m" /> <header-file src="src/ios/CameraSessionManager.h" /> <source-file src="src/ios/CameraSessionManager.m" /> <header-file src="src/ios/CameraRenderController.h" /> <source-file src="src/ios/CameraRenderController.m" /> <source-file src="src/ios/Shaders.metal" /> <framework src="ImageIO.framework" weak="true" /> <framework src="MobileCoreServices.framework" /> <framework src="CoreLocation.framework" /> <framework src="CoreGraphics.framework" /> <framework src="AssetsLibrary.framework" /> <framework src="CoreGraphics.framework" /> <framework src="CoreImage.framework" /> <framework src="OpenGLES.framework" /> <framework src="GLKit.framework" /> <framework src="CoreVideo.framework" /> <framework src="QuartzCore.framework"/> </platform> </plugin>