cordova-galaxygear
Version:
Allows communication with Samsung Gear 2 Series Tizen applications and Cordova applications.
92 lines (70 loc) • 4.33 kB
text/xml
<plugin xmlns="http://cordova.apache.org/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-galaxygear"
version="1.0.0">
<name>Galaxy Gear</name>
<license>Apache 2.0</license>
<description>Allows communication with Samsung Gear 2 Series Tizen applications and Cordova applications.</description>
<author>Trent Gardner</author>
<license>Apache 2.0</license>
<keywords>GalaxyGear, Android, Samsung, Gear, Watch, Wearble</keywords>
<repo>https://github.com/tgardner/cordova-galaxygear.git</repo>
<issue>https://github.com/tgardner/cordova-galaxygear/issues</issue>
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<platform name="android">
<js-module src="www/galaxygear.js" name="GalaxyGear">
<clobbers target="GalaxyGear" />
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="galaxygear" >
<param name="android-package" value="net.trentgardner.cordova.galaxygear.GalaxyGearPlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="com.samsung.accessory.permission.ACCESSORY_FRAMEWORK" />
<uses-permission android:name="com.samsung.wmanager.APP" />
<uses-permission android:name="com.samsung.wmanager.ENABLE_NOTIFICATION" />
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
<uses-permission android:name="com.samsung.WATCH_APP_TYPE.Integrated"/>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="net.trentgardner.cordova.galaxygear.GearProviderService" android:process=":remote">
<intent-filter>
<action android:name="net.trentgardner.cordova.galaxygear.GearProviderService" />
</intent-filter>
</service>
<receiver android:name="com.samsung.android.sdk.accessory.ServiceConnectionIndicationBroadcastReceiver" >
<intent-filter>
<action android:name="com.samsung.accessory.action.SERVICE_CONNECTION_REQUESTED" />
</intent-filter>
</receiver>
<receiver android:name="com.samsung.android.sdk.accessory.RegisterUponInstallReceiver" >
<intent-filter>
<action android:name="com.samsung.accessory.action.REGISTER_AGENT" />
</intent-filter>
</receiver>
<meta-data
android:name="GearAppType"
android:value="wgt"/>
<meta-data
android:name="AccessoryServicesLocation"
android:value="/res/xml/accessoryservices.xml" />
</config-file>
<framework src="src/android/galaxygear.gradle" custom="true" type="gradleReference"/>
<lib-file src="libs/accessory-v2.5.3.jar"/>
<lib-file src="libs/sdk-v1.0.0.jar"/>
<source-file src="xml/accessoryservices.xml" target-dir="res/xml" />
<source-file src="src/android/GalaxyGearPlugin.java" target-dir="src/net/trentgardner/cordova/galaxygear" />
<source-file src="src/android/GearProviderService.java" target-dir="src/net/trentgardner/cordova/galaxygear" />
<source-file src="aidl/android/GearMessageApi.aidl" target-dir="src/net/trentgardner/cordova/galaxygear" />
<source-file src="aidl/android/GearMessageListener.aidl" target-dir="src/net/trentgardner/cordova/galaxygear" />
<!-- Hack for Cordova android 7, not correctly loading aidl -->
<source-file src="aidl/android/GearMessageApi.aidl" target-dir="app/src/main/aidl/net/trentgardner/cordova/galaxygear" />
<source-file src="aidl/android/GearMessageListener.aidl" target-dir="app/src/main/aidl/net/trentgardner/cordova/galaxygear" />
</platform>
</plugin>