143 lines
12 KiB
XML
143 lines
12 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
|
|
<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">
|
|
<name>CapturePlugin</name>
|
|
|
|
<js-module name="capture" src="www/capture.js">
|
|
<clobbers target="capture" />
|
|
</js-module>
|
|
|
|
<platform name="android">
|
|
<config-file parent="/*" target="res/xml/config.xml">
|
|
<feature name="CapturePlugin">
|
|
<param name="android-package" value="cn.shuto.plugin.capture.CaptureCordovaPlugin" />
|
|
<param name="onload" value="true" />
|
|
</feature>
|
|
</config-file>
|
|
<config-file target="AndroidManifest.xml" parent="/manifest">
|
|
<uses-permission android:name="android.permission.CAMERA"/>
|
|
<uses-permission android:name="android.permission.FLASHLIGHT"/>
|
|
<uses-permission android:name="android.permission.CAMERA"/>
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
|
<uses-feature android:name="android.hardware.camera" android:required="true"/>
|
|
<uses-feature android:name="android.hardware.camera.autofocus" />
|
|
</config-file>
|
|
<config-file target="AndroidManifest.xml" parent="application">
|
|
<activity android:name="com.mabeijianxi.smallvideorecord2.MediaRecorderActivity" android:clearTaskOnLaunch="true" android:configChanges="orientation|keyboardHidden|screenSize" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="stateAlwaysHidden" android:exported="false"/>
|
|
</config-file>
|
|
|
|
<source-file src="src/android/CaptureCordovaPlugin.java" target-dir="src/cn/shuto/plugin/capture" />
|
|
<source-file src="src/android/MediaRecorderConfig.java" target-dir="com/mabeijianxi/smallvideorecord2/model" />
|
|
<source-file src="src/android/MediaObject.java" target-dir="com/mabeijianxi/smallvideorecord2/model" />
|
|
<source-file src="src/android/BaseMediaBitrateConfig.java" target-dir="com/mabeijianxi/smallvideorecord2/model" />
|
|
<source-file src="src/android/MediaThemeObject.java" target-dir="com/mabeijianxi/smallvideorecord2/model" />
|
|
<source-file src="src/android/MediaRecorderActivity.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/MediaRecorderBase.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/MediaRecorderNative.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/IMediaRecorder.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/CircleButtonView.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/AudioRecorder.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/JianXiCamera.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/FileUtils.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/StringUtils.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/Log.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/FFMpegUtils.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/DeviceUtils.java" target-dir="com/mabeijianxi/smallvideorecord2" />
|
|
<source-file src="src/android/FFmpegBridge.java" target-dir="com/mabeijianxi/smallvideorecord2/jniinterface" />
|
|
|
|
<resource-file src="src/android/res/layout/activity_media_recorder.xml" target="res/layout/activity_media_recorder.xml" />
|
|
<resource-file src="src/android/res/values/colors.xml" target="/res/values/colors.xml" />
|
|
<resource-file src="src/android/res/values/strings.xml" target="/res/values/capture-strings.xml" />
|
|
|
|
<resource-file src="src/android/res/drawable/record_camera_flash_led_selector.xml" target="/res/drawable/record_camera_flash_led_selector.xml" />
|
|
<resource-file src="src/android/res/drawable/record_camera_switch_selector.xml" target="/res/drawable/record_camera_switch_selector.xml" />
|
|
<resource-file src="src/android/res/drawable/record_delete_selector.xml" target="/res/drawable/record_delete_selector.xml" />
|
|
<resource-file src="src/android/res/drawable/record_next_seletor.xml" target="/res/drawable/record_next_seletor.xml" />
|
|
<resource-file src="src/android/res/drawable/small_video_shoot.xml" target="/res/drawable/small_video_shoot.xml" />
|
|
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_flash_led_off_disable.png" target="/res/drawable-xxhdpi/record_camera_flash_led_off_disable.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_flash_led_off_normal.png" target="/res/drawable-xxhdpi/record_camera_flash_led_off_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_flash_led_off_pressed.png" target="/res/drawable-xxhdpi/record_camera_flash_led_off_pressed.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_flash_led_on_disable.png" target="/res/drawable-xxhdpi/record_camera_flash_led_on_disable.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_flash_led_on_normal.png" target="/res/drawable-xxhdpi/record_camera_flash_led_on_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_flash_led_on_pressed.png" target="/res/drawable-xxhdpi/record_camera_flash_led_on_pressed.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_switch_disable.png" target="/res/drawable-xxhdpi/record_camera_switch_disable.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_switch_normal.png" target="/res/drawable-xxhdpi/record_camera_switch_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_camera_switch_pressed.png" target="/res/drawable-xxhdpi/record_camera_switch_pressed.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_cancel_normal.png" target="/res/drawable-xxhdpi/record_cancel_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_cancel_press.png" target="/res/drawable-xxhdpi/record_cancel_press.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_delete_check_normal.png" target="/res/drawable-xxhdpi/record_delete_check_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_delete_check_press.png" target="/res/drawable-xxhdpi/record_delete_check_press.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_delete_normal.png" target="/res/drawable-xxhdpi/record_delete_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_delete_press.png" target="/res/drawable-xxhdpi/record_delete_press.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_next_normal.png" target="/res/drawable-xxhdpi/record_next_normal.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_next_press.png" target="/res/drawable-xxhdpi/record_next_press.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_redo.png" target="/res/drawable-xxhdpi/record_redo.png" />
|
|
<resource-file src="src/android/res/drawable-xxhdpi/record_ok.png" target="/res/drawable-xxhdpi/record_ok.png" />
|
|
|
|
<resource-file src="src/android/libs/armeabi-v7a/libavcodec.so" target="jniLibs/armeabi-v7a/libavcodec.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libavfilter.so" target="jniLibs/armeabi-v7a/libavfilter.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libavformat.so" target="jniLibs/armeabi-v7a/libavformat.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libavutil.so" target="jniLibs/armeabi-v7a/libavutil.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libfdk-aac.so" target="jniLibs/armeabi-v7a/libfdk-aac.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libjx_ffmpeg_jni.so" target="jniLibs/armeabi-v7a/libjx_ffmpeg_jni.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libswresample.so" target="jniLibs/armeabi-v7a/libswresample.so" />
|
|
<resource-file src="src/android/libs/armeabi-v7a/libswscale.so" target="jniLibs/armeabi-v7a/libswscale.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libavcodec.so" target="jniLibs/arm64-v8a/libavcodec.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libavfilter.so" target="jniLibs/arm64-v8a/libavfilter.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libavformat.so" target="jniLibs/arm64-v8a/libavformat.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libavutil.so" target="jniLibs/arm64-v8a/libavutil.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libfdk-aac.so" target="jniLibs/arm64-v8a/libfdk-aac.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libjx_ffmpeg_jni.so" target="jniLibs/arm64-v8a/libjx_ffmpeg_jni.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libswresample.so" target="jniLibs/arm64-v8a/libswresample.so" />
|
|
<resource-file src="src/android/libs/arm64-v8a/libswscale.so" target="jniLibs/arm64-v8a/libswscale.so" />
|
|
|
|
<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"/>
|
|
<header-file src="src/ios/SGRecord/SGMotionManager.h"/>
|
|
<source-file src="src/ios/SGRecord/SGMotionManager.m"/>
|
|
<header-file src="src/ios/SGRecord/SGRecordEncoder.h"/>
|
|
<source-file src="src/ios/SGRecord/SGRecordEncoder.m"/>
|
|
<header-file src="src/ios/SGRecord/SGRecordManager.h"/>
|
|
<source-file src="src/ios/SGRecord/SGRecordManager.m"/>
|
|
<header-file src="src/ios/SGRecord/SGRecordOptions.h"/>
|
|
<source-file src="src/ios/SGRecord/SGRecordOptions.m"/>
|
|
<header-file src="src/ios/SGRecord/SGRecordProgressView.h"/>
|
|
<source-file src="src/ios/SGRecord/SGRecordProgressView.m"/>
|
|
<header-file src="src/ios/SGRecord/SGRecordSuccessPreview.h"/>
|
|
<source-file src="src/ios/SGRecord/SGRecordSuccessPreview.m"/>
|
|
<header-file src="src/ios/SGRecord/SGRecordViewController.h"/>
|
|
<source-file src="src/ios/SGRecord/SGRecordViewController.m"/>
|
|
<header-file src="src/ios/SGRecord/UIButton+Convenience.h"/>
|
|
<source-file src="src/ios/SGRecord/UIButton+Convenience.m"/>
|
|
<resource-file src="src/ios/Assets.xcassets"/>
|
|
<framework src="AVFoundation.framework"/>
|
|
<framework src="AVKit.framework"/>
|
|
<framework src="CoreMotion.framework"/>
|
|
<framework src="MobileCoreServices.framework"/>
|
|
<preference name="CAMERA_USAGE_DESCRIPTION" default="This app requires access to your camera to take pictures" />
|
|
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
|
|
<string>$CAMERA_USAGE_DESCRIPTION</string>
|
|
</config-file>
|
|
<preference name="MICROPHONE_USAGE_DESCRIPTION" default="This app requires access to your microphone to take pictures" />
|
|
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
|
|
<string>$MICROPHONE_USAGE_DESCRIPTION</string>
|
|
</config-file>
|
|
<preference name="PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION" default="This app requires access to your photo library to save your pictures" />
|
|
<config-file target="*-Info.plist" parent="NSPhotoLibraryAddUsageDescription">
|
|
<string>$PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION</string>
|
|
</config-file>
|
|
</platform>
|
|
</plugin>
|