forked from ghenry22/cordova-plugin-music-controls2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
76 lines (65 loc) · 3.38 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-music-controls2"
version="3.0.7">
<name>Music Controls</name>
<keywords>cordova,music,controller,controls,media,plugin,notification,lockscreen,now,playing</keywords>
<repo>https://github.com/ghenry22/cordova-plugin-music-controls2</repo>
<description>Music controls for Cordova apps</description>
<license>MIT</license>
<author>ghenry22</author>
<engines>
<engine name="cordova" version=">=4.0.0"/>
</engines>
<asset src="www/MusicControls.js" target="js/MusicControls.js"/>
<js-module src="www/MusicControls.js" name="MusicControls">
<clobbers target="MusicControls" />
</js-module>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MusicControls" >
<param name="android-package" value="com.homerours.musiccontrols.MusicControls"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.homerours.musiccontrols.MusicControlsNotificationKiller" android:stopWithTask="true" android:foregroundServiceType="mediaPlayback"></service>
</config-file>
<framework src="com.android.support:support-v4:28.0.0" />
<source-file src="src/android/MusicControls.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/MediaSessionCallback.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/MusicControlsBroadcastReceiver.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/MusicControlsNotification.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/MusicControlsNotificationKiller.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/MusicControlsInfos.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/MusicControlsServiceConnection.java" target-dir="src/com/homerours/musiccontrols" />
<source-file src="src/android/KillBinder.java" target-dir="src/com/homerours/musiccontrols" />
</platform>
<!-- windows -->
<platform name="windows">
<js-module src="src/windows/MusicControlsProxy.js" name="MusicControlsProxy">
<merges target="" />
</js-module>
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="MusicControls">
<param name="ios-package" value="MusicControls" />
</feature>
</config-file>
<header-file src="src/ios/CDVViewController+MusicControls.h" />
<source-file src="src/ios/CDVViewController+MusicControls.m" />
<header-file src="src/ios/MusicControls.h" />
<source-file src="src/ios/MusicControls.m" />
<header-file src="src/ios/MusicControlsInfo.h" />
<source-file src="src/ios/MusicControlsInfo.m" />
<framework src="MediaPlayer.framework" />
</platform>
</plugin>