v0.3.4: update AndroidManifest.xml

This commit is contained in:
sanjeok77 committed 2026-08-25 01:58:43 +00:00
1 parent cf2d7c615a
commit 36ea6bc189
1 file changed
+57 -43
+57 -43
View File
@@ -14,8 +14,9 @@
<!-- Notifications (Android 13+) --> <!-- Notifications (Android 13+) -->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<!-- Exact Alarms (Android 12+) --> <!-- Exact Alarms (Android 12+, Android 13+) -->
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
<!-- Boot Completed --> <!-- Boot Completed -->
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
@@ -36,17 +37,17 @@
android:usesCleartextTraffic="true" android:usesCleartextTraffic="true"
tools:targetApi="35"> tools:targetApi="35">
<!-- Disable default WorkManager initializer to use HiltWorkerFactory --> <!-- Disable default WorkManager initializer to use HiltWorkerFactory -->
<provider <provider
android:name="androidx.startup.InitializationProvider" android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup" android:authorities="${applicationId}.androidx-startup"
android:exported="false" android:exported="false"
tools:node="merge"> tools:node="merge">
<meta-data <meta-data
android:name="androidx.work.WorkManagerInitializer" android:name="androidx.work.WorkManagerInitializer"
android:value="androidx.startup" android:value="androidx.startup"
tools:node="remove" /> tools:node="remove" />
</provider> </provider>
<activity <activity
android:name=".presentation.main.MainActivity" android:name=".presentation.main.MainActivity"
@@ -65,37 +66,50 @@
android:exported="false" android:exported="false"
android:foregroundServiceType="dataSync" /> android:foregroundServiceType="dataSync" />
<!-- Boot Receiver: 부팅/앱 업데이트 후 백그라운드 폴링 자동 재등록 --> <!-- Polling Alarm Receiver: 정확한 주기 알람 수신 및 핫딜 스크래핑 트리거 -->
<receiver <receiver
android:name=".receiver.BootReceiver" android:name=".receiver.PollingAlarmReceiver"
android:enabled="true" android:enabled="true"
android:exported="true"> android:exported="false">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="com.hotdeal.alarm.ACTION_POLL_ALARM" />
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" /> </intent-filter>
</intent-filter> </receiver>
</receiver>
<receiver
android:name=".widget.HotDealWidget"
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_info" />
</receiver>
<!-- FileProvider for APK installation --> <!-- Boot Receiver: 부팅/앱 업데이트 후 백그라운드 폴링 자동 재등록 -->
<provider <receiver
android:name="androidx.core.content.FileProvider" android:name=".receiver.BootReceiver"
android:authorities="${applicationId}.fileprovider" android:enabled="true"
android:exported="false" android:exported="true">
android:grantUriPermissions="true"> <intent-filter>
<meta-data <action android:name="android.intent.action.BOOT_COMPLETED" />
android:name="android.support.FILE_PROVIDER_PATHS" <action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
android:resource="@xml/file_paths" /> </intent-filter>
</provider> </receiver>
</application>
<!-- Widget Receiver -->
<receiver
android:name=".widget.HotDealWidget"
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_info" />
</receiver>
<!-- FileProvider for APK installation -->
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
tools:replace="android:authorities"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
</application>
</manifest> </manifest>