Cotton code
42 lines · 2.3 KB · HTMLRaw
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:tools="http://schemas.android.com/tools">    <!-- This phone fetches (Fetcher.kt): the fetcher stands in the foreground with a quiet notification while it works. -->    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />    <!-- Open in Sites… (mail.link): whether Cotton Sites is on this phone, to hand it the link explicitly. -->    <queries>        <package android:name="com.cottondb.sites${serverSuffix}" />    </queries>    <application android:name="com.cottondb.mail.MailApplication">        <activity            android:name="com.cottondb.mail.MainActivity"            android:exported="true"            android:launchMode="singleTask"            android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|uiMode|density|fontScale"            android:windowSoftInputMode="adjustResize">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>            <!-- The app's own links (${urlScheme}://…). -->            <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:scheme="${urlScheme}" />            </intent-filter>        </activity>        <!-- This phone fetches: mail.fetch rounds in the foreground, as data sync, stopping itself when caught up. -->        <service            android:name="com.cottondb.mail.PostFetchService"            android:exported="false"            android:foregroundServiceType="dataSync" />        <!-- The round behind (PostFetchWorker) stands in the foreground through WorkManager's own service. -->        <service            android:name="androidx.work.impl.foreground.SystemForegroundService"            android:foregroundServiceType="dataSync"            tools:node="merge" />    </application></manifest>