-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
30 lines (30 loc) · 1.94 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-screen-recording" version="1.0.0"
xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<name>ScreenRecord</name>
<js-module name="ScreenRecord" src="www/ScreenRecord.js">
<clobbers target="window.ScreenRecord" />
</js-module>
<platform name="android">
<config-file parent="/*" target="res/xml/config.xml">
<feature name="ScreenRecord">
<param name="android-package" value="rs.prdc.screenrecord.ScreenRecord" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="rs.prdc.screenrecord.ScreenRecordService" android:stopWithTask="true" android:foregroundServiceType="mediaProjection"/>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</config-file>
<source-file src="src/android/ScreenRecordService.java" target-dir="src/rs/prdc/screenrecord" />
<source-file src="src/android/ScreenRecord.java" target-dir="src/rs/prdc/screenrecord" />
<resource-file src="src/android/res/drawable-hdpi/ic_notification.png" target="res/drawable-hdpi/ic_notification.png" />
<resource-file src="src/android/res/drawable-mdpi/ic_notification.png" target="res/drawable-mdpi/ic_notification.png" />
<resource-file src="src/android/res/drawable-xhdpi/ic_notification.png" target="res/drawable-xhdpi/ic_notification.png" />
<resource-file src="src/android/res/drawable-xxhdpi/ic_notification.png" target="res/drawable-xxhdpi/ic_notification.png" />
</platform>
</plugin>