-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathplugin.xml
50 lines (47 loc) · 2.46 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
<?xml version="1.0" encoding="UTF-8"?>
<plugin id="com.sesamtv.cordova.chromecast" version="0.2.0" xmlns="http://apache.org/cordova/ns/plugins/1.0">
<name>ChromeCast</name>
<description>ChromeCast PhoneGap Plugin for Android</description>
<license>Apache 2.0</license>
<keywords>cordova,ChromeCast</keywords>
<author>Hongbo LU</author>
<!--<repo></repo>-->
<engines>
<engine name="cordova" version=">=3.2.0"/>
</engines>
<js-module src="www/CustomEvent.js" name="CustomEvent">
<clobbers target="CustomEvent"/>
</js-module>
<js-module src="www/ChromeCast.js" name="ChromeCast">
<clobbers target="ChromeCast"/>
</js-module>
<!-- android -->
<platform name="android">
<!-- target was res/xml/config.xml, at v3.4.0, changed to config.xml-->
<config-file target="config.xml" parent="/*">
<feature name="ChromeCast">
<param name="android-package" value="com.sesamtv.cordova.chromecast.ChromeCast"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</config-file>
<source-file src="src/android/ChromeCast.java" target-dir="src/com/sesamtv/cordova/chromecast"/>
<source-file src="src/android/MediaPlayer.java" target-dir="src/com/sesamtv/cordova/chromecast"/>
<!-- <lib-file src="src/android/libs/android-support-v4.jar" arch="device"/>
<lib-file src="src/android/libs/android-support-v7-appcompat.jar" arch="device"/>
<lib-file src="src/android/libs/android-support-v7-mediarouter.jar" arch="device"/> -->
</platform>
<info>
You need to install __Google Play Services__ from the `Android Extras` section using the Android SDK manager (run `android`).
You need to add the following line to your `local.properties`
android.library.reference.1=PATH_TO_ANDROID_SDK/sdk/extras/google/google_play_services/libproject/google-play-services_lib
</info>
</plugin>