-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
executable file
·71 lines (63 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova.plugin.spotify" version="0.1.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>SpotifyPlugin</name>
<js-module name="SpotifyPlugin" src="www/SpotifyPlugin.js">
<clobbers target="cordova.plugins.SpotifyPlugin" />
</js-module>
<preference name="URL_SCHEME_LT" />
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</config-file>
<config-file parent="/*" target="res/xml/config.xml">
<feature name="SpotifyPlugin"><param name="android-package" value="cordova.plugin.spotify.SpotifyPlugin" />
</feature>
</config-file>
<config-file target="./res/values/strings.xml" parent="/resources">
<string name="redirect_uri">$URL_SCHEME_LT</string>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.spotify.sdk.android.authentication.LoginActivity"
android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
</config-file>
<config-file parent="/*" target="AndroidManifest.xml" />
<source-file src="libs/spotify-auth-beta23-noconnect-2.20b.aar" target-dir="libs/" />
<source-file src="libs/spotify-player-beta23-noconnect-2.20b.aar" target-dir="libs/" />
<source-file src="src/android/SpotifyPlugin.java" target-dir="src/cordova/plugin/spotify/" />
<source-file src="src/android/SpotifyPluginController.java" target-dir="src/cordova/plugin/spotify/" />
<framework custom="true" src="src/android/spotify.gradle" type="gradleReference" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="SpotifyPlugin">
<param name="ios-package" value="SpotifyPlugin" onload="true" />
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>Spotify Auth</string>
<key>CFBundleURLSchemes</key>
<array>
<string>$URL_SCHEME_LT</string>
</array>
</dict>
</array>
</config-file>
<config-file target="*-Info.plist" parent="LSApplicationQueriesSchemes">
<array>
<string>spotify-action</string>
<string>spotify</string>
</array>
</config-file>
<header-file src="src/ios/SpotifyPlugin.h" />
<source-file src="src/ios/SpotifyPlugin.m" />
<framework src="src/ios/SpotifyAudioPlayback.framework" custom="true" />
<framework src="src/ios/SpotifyAuthentication.framework" custom="true" />
<framework src="src/ios/SpotifyMetadata.framework" custom="true" />
<framework src="AVFoundation.framework" />
</platform>
</plugin>