Rainytoken/app/src/main/AndroidManifest.xml

91 lines
3.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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.INTERNET" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name=".RainyTokenApplication"
android:allowBackup="false"
android:enableOnBackInvokedCallback="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.RainyToken"
android:networkSecurityConfig="@xml/network_security_config"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.RainyToken">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- 桌面小组件:后台刷新接收器(主进程,需要 Hilt DI) -->
<receiver
android:name=".ui.widget.WidgetRefreshReceiver"
android:exported="false" />
<!-- 每日自动签到:零点闹钟广播 + 开机后排程(Hilt 经 EntryPoint 注入,无 @AndroidEntryPoint) -->
<receiver
android:name=".ui.dashboard.autocheckin.AutoCheckinReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!-- OpenCode Go 小组件(MIUI Widget) -->
<receiver
android:name=".ui.widget.OpenCodeGoWidgetProvider"
android:exported="true"
android:label="@string/widget_name">
<intent-filter>
<!-- 标准 Android 定时刷新 -->
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<!-- MIUI 曝光刷新(划到负一屏/桌面时触发) -->
<action android:name="miui.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_opencode_go_info" />
<!-- MIUI Widget 核心标识 -->
<meta-data
android:name="miuiWidget"
android:value="true" />
<!-- MIUI 曝光刷新:用户滑动到小组件所在页面时自动触发 -->
<meta-data
android:name="miuiWidgetRefresh"
android:value="exposure" />
<!-- 曝光刷新最小间隔 20 秒(官方最短为 10 秒) -->
<meta-data
android:name="miuiWidgetRefreshMinInterval"
android:value="20000" />
</receiver>
<!-- MIUI Widget 版本号(application 级,升级时递增) -->
<meta-data
android:name="miuiWidgetVersion"
android:value="1" />
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest>