Cotton code
47 lines · 2.6 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">    <!-- Comms' sites move in once (Moving.take, over Comms' SitesMoveProvider). Each side checks the other by the         registry's certificates (CottonSigners); no permission, since each Play app has its own key. -->    <queries>        <provider android:authorities="com.cottondb.messages${serverSuffix}.sitesmove" />    </queries>    <application android:name="com.cottondb.sites.SitesApplication"        android:allowBackup="true"        android:fullBackupContent="@xml/backup_rules"        android:dataExtractionRules="@xml/data_extraction_rules"        tools:replace="android:allowBackup">        <activity            android:name="com.cottondb.sites.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}://open?url=…&from=…): a Cotton app handing a link to Sites' chooser. -->            <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>            <!-- A link shared from any app (DECISIONS question 10): Sites' part of the share sheet is its chooser. -->            <intent-filter>                <action android:name="android.intent.action.SEND" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="text/plain" />            </intent-filter>            <!-- A web link opened with Sites: the chooser first, nothing loads before he picks. -->            <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="http" />                <data android:scheme="https" />            </intent-filter>        </activity>    </application></manifest>