Skip to content

Conversation

@PytatoDuck
Copy link

Update MediaStore when files are moved, copied, renamed, or deleted. So the changes are reflected in other apps (like Gallery) #226

For testing my changes, I wanted to install a different debug build that won't override the stable release.

  1. Using ${applicationId}.provider for FileProvider authority
  2. Added a debug build type

This makes the authority dynamic and avoids potential conflicts in different build variants or when the application ID is changed.
Adds a "debug" build type to the Gradle configuration
- Disables minification.
- Appends " | Debug" to the version name.
- Appends ".debug" to the application ID.
Inform Android's MediaStore about file creation, deletion, and renaming to ensure other apps (like Galleries) reflect these changes promptly.

- Add `MediaStoreUtils` to scan modified files.
- Update `CopyTask`, `DeleteTask`, and `RenameTask` to track file changes and trigger a media scan upon completion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant