I have set a FileProvider with the following res/xml/file_paths.xml
:
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="suggestions" path="Android/data/com.example.app.dev/files/suggestions" />
</paths>
The problem is, I have many product flavors that change the applicationId
. Is there any way to replace that value with the proper applicationId without creating a filepath for each product flavor? Like replacing a tag like this Android/data/{appId}/files/suggestions
? Or even using a relative path... (I've tried everything but only this full path worked).