Cotton code
55 lines · 3.5 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">    <!-- Reminders as notifications (the shell's Reminders, as Todos had them): leave to notify is asked only when an         item first earns one (the core's request_notifications); the alarms come back after a restart. -->    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />    <!-- A reminder on its minute (the shell's Reminders.arm): Days is a calendar that shows event notifications, the         case Play names for USE_EXACT_ALARM (granted at install, Android 13 and later; Play Console declaration:         calendar). Android 12 has no USE_EXACT_ALARM; SCHEDULE_EXACT_ALARM is granted by default there. Days alone         declares these (DaysExactAlarmTest guards the other apps' manifests). -->    <uses-permission android:name="android.permission.USE_EXACT_ALARM" />    <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" android:maxSdkVersion="32" />    <application android:name="com.cottondb.days.DaysApplication"        android:allowBackup="true"        android:fullBackupContent="@xml/backup_rules"        android:dataExtractionRules="@xml/data_extraction_rules"        tools:replace="android:allowBackup">        <activity            android:name="com.cottondb.days.MainActivity"            android:exported="true"            android:launchMode="singleTask"            android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|keyboardHidden|uiMode|density|fontScale"            android:windowSoftInputMode="adjustResize">            <!-- The app's own links (${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>        <!-- Days ships as Cotton Calendar's package (it took Calendar over, 20 Nov 2026), so its launcher entry keeps             Calendar's component name: an icon pinned to a home screen while it was Calendar still opens Days. -->        <activity-alias            android:name="com.cottondb.calendar.MainActivity"            android:targetActivity="com.cottondb.days.MainActivity"            android:exported="true">            <intent-filter>                <action android:name="android.intent.action.MAIN" />                <category android:name="android.intent.category.LAUNCHER" />            </intent-filter>        </activity-alias>        <receiver android:name="com.cottondb.shell.ReminderReceiver" android:exported="false" />        <receiver android:name="com.cottondb.shell.RebootReceiver" android:exported="false">            <intent-filter>                <action android:name="android.intent.action.BOOT_COMPLETED" />                <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />                <action android:name="android.intent.action.TIME_SET" />                <action android:name="android.intent.action.TIMEZONE_CHANGED" />                <action android:name="android.app.action.SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED" />            </intent-filter>        </receiver>    </application></manifest>