mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-04-01 10:22:38 +00:00
99 lines
4.2 KiB
XML
99 lines
4.2 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
package="org.communiquons.comunic">
|
|
|
|
<!-- Internet connection is required to access to the API -->
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<!-- These permissions are required to make video calls (WebRTC) -->
|
|
<uses-feature android:name="android.hardware.camera" />
|
|
<uses-feature android:name="android.hardware.camera.autofocus" />
|
|
|
|
<uses-permission android:name="android.permission.CAMERA" />
|
|
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
|
|
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
|
|
|
<!-- This is required for independent push notifications service to work
|
|
(when FCM service can not be used) -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
|
|
|
|
<!-- This is required on Android 11+ for image picker -->
|
|
<queries>
|
|
<intent>
|
|
<action android:name="android.media.action.IMAGE_CAPTURE" />
|
|
</intent>
|
|
|
|
<intent>
|
|
<action android:name="android.media.action.VIDEO_CAPTURE" />
|
|
</intent>
|
|
</queries>
|
|
|
|
|
|
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
|
calls FlutterMain.startInitialization(this); in its onCreate method.
|
|
In most cases you can leave this as-is, but you if you want to provide
|
|
additional functionality it is fine to subclass or reimplement
|
|
FlutterApplication and put your custom class here. -->
|
|
<application
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:label="Comunic"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
tools:ignore="GoogleAppIndexingWarning">
|
|
|
|
|
|
<meta-data
|
|
android:name="flutterEmbedding"
|
|
android:value="2" />
|
|
|
|
<!-- Default Firebase push notifications icons -->
|
|
<meta-data
|
|
android:name="com.google.firebase.messaging.default_notification_icon"
|
|
android:resource="@drawable/ic_notifications" />
|
|
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
|
android:hardwareAccelerated="true"
|
|
android:launchMode="singleTop"
|
|
android:theme="@style/LaunchTheme"
|
|
android:windowSoftInputMode="adjustResize"
|
|
android:exported="true">
|
|
<!-- This keeps the window background of the activity showing
|
|
until Flutter renders its first frame. It can be removed if
|
|
there is no splash screen (such as the default splash screen
|
|
defined in @style/LaunchTheme). -->
|
|
|
|
<meta-data
|
|
android:name="io.flutter.embedding.android.NormalTheme"
|
|
android:resource="@style/NormalTheme" />
|
|
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
|
|
<!-- This let the image cropper work -->
|
|
<activity
|
|
android:name="com.yalantis.ucrop.UCropActivity"
|
|
android:screenOrientation="portrait"
|
|
android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
|
|
|
|
<!-- Independent push notifications service -->
|
|
<service android:name=".independentnotifications.NotificationsService" />
|
|
|
|
<!-- Boot receiver to start independent push notifications service -->
|
|
<receiver android:name=".BootReceiver"
|
|
android:enabled="true"
|
|
android:exported="false">
|
|
<intent-filter>
|
|
<!-- Cold boot -->
|
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
|
</intent-filter>
|
|
</receiver>
|
|
</application>
|
|
</manifest>
|