summaryrefslogtreecommitdiffstats
path: root/app/src/main/AndroidManifest.xml
blob: 0719ab8043af91ce9fd2de37fc5128e14ce02a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright 2017 Thomas Schneider

    This file is a part of Mastalab

    This program is free software; you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation; either version 3 of the
    License, or (at your option) any later version.

    Mastalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
    the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
    Public License for more details.

    You should have received a copy of the GNU General Public License along with Mastalab; if not,
    see <http://www.gnu.org/licenses>
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:installLocation="auto"
    package="fr.gouv.etalab.mastodon">


    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-feature android:name="android.hardware.camera" android:required="false" />
    <application
        android:name=".activities.MainApplication"
        android:allowBackup="false"
        tools:replace="android:allowBackup"
        android:usesCleartextTraffic="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:hardwareAccelerated="true"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppThemeDark">

        <service
            android:name=".services.LiveNotificationService"
            android:exported="false"/>

        <service android:name=".services.BackupStatusService"
            android:exported="false"/>
        <service android:name=".services.BackupStatusInDataBaseService"
            android:exported="false"/>
        <receiver android:name=".services.RestartLiveNotificationReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="RestartLiveNotificationService" />
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <receiver android:name=".services.StopLiveNotificationReceiver"
            android:exported="false">
            <intent-filter>
                <action android:name="StopLiveNotificationReceiver" />
            </intent-filter>
        </receiver>
        <service
            android:name=".services.StreamingHomeTimelineService"
            android:exported="false"/>
        <service
            android:name=".services.StreamingFederatedTimelineService"
            android:exported="false"/>
        <service
            android:name=".services.StreamingLocalTimelineService"
            android:exported="false"/>

        <activity
            android:name=".activities.MainActivity"
            android:label="@string/app_name"
            android:launchMode="singleTop"
            android:windowSoftInputMode = "adjustResize"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:theme="@style/AppThemeDark_NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="text/plain" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="image/*" />
                <data android:mimeType="video/*" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND_MULTIPLE" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="image/*" />
                <data android:mimeType="video/*" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <!-- The app is a good candidate for URL in https://domain.name/@xxxxxx-->
                <!-- It should cover every URLs for statuses but some others not related to mastodon matching this scheme -->
                <data
                    android:scheme="https"
                    android:host="*"
                    android:pathPrefix="/@"
                    />
            </intent-filter>
            <intent-filter
                >
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="file" />
                <data android:mimeType="*/*" />
                <data android:host="*" />
                <data android:pathPattern=".*\\.fedilab" />
            </intent-filter>
        </activity>
        <activity android:name=".activities.LoginActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
           >
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:host="backtomastalab" android:scheme="mastalab" />
            </intent-filter>
        </activity>
        <activity android:name=".activities.ShowAccountActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.TootInfoActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.HashTagActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.WebviewConnectActivity"
            android:label="@string/app_name"
            android:configChanges="keyboardHidden|orientation|screenSize"
            />
        <activity android:name=".activities.PeertubeActivity"
            android:label="@string/app_name"
            android:configChanges="keyboardHidden|orientation|screenSize"
            />
        <activity android:name=".activities.WebviewActivity"
            android:label="@string/app_name"
            android:configChanges="keyboardHidden|orientation|screenSize"
            />
        <activity android:name=".activities.MediaActivity"
            android:label="@string/app_name"
            android:theme="@style/Theme.Transparent"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:noHistory="true"
            />
        <activity android:name=".activities.SearchResultActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.SearchResultTabActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.ListActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.WhoToFollowActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.ShowConversationActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.OwnerStatusActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            android:launchMode="singleTask"
            />
        <activity android:name=".activities.LanguageActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.AboutActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.OpencollectiveActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.PartnerShipActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.InstanceActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.PrivacyActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.TootActivity"
            android:launchMode="singleTop"
            android:windowSoftInputMode="adjustResize"
            android:fitsSystemWindows="true"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            android:theme="@style/AppTheme_NoActionBar"
            />
        <activity android:name=".activities.EditProfileActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.CustomSharingActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.InstanceHealthActivity"
            android:theme="@style/Base.V7.Theme.AppCompat.Dialog"
            android:excludeFromRecents="true"/>
        <activity android:name=".activities.ProxyActivity"
            android:theme="@style/Base.V7.Theme.AppCompat.Dialog"
            android:excludeFromRecents="true"/>
        <activity android:name=".activities.ManageAccountsInListActivity"
            android:windowSoftInputMode="adjustPan"
            android:theme="@style/Base.V7.Theme.AppCompat.Dialog"
            android:excludeFromRecents="true"/>
        <activity android:name=".activities.TagCacheActivity"
            android:theme="@style/Base.V7.Theme.AppCompat.Dialog"
            android:excludeFromRecents="true"
            />
        <activity android:name=".activities.PeertubeUploadActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <activity android:name=".activities.PeertubeEditUploadActivity"
            android:windowSoftInputMode="stateAlwaysHidden"
            android:configChanges="orientation|screenSize"
            android:label="@string/app_name"
            />
        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="fr.gouv.etalab.mastodon.fileProvider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths"/>
        </provider>
    </application>
</manifest>