45 lines
2.5 KiB
XML
Raw Normal View History

2021-09-28 16:25:05 +08:00
<?xml version='1.0' encoding='utf-8'?>
2021-09-28 18:36:05 +08:00
<plugin id="capture-cordova-plugin" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
2021-09-29 09:28:06 +08:00
<name>CapturePlugin</name>
<js-module name="capture" src="www/capture.js">
2021-09-28 18:36:05 +08:00
<clobbers target="capture"/>
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="capture-cordova-plugin">
<param name="android-package" value="cn.shuto.plugin.capture.CaptureCordovaPlugin"/>
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</config-file>
<config-file parent="application" target="AndroidManifest.xml">
<activity android:clearTaskOnLaunch="true" android:configChanges="orientation|keyboardHidden|screenSize"
android:exported="false" android:name="com.mabeijianxi.smallvideorecord2.MediaRecorderActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden"/>
<provider android:authorities="${applicationId}.cordova.plugin.camera.provider" android:exported="false"
android:grantUriPermissions="true" android:name="org.apache.cordova.camera.FileProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/camera_provider_paths"/>
</provider>
</config-file>
<config-file parent="/manifest" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.FLASHLIGHT"/>
<uses-feature android:name="android.hardware.camera" android:required="true"/>
</config-file>
<source-file src="src/android/CaptureCordovaPlugin.java" target-dir="src/cn/shuto/plugin/capture"/>
<framework custom="true" src="src/android/mobile-ffmpeg-x2.gradle" type="gradleReference"/>
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="CapturePlugin">
<param name="ios-package" value="CapturePlugin"/>
</feature>
</config-file>
<source-file src="src/ios/CapturePlugin.m"/>
</platform>
</plugin>