<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="br.com.meutudo.rnzendeskchat.test" >

    <uses-sdk
        android:minSdkVersion="16"
        android:targetSdkVersion="28" />

    <instrumentation
        android:name="android.test.InstrumentationTestRunner"
        android:functionalTest="false"
        android:handleProfiling="false"
        android:label="Tests for br.com.meutudo.rnzendeskchat.test"
        android:targetPackage="br.com.meutudo.rnzendeskchat.test" />

    <uses-permission android:name="android.permission.INTERNET" /> <!-- Listen to connection state in ConnectionPath. We don't need it for CONNECTIVITY_ACTION, as only disconnect event is being broadcast even without this permission. It is needed for reading active network info. -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- For starting a foreground service on API 28 and above -->
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

    <application
        android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
        android:debuggable="true" >
        <uses-library android:name="android.test.runner" />
        <!-- Restrict service only to the host app. Will not allow apps outside of the one that implements the Chat SDK to start and bind to the service -->
        <service
            android:name="com.zopim.android.sdk.api.ChatService"
            android:exported="false" />

        <provider
            android:name="com.zendesk.belvedere.BelvedereFileProvider"
            android:authorities="br.com.meutudo.rnzendeskchat.test.belvedere.attachments"
            android:exported="false"
            android:grantUriPermissions="true" >
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/belvedere_attachment_storage" />
        </provider>
    </application>

</manifest>