AndroidManifest.xml 4.06 KB
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ly.warp.sdk">

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="com.google.android.c2dm.permission.SEND" />

    <application>
        <!-- For Huawei Push -->
        <meta-data
            android:name="push_kit_auto_init_enabled"
            android:value="true" />

        <meta-data
            android:name="com.huawei.hms.client.channel.androidMarket"
            android:value="false" />

        <activity
            android:name="ly.warp.sdk.activities.WarpViewActivity"
            android:exported="false"
            android:screenOrientation="portrait" />

        <activity
            android:name="ly.warp.sdk.activities.LoyaltyActivity"
            android:exported="false"
            android:screenOrientation="portrait" />

        <activity
            android:name="ly.warp.sdk.activities.BillPaymentActivity"
            android:exported="false"
            android:screenOrientation="portrait" />

        <activity
            android:name="ly.warp.sdk.dexter.PermissionsActivity"
            android:exported="false"
            android:launchMode="singleInstance"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.Light.NoTitleBar" />

        <!-- Service used for updating user's location. -->
        <service
            android:name="ly.warp.sdk.services.UpdateUserLocationService"
            android:exported="false"
            android:permission="android.permission.BIND_JOB_SERVICE" />

        <service
            android:name="ly.warp.sdk.services.WarplyBeaconsRangingService"
            android:exported="false" />

        <!-- Service used for in app notification. -->
        <service
            android:name="ly.warp.sdk.services.WarpInAppNotificationService"
            android:exported="false" />

        <!-- FCM Service for push notifications -->
        <service
            android:name="ly.warp.sdk.services.FCMBaseMessagingService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>

        <!-- Service used for handling Huawei Push Notifications, comment if we are in Google build -->
        <service
            android:name="ly.warp.sdk.services.HMSBaseMessagingService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.huawei.push.action.MESSAGING_EVENT" />
            </intent-filter>
        </service>

        <receiver
            android:name="ly.warp.sdk.receivers.LocationChangedReceiver"
            android:exported="false" />

        <receiver
            android:name="ly.warp.sdk.receivers.ConnectivityChangedReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                <category android:name="${applicationId}" />
            </intent-filter>
        </receiver>

        <receiver
            android:name="ly.warp.sdk.receivers.BluetoothStateChangeReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="android.bluetooth.adapter.action.STATE_CHANGED" />
            </intent-filter>
        </receiver>

        <receiver
            android:name="ly.warp.sdk.receivers.WarplyInAppNotificationReceiver"
            android:exported="false" />
    </application>
</manifest>