forked from Festify/cordova-spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
73 lines (61 loc) · 3.29 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="rocks.festify.cordova-spotify" version="1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-spotify</name>
<hook type="before_plugin_install" src="package.sh" />
<js-module name="cordova-spotify" src="www/build/cordova-spotify.js">
<clobbers target="cordova.plugins" />
</js-module>
<platform name="android">
<hook type="before_plugin_install" src="install-android.sh" />
<config-file target="config.xml" parent="/*">
<feature name="SpotifyConnector">
<param name="android-package" value="rocks.festify.CordovaSpotify" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:name="com.spotify.sdk.android.authentication.LoginActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
</config-file>
<source-file src="src/android/ConnectionEventsHandler.java" target-dir="src/rocks/festify" />
<source-file src="src/android/CordovaSpotify.java" target-dir="src/rocks/festify" />
<source-file src="src/android/Emitter.java" target-dir="src/rocks/festify" />
<source-file src="src/android/PlayerEventsHandler.java" target-dir="src/rocks/festify" />
<!--
Because Cordova doesn't like linking to AARs, we do some black magic
gradle trickery to link against the file.
-->
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
<resource-file
src="src/android/spotify-sdk/spotify-player-24-noconnect-2.20b.aar"
target="libs/spotify-sdk.aar" />
<resource-file
src="src/android/spotify-auth/auth-lib/build/outputs/aar/spotify-android-auth-1.0.0.aar"
target="libs/spotify-auth.aar" />
</platform>
<platform name="ios">
<hook type="before_plugin_install" src="install-ios.sh" />
<config-file target="config.xml" parent="/*">
<feature name="SpotifyConnector">
<param name="ios-package" value="CordovaSpotify" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>audio</string>
</array>
</config-file>
<header-file src="src/ios/CordovaSpotify.h" />
<source-file src="src/ios/CordovaSpotify.m" />
<header-file src="src/ios/CordovaEventEmitter.h" />
<source-file src="src/ios/CordovaEventEmitter.m" />
<header-file src="src/ios/AudioStreamingDelegate.h" />
<source-file src="src/ios/AudioStreamingDelegate.m" />
<header-file src="src/ios/AudioStreamingPlaybackDelegate.h" />
<source-file src="src/ios/AudioStreamingPlaybackDelegate.m" />
<framework src="src/ios/spotify-sdk/SpotifyAudioPlayback.framework" custom="true" />
<framework src="src/ios/spotify-sdk/SpotifyAuthentication.framework" custom="true" />
<framework src="src/ios/spotify-sdk/SpotifyMetadata.framework" custom="true" />
<framework src="AVFoundation.framework" />
</platform>
</plugin>