75 lines
3.4 KiB
XML
75 lines
3.4 KiB
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
|
|
package="im.cwtch.flwtch">
|
|
<!-- 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:name="${applicationName}"
|
|
android:label="Cwtch"
|
|
android:extractNativeLibs="true"
|
|
android:icon="@mipmap/knott">
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:launchMode="singleTop"
|
|
android:theme="@style/NormalTheme"
|
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
|
android:hardwareAccelerated="true"
|
|
android:windowSoftInputMode="adjustResize"
|
|
android:exported="true">
|
|
<!-- Specifies an Android theme to apply to this Activity as soon as
|
|
the Android process has started. This theme is visible to the user
|
|
while the Flutter UI initializes. After that, this theme continues
|
|
to determine the Window background behind the Flutter UI. -->
|
|
<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>
|
|
<!-- Don't delete the meta-data below.
|
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
|
<meta-data
|
|
android:name="flutterEmbedding"
|
|
android:value="2" />
|
|
|
|
<!--Needed to run in background (lol)-->
|
|
<service
|
|
android:name="androidx.work.impl.foreground.SystemForegroundService"
|
|
android:foregroundServiceType="dataSync"
|
|
tools:node="merge" />
|
|
|
|
</application>
|
|
|
|
<!--Needed to access Tor socket-->
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<!-- Needed for running in the background -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
|
<!-- As of Android 13 this permission is required -->
|
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
|
|
|
<!-- Ability to ask user to exempt app from power management (which can kill it more frequently especially on some devices.
|
|
Allows app to use ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS -->
|
|
<uses-permission-sdk-23 android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
|
|
|
|
<!-- TODO when we support sdk 31
|
|
<uses-permission-sdk-23 android:name="android.permission.HIDE_OVERLAY_WINDOWS" />
|
|
-->
|
|
|
|
<!--Needed to check if activity is foregrounded or if messages from the service should be queued-->
|
|
<uses-permission android:name="android.permission.GET_TASKS" />
|
|
|
|
<queries>
|
|
<intent>
|
|
<action android:name="android.intent.action.VIEW" />
|
|
<data android:scheme="https" />
|
|
</intent>
|
|
</queries>
|
|
</manifest>
|