AChep/literaryclock

View on GitHub
app/src/main/AndroidManifest.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE" />

    <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

    <!-- Chrome OS -->
    <meta-data
        android:name="WindowManagerPreference:SuppressWindowControlNavigationButton"
        android:value="true" />
    <meta-data
        android:name="WindowManagerPreference:FreeformWindowSize"
        android:value="tablet" />
    <meta-data
        android:name="WindowManagerPreference:FreeformWindowOrientation"
        android:value="landscape" />

    <application
        android:name=".Heart"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:usesCleartextTraffic="true">

        <activity
            android:name=".ui.activities.MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <layout
                android:defaultWidth="640dp"
                android:defaultHeight="480dp" />
        </activity>

        <receiver
            android:name=".widget.LiteraryWidgetProvider"
            android:exported="true">
            <intent-filter>
                <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
            </intent-filter>

            <meta-data
                android:name="android.appwidget.provider"
                android:resource="@xml/widget" />
        </receiver>

        <receiver android:name=".receivers.WidgetUpdateReceiver" />

        <service
            android:name=".services.WidgetUpdateService"
            android:foregroundServiceType="specialUse" />

        <service
            android:name=".services.dream.LiteraryDreamService"
            android:exported="true"
            android:permission="android.permission.BIND_DREAM_SERVICE">
            <intent-filter>
                <action android:name="android.service.dreams.DreamService" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </service>

    </application>

</manifest>