Cotton code
92 lines · 5.4 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">    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />    <!-- Keep on phone's files come down in the foreground, past the app's end (the shell's Transfers). -->    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />    <!-- media3's platform scheduler brings a kept film's download back after a restart. -->    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />    <!-- A film's media session stands in the foreground while it plays (FilmService): the notification and the lock screen's controls. -->    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />    <application android:name="com.cottondb.cinemas.CinemasApplication">        <activity            android:name="com.cottondb.cinemas.MainActivity"            android:exported="true"            android:launchMode="singleTask"            android:supportsPictureInPicture="true"            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 share sheet (the shell's ShareIntake; the door that takes it is the core's, share.door): films, one or many. The types are the kit's doors' (a cargo guard holds them to it). -->            <intent-filter>                <action android:name="android.intent.action.SEND" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="video/mp4" />                <data android:mimeType="video/quicktime" />                <data android:mimeType="video/x-msvideo" />                <data android:mimeType="video/x-matroska" />            </intent-filter>            <intent-filter>                <action android:name="android.intent.action.SEND_MULTIPLE" />                <category android:name="android.intent.category.DEFAULT" />                <data android:mimeType="video/mp4" />                <data android:mimeType="video/quicktime" />                <data android:mimeType="video/x-msvideo" />                <data android:mimeType="video/x-matroska" />            </intent-filter>            <!-- Open with: a file manager or a browser's download handing the app one file. -->            <intent-filter>                <action android:name="android.intent.action.VIEW" />                <category android:name="android.intent.category.DEFAULT" />                <data android:scheme="content" />                <data android:scheme="file" />                <data android:mimeType="video/mp4" />                <data android:mimeType="video/quicktime" />                <data android:mimeType="video/x-msvideo" />                <data android:mimeType="video/x-matroska" />            </intent-filter>            <!-- The app's own links (${urlScheme}://, the iPhone's urlScheme): the core says what each opens (link.open). -->            <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>        <!-- Keep on phone's transfers (the shell's Transfers, WorkManager) stand in the foreground while they run. -->        <service            android:name="androidx.work.impl.foreground.SystemForegroundService"            android:foregroundServiceType="dataSync"            tools:node="merge" />        <!-- A kept stream comes down in media3's download service, past the app's end (FilmDownloads). -->        <service            android:name="com.cottondb.cinemas.player.FilmDownloadService"            android:exported="false"            android:foregroundServiceType="dataSync">            <intent-filter>                <action android:name="androidx.media3.exoplayer.downloadService.action.RESTART" />                <category android:name="android.intent.category.DEFAULT" />            </intent-filter>        </service>        <service            android:name="androidx.media3.exoplayer.scheduler.PlatformScheduler$PlatformSchedulerService"            android:exported="true"            android:permission="android.permission.BIND_JOB_SERVICE" />        <!-- A film's media session (FilmService): the notification, the lock screen, a headset's and a remote's keys. -->        <service            android:name="com.cottondb.cinemas.player.FilmService"            android:exported="true"            android:foregroundServiceType="mediaPlayback">            <intent-filter>                <action android:name="androidx.media3.session.MediaSessionService" />            </intent-filter>        </service>        <!-- Cast to a TV (FilmCast): Google's Default Media Receiver, media3's options. -->        <meta-data            android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME"            android:value="androidx.media3.cast.DefaultCastOptionsProvider" />    </application></manifest>