1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16-->
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18          xmlns:tools="http://schemas.android.com/tools"
19          package="com.example.androidx.slice.demos">
20
21    <uses-sdk tools:overrideLibrary="androidx.slice.view, androidx.slice.builders, androidx.slice.core" />
22
23    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
24    <uses-permission android:name="android.permission.BIND_SLICE" />
25
26    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
27    <application
28        android:allowBackup="true"
29        android:icon="@mipmap/ic_launcher"
30        android:label="@string/app_name"
31        android:roundIcon="@mipmap/ic_launcher_round"
32        android:supportsRtl="true"
33        android:theme="@style/AppTheme">
34        <activity
35            android:name=".SliceBrowser"
36            android:label="@string/app_name"
37            android:theme="@style/AppTheme.NoActionBar">
38            <intent-filter>
39                <action android:name="android.intent.action.MAIN"/>
40
41                <category android:name="android.intent.category.LAUNCHER"/>
42            </intent-filter>
43            <intent-filter>
44                <action android:name="androidx.intent.SLICE_ACTION"/>
45                <category android:name="android.intent.category.DEFAULT"/>
46            </intent-filter>
47        </activity>
48
49        <provider android:authorities="com.example.androidx.slice.demos"
50                  android:name=".SampleSliceProvider"
51                  android:exported="true"
52                  android:grantUriPermissions="true">
53            <intent-filter>
54                <action android:name="androidx.intent.SLICE_ACTION"/>
55                <category android:name="android.intent.category.DEFAULT"/>
56            </intent-filter>
57        </provider>
58
59        <receiver
60            android:name=".SliceBroadcastReceiver"
61            android:exported="true" >
62            <intent-filter>
63                <action android:name="com.example.androidx.slice.action.*"/>
64            </intent-filter>
65        </receiver>
66    </application>
67
68</manifest>
69