<?xml version="1.0" encoding="utf-8"?>

<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="org.a11y.brltty.android"
    android:versionCode="2"
    android:versionName="@string/app_version"
    >

  <uses-sdk android:minSdkVersion="14" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
  <uses-permission android:name="android.permission.BLUETOOTH" />
  <uses-permission android:name="android.permission.INTERNET" />

  <application
      android:label="@string/app_name"
      android:icon="@drawable/ic_launcher"
      >

    <service
        android:name="BrailleService"
        android:label="@string/app_name"
        android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
        >

      <intent-filter>
        <action android:name="android.accessibilityservice.AccessibilityService" />
      </intent-filter>

      <meta-data
          android:name="android.accessibilityservice"
          android:resource="@xml/accessibility_service"
       />

      <intent-filter>
        <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
      </intent-filter>

      <meta-data
        android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
         android:resource="@xml/usb_devices"
       />
    </service>

    <service
        android:name=".InputService"
        android:label="@string/input_service_name"
        android:permission="android.permission.BIND_INPUT_METHOD"
        >

      <intent-filter>
        <action android:name="android.view.InputMethod" />
      </intent-filter>

      <meta-data
        android:name="android.view.im"
        android:resource="@xml/input_service"
       />
    </service>

    <activity
        android:name="SettingsActivity"
        android:label="Settings"
        >
    </activity>
  </application>
</manifest>
