I am trying to update the FileProvider class from android.support.v4.content.FileProvider
to androidx.core.content.FileProvider
which allows me to build successfully.
When I run ionic cap sync
it reverts back to android.support.v4.content.FileProvider
...
I have cordova-plugin-androidx-adapter
installed.
How can I make it stay as androidx.core.content.FileProvider
or make the adapter work?
In my AndroidManifest.xml
:
<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"></meta-data>
</provider>