1<?xml version="1.0" encoding="utf-8"?>
2<manifest
3  package="host.exp.exponent"
4  xmlns:android="http://schemas.android.com/apk/res/android"
5  xmlns:tools="http://schemas.android.com/tools">
6
7  <permission
8    android:name="host.exp.exponent.permission.C2D_MESSAGE"
9    android:protectionLevel="signature"/>
10
11  <!-- These are required permissions to make the app run -->
12  <uses-permission android:name="host.exp.exponent.permission.C2D_MESSAGE" />
13  <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
14  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
15  <uses-permission android:name="android.permission.INTERNET" />
16  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
17  <uses-permission android:name="android.permission.WAKE_LOCK" />
18
19  <!-- ADD PERMISSIONS HERE -->
20  <!-- BEGIN OPTIONAL PERMISSIONS -->
21  <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
22  <uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
23  <uses-permission android:name="android.permission.READ_PHONE_STATE" />
24  <uses-permission android:name="android.permission.USE_FINGERPRINT" />
25  <uses-permission android:name="android.permission.VIBRATE" />
26  <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
27  <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
28
29  <!-- These require runtime permissions on M -->
30  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
31  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
32  <uses-permission android:name="android.permission.CAMERA" />
33  <uses-permission android:name="android.permission.READ_CONTACTS" />
34  <uses-permission android:name="android.permission.READ_CALENDAR" />
35  <uses-permission android:name="android.permission.WRITE_CALENDAR" />
36  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
37  <uses-permission android:name="android.permission.RECORD_AUDIO" />
38  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
39  <uses-permission android:name="android.permission.WRITE_SETTINGS" />
40  <!-- END OPTIONAL PERMISSIONS -->
41
42  <!-- ADD TEST PERMISSIONS HERE -->
43
44  <uses-feature android:glEsVersion="0x00020000" android:required="false" />
45  <uses-feature android:name="android.software.leanback" android:required="false" />
46  <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
47
48  <application
49    android:name=".MainApplication"
50    android:allowBackup="true"
51    android:icon="@mipmap/ic_launcher"
52    android:label="${appLabel}"
53    android:largeHeap="true"
54    android:requestLegacyExternalStorage="true"
55    android:usesCleartextTraffic="true">
56
57    <activity
58      android:name=".LauncherActivity"
59      android:exported="true"
60      android:launchMode="singleTask"
61      android:theme="@android:style/Theme.Translucent.NoTitleBar">
62      <!-- START LAUNCHER INTENT FILTERS -->
63      <intent-filter>
64        <data android:scheme="exp"/>
65        <data android:scheme="exps"/>
66
67        <action android:name="android.intent.action.VIEW"/>
68
69        <category android:name="android.intent.category.DEFAULT"/>
70        <category android:name="android.intent.category.BROWSABLE"/>
71      </intent-filter>
72
73      <intent-filter android:autoVerify="true">
74        <data
75          android:host="expo.io"
76          android:path="/expo-go"
77          android:scheme="https"/>
78        <data
79          android:host="expo.io"
80          android:path="/expo-go"
81          android:scheme="http"/>
82
83        <data
84          android:host="expo.dev"
85          android:path="/expo-go"
86          android:scheme="https"/>
87        <data
88          android:host="expo.dev"
89          android:path="/expo-go"
90          android:scheme="http"/>
91
92        <action android:name="android.intent.action.VIEW"/>
93
94        <category android:name="android.intent.category.DEFAULT"/>
95        <category android:name="android.intent.category.BROWSABLE"/>
96      </intent-filter>
97
98      <!-- This has to be separate from the exp[s]:// scheme filter. No idea why -->
99      <intent-filter>
100        <data
101          android:host="exp.host"
102          android:pathPrefix="/@"
103          android:scheme="http"/>
104        <data
105          android:host="exp.host"
106          android:pathPrefix="/@"
107          android:scheme="https"/>
108        <data
109          android:host="*.exp.direct"
110          android:pathPattern=".*"
111          android:scheme="http"/>
112        <data
113          android:host="*.exp.direct"
114          android:pathPattern=".*"
115          android:scheme="https"/>
116
117        <action android:name="android.intent.action.VIEW"/>
118
119        <category android:name="android.intent.category.DEFAULT"/>
120        <category android:name="android.intent.category.BROWSABLE"/>
121      </intent-filter>
122
123      <intent-filter>
124          <category android:name="android.intent.category.DEFAULT" />
125          <category android:name="android.intent.category.BROWSABLE" />
126          <action android:name="expo.modules.notifications.OPEN_APP_ACTION"/>
127      </intent-filter>
128      <!-- END LAUNCHER INTENT FILTERS -->
129    </activity>
130
131    <activity
132      android:name=".experience.ExperienceActivity"
133      android:exported="true"
134      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
135      android:theme="@style/Theme.Exponent.Light"
136      android:windowSoftInputMode="adjustResize">
137    </activity>
138
139    <activity
140      android:name=".MainActivity"
141      android:exported="true"
142      android:launchMode="singleTask"
143      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
144      android:theme="@style/Theme.Exponent.Splash"
145      android:windowSoftInputMode="adjustResize">
146      <!-- ADD DETACH SCHEME HERE -->
147      <!-- ADD DETACH INTENT FILTERS HERE -->
148      <!-- ADD DETACH APP SPECIFIC INTENT FILTERS -->
149    </activity>
150
151    <activity
152      android:name=".experience.HomeActivity"
153      android:exported="true"
154      android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
155      android:label="${appLabel}"
156      android:launchMode="singleTask"
157      android:screenOrientation="portrait"
158      android:theme="@style/Theme.Exponent.HomeActivity">
159      <!-- START HOME INTENT FILTERS -->
160      <intent-filter>
161        <action android:name="android.intent.action.MAIN"/>
162
163        <category android:name="android.intent.category.DEFAULT"/>
164        <category android:name="android.intent.category.LAUNCHER"/>
165      </intent-filter>
166      <intent-filter>
167        <data android:scheme="expauth"/>
168
169        <action android:name="android.intent.action.VIEW"/>
170
171        <category android:name="android.intent.category.DEFAULT"/>
172        <category android:name="android.intent.category.BROWSABLE"/>
173      </intent-filter>
174      <intent-filter>
175        <data android:scheme="expo-home"/>
176
177        <action android:name="android.intent.action.VIEW"/>
178
179        <category android:name="android.intent.category.DEFAULT"/>
180        <category android:name="android.intent.category.BROWSABLE"/>
181      </intent-filter>
182      <!-- END HOME INTENT FILTERS -->
183    </activity>
184
185    <activity
186      android:name=".experience.TvActivity"
187      android:exported="true"
188      android:label="${appLabel}"
189      android:theme="@style/Theme.Exponent.Light"
190      android:screenOrientation="landscape">
191     <intent-filter>
192       <action android:name="android.intent.action.MAIN" />
193       <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
194     </intent-filter>
195   </activity>
196
197
198
199    <activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
200    <!-- WHEN_PREPARING_SHELL_REMOVE_FROM_HERE -->
201    <!-- ADD DEV SETTINGS HERE -->
202    <!-- BEGIN_SDK_44 -->
203    <activity android:name="abi44_0_0.com.facebook.react.devsupport.DevSettingsActivity"/>
204    <!-- END_SDK_44 -->
205    <!-- BEGIN_SDK_43 -->
206    <activity android:name="abi43_0_0.com.facebook.react.devsupport.DevSettingsActivity"/>
207    <!-- END_SDK_43 -->
208    <!-- WHEN_PREPARING_SHELL_REMOVE_TO_HERE -->
209
210    <activity
211        android:name="net.openid.appauth.RedirectUriReceiverActivity"
212        android:exported="true"
213        tools:node="replace">
214      <intent-filter>
215        <action android:name="android.intent.action.VIEW"/>
216        <category android:name="android.intent.category.DEFAULT"/>
217        <category android:name="android.intent.category.BROWSABLE"/>
218        <data android:scheme="host.exp.exponent" android:path="oauthredirect"/>
219      </intent-filter>
220    </activity>
221
222    <activity
223      android:name=".experience.ErrorActivity"
224      android:theme="@style/Theme.Exponent.Dark"
225      android:screenOrientation="portrait">
226    </activity>
227
228    <activity
229      android:name="com.facebook.FacebookActivity"
230      android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
231      android:label="${appLabel}"
232      android:theme="@android:style/Theme.Translucent.NoTitleBar"
233      tools:replace="android:theme" />
234
235    <activity
236      android:name="com.facebook.CustomTabActivity"
237      android:exported="true">
238      <intent-filter>
239        <action android:name="android.intent.action.VIEW" />
240        <category android:name="android.intent.category.DEFAULT" />
241        <category android:name="android.intent.category.BROWSABLE" />
242        <!-- REPLACE WITH FACEBOOK SCHEME -->
243      </intent-filter>
244    </activity>
245
246    <activity
247      android:name="com.facebook.ads.InterstitialAdActivity"
248      android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
249      android:label="${appLabel}"
250      android:theme="@android:style/Theme.Translucent.NoTitleBar" />
251
252    <service
253      android:name=".ExponentIntentService"
254      android:exported="false" />
255
256    <!-- Analytics -->
257    <receiver
258      android:name="host.exp.exponent.referrer.InstallReferrerReceiver"
259      android:exported="true">
260      <intent-filter>
261        <action android:name="com.android.vending.INSTALL_REFERRER" />
262      </intent-filter>
263    </receiver>
264
265    <!--
266    This crashes: https://code.google.com/p/analytics-issues/issues/detail?id=667
267    TODO: turn it back on when it's fixed
268    <service
269      android:name="com.google.android.gms.analytics.CampaignTrackingService"
270      android:enabled="true"
271      android:exported="false" />-->
272
273    <receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver"
274              android:enabled="true">
275      <intent-filter>
276        <action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />
277      </intent-filter>
278    </receiver>
279
280    <service android:name="com.google.android.gms.analytics.AnalyticsService"
281             android:enabled="true"
282             android:exported="false"/>
283
284    <!-- FCM -->
285    <service
286      android:name=".fcm.ExpoFcmMessagingService"
287      android:exported="true">
288      <intent-filter>
289        <action android:name="com.google.firebase.MESSAGING_EVENT" />
290      </intent-filter>
291    </service>
292    <service
293      android:name=".fcm.FcmRegistrationIntentService"
294      android:exported="false">
295    </service>
296    <!-- Applied to Firebase data messages -->
297    <meta-data
298      android:name="expo.modules.notifications.default_notification_icon"
299      android:resource="@drawable/shell_notification_icon" />
300    <meta-data
301      android:name="expo.modules.notifications.default_notification_color"
302      android:resource="@color/notification_icon_color" />
303
304    <!-- Applied to Firebase notification messages -->
305    <meta-data
306      android:name="com.google.firebase.messaging.default_notification_icon"
307      android:resource="@drawable/shell_notification_icon" />
308    <meta-data
309      android:name="com.google.firebase.messaging.default_notification_color"
310      android:resource="@color/notification_icon_color" />
311
312
313    <!-- ImagePicker native module -->
314    <activity
315      android:name="com.canhub.cropper.CropImageActivity"
316      android:theme="@style/Base.Theme.AppCompat">
317    </activity>
318
319    <!-- ADD GOOGLE MAPS CONFIG HERE -->
320    <!-- BEGIN GOOGLE MAPS CONFIG -->
321    <meta-data
322      android:name="com.google.android.geo.API_KEY"
323      android:value="${GOOGLE_MAPS_API_KEY}"/>
324    <!-- END GOOGLE MAPS CONFIG -->
325
326    <!-- ADD GOOGLE MOBILE ADS CONFIG HERE -->
327    <!-- BEGIN GOOGLE MOBILE ADS CONFIG -->
328    <meta-data
329      android:name="com.google.android.gms.ads.APPLICATION_ID"
330      android:value="ca-app-pub-3940256099942544~3347511713"/>
331    <meta-data android:name="com.google.android.gms.ads.DELAY_APP_MEASUREMENT_INIT" android:value="true"/>
332    <!-- END GOOGLE MOBILE ADS CONFIG -->
333
334    <!-- ADD BRANCH CONFIG HERE -->
335
336    <!-- ADD FACEBOOK APP ID CONFIG HERE -->
337    <!-- ADD FACEBOOK APP DISPLAY NAME CONFIG HERE -->
338    <!-- Tags below need to be in one line with no whitespace after android:value -->
339    <!-- in order for XDL to be able to replace values in them -->
340    <meta-data android:name="com.facebook.sdk.AutoLogAppEventsEnabled" android:value="false"/>
341    <meta-data android:name="com.facebook.sdk.AutoInitEnabled" android:value="false"/>
342    <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="false"/>
343
344  </application>
345
346</manifest>
347