forked from Festify/cordova-spotify-oauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
55 lines (47 loc) · 2.16 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
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-spotify-oauth" version="0.1.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-spotify-oauth</name>
<js-module name="cordova-spotify-oauth" src="www/build/spotify-oauth.min.js">
<merges target="cordova.plugins"/>
</js-module>
<dependency id="es6-promise-plugin"/>
<platform name="android">
<config-file target="config.xml" parent="/*">
<feature name="SpotifyOAuth">
<param name="android-package" value="rocks.festify.SpotifyOAuthPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity
android:exported="true"
android:name="com.spotify.sdk.android.auth.LoginActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
</config-file>
<source-file src="src/android/SpotifyOAuthPlugin.java" target-dir="src/rocks/festify"/>
<framework src="src/android/build.gradle" custom="true" type="gradleReference" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="SpotifyOAuth">
<param name="ios-package" value="SpotifyOAuthPlugin"/>
</feature>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>yourhost</string>
<key>CFBundleURLSchemes</key>
<array>
<string>yourscheme</string>
</array>
</dict>
</array>
</config-file>
<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>
<source-file src="src/ios/SpotifyOAuthPlugin.swift"/>
<header-file src="src/ios/SpotifyOAuth-Bridging-Header.h"/>
</platform>
</plugin>