MigrationReceiver: Add logic to do migrations on version bumps

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-05-27 12:52:29 +05:30
parent cabfaa983b
commit 687a7c1540
3 changed files with 65 additions and 0 deletions

View File

@@ -159,5 +159,14 @@
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>
<!-- MigrationReceiver (for running migrations) -->
<receiver
android:name=".data.receiver.MigrationReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
</application>
</manifest>