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

    <!-- Required -->
    <permission
        android:name="com.qhclh.ytzh.permission.JPUSH_MESSAGE"
        android:protectionLevel="signature" />
    <!-- 网络权限 -->
    <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" />
    <uses-permission android:name="android.permission.CAMERA" />

    <!-- Required -->
    <uses-permission android:name="com.qhclh.ytzh.permission.JPUSH_MESSAGE" />
    <uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />

    <!-- Optional. Required for location feature -->
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <!-- 用于开启 debug 版本的应用在6.0 系统上 层叠窗口权限 -->
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
    <uses-permission android:name="android.permission.GET_TASKS" />

    <application
        android:name=".home.MyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <!--图片选择器-->
        <provider
            android:name=".utils.MyProvider"
            android:authorities="com.yancy.gallerypickdemo.fileprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>

        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="${applicationId}.fileprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>

        <activity
            android:name=".splash.SplashActivity"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".home.MainActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".home.SetUrlActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".login.LoginActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.planorder.OrderActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.planorder.OrderOActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.scan.ScanResultActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.scan.FumudaiScanResultActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.carsmannage.CarsManageActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.carsmannage.FumudaiCarsManageActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.carsmannage.FumudaiCarsinfoActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.carsmannage.MaojiCarsinfoActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.planorder.CarsActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.planorder.ChickenDriverBillActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.planorder.WarningActivity"
            android:screenOrientation="portrait" />

        <activity
            android:name=".work.breedpoultry.DatanalysisActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.breedpoultry.DatanalysisSActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.tablepoultry.TablepoultryActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.productiondaily.ProductiondailyActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.productiondaily.ProductiondailyInfoActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.productiondailyw.ProductiondailywActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.productiondailyw.WdailyActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.productiondailyw.WriteDActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".work.tablepoultry.ReportActivity"
            android:screenOrientation="portrait" />

        <activity
            android:name=".work.productiondaily.ShowInfoActivity"
            android:screenOrientation="portrait" />

        <activity
            android:name=".index.JPInfoActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.shangpin.InHouseActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.shangpin.InHouseInfoActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.shangpin.PianquinfosActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name=".index.fumudai.ThreeTypeActivity"
            android:screenOrientation="portrait" />

        <!-- 设置竖屏扫码 -->
        <activity
            android:name=".work.scan.ScanActivity"
            android:screenOrientation="portrait"
            android:stateNotNeeded="true"
            android:theme="@style/zxing_CaptureTheme"
            android:windowSoftInputMode="stateAlwaysHidden" />

        <!-- 友盟 -->
        <meta-data
            android:name="UMENG_APPKEY"
            android:value="5a1b5deaf43e4825b200070d" />
        <meta-data
            android:name="UMENG_CHANNEL"
            android:value="Channel ID" />

        <activity
            android:name=".me.MineInfoActivity"
            android:label="@string/title_activity_mine_info"
            android:theme="@style/AppTheme" />
        <activity android:name=".me.SettingActivity"></activity>


        <!-- Required SDK 核心功能-->
        <!-- 可配置android:process参数将PushService放在其他进程中 -->
        <service
            android:name="cn.jpush.android.service.PushService"
            android:enabled="true"
            android:exported="false">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.REGISTER" />
                <action android:name="cn.jpush.android.intent.REPORT" />
                <action android:name="cn.jpush.android.intent.PushService" />
                <action android:name="cn.jpush.android.intent.PUSH_TIME" />
            </intent-filter>
        </service>


        <!-- since 3.0.9 Required SDK 核心功能-->
        <provider
            android:name="cn.jpush.android.service.DataProvider"
            android:authorities="com.qhclh.ytzh.DataProvider"
            android:exported="true" />

        <!-- since 1.8.0 option 可选项。用于同一设备中不同应用的JPush服务相互拉起的功能。 -->
        <!-- 若不启用该功能可删除该组件，将不拉起其他应用也不能被其他应用拉起 -->
        <service
            android:name="cn.jpush.android.service.DaemonService"
            android:enabled="true"
            android:exported="true">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.DaemonService" />
                <category android:name="com.qhclh.ytzh" />
            </intent-filter>
        </service>

        <!-- Required SDK核心功能-->
        <receiver
            android:name="cn.jpush.android.service.PushReceiver"
            android:enabled="true">
            <intent-filter android:priority="1000">
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY" />
                <category android:name="com.qhclh.ytzh" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.USER_PRESENT" />
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
            </intent-filter>
            <!-- Optional -->
            <intent-filter>
                <action android:name="android.intent.action.PACKAGE_ADDED" />
                <action android:name="android.intent.action.PACKAGE_REMOVED" />

                <data android:scheme="package" />
            </intent-filter>
        </receiver>

        <!-- Required SDK核心功能-->
        <activity
            android:name="cn.jpush.android.ui.PushActivity"
            android:configChanges="orientation|keyboardHidden"
            android:exported="false"
            android:theme="@android:style/Theme.NoTitleBar">
            <intent-filter>
                <action android:name="cn.jpush.android.ui.PushActivity" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="com.qhclh.ytzh" />
            </intent-filter>
        </activity>

        <!-- SDK核心功能-->
        <activity
            android:name="cn.jpush.android.ui.PopWinActivity"
            android:configChanges="orientation|keyboardHidden"
            android:exported="false"
            android:theme="@style/MyDialogStyle">
            <intent-filter>
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="com.qhclh.ytzh" />
            </intent-filter>
        </activity>

        <!-- Required SDK核心功能-->
        <service
            android:name="cn.jpush.android.service.DownloadService"
            android:enabled="true"
            android:exported="false"></service>

        <!-- Required SDK核心功能-->
        <receiver android:name="cn.jpush.android.service.AlarmReceiver" />

        <!-- Required since 3.0.7 -->
        <!-- 新的tag/alias接口结果返回需要开发者配置一个自定的广播 -->
        <!-- 该广播需要继承JPush提供的JPushMessageReceiver类, 并如下新增一个 Intent-Filter -->
        <receiver
            android:name=".index.MyJPReceiver"
            android:enabled="true">
            <intent-filter>
                <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />
                <category android:name="com.qhclh.ytzh" />
            </intent-filter>
        </receiver>

        <!-- User defined. 用户自定义的广播接收器-->
        <receiver
            android:name=".index.MyBoradCReceiver"
            android:enabled="true">
            <intent-filter>
                <!--Required 用户注册SDK的intent-->
                <action android:name="cn.jpush.android.intent.REGISTRATION" />
                <!--Required 用户接收SDK消息的intent-->
                <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
                <!--Required 用户接收SDK通知栏信息的intent-->
                <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
                <!--Required 用户打开自定义通知栏的intent-->
                <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
                <!-- 接收网络变化 连接/断开 since 1.6.3 -->
                <action android:name="cn.jpush.android.intent.CONNECTION" />
                <category android:name="com.qhclh.ytzh" />
            </intent-filter>
        </receiver>

        <!-- Required. For publish channel feature -->
        <!-- JPUSH_CHANNEL 是为了方便开发者统计APK分发渠道。-->
        <!-- 例如: -->
        <!-- 发到 Google Play 的APK可以设置为 google-play; -->
        <!-- 发到其他市场的 APK 可以设置为 xxx-market。 -->
        <meta-data
            android:name="JPUSH_CHANNEL"
            android:value="developer-default" />
        <!-- Required. AppKey copied from Portal -->
        <meta-data
            android:name="JPUSH_APPKEY"
            android:value="2825a92d76c57b701e2d8308" />

        <activity
            android:name=".index.GetjpActivity"
            android:screenOrientation="portrait" />
    </application>

</manifest>