https://pub.dev/packages/ota_update
Android #
Add following provider referrence to AndroidManifest.xml inside <application> node.
<providerandroid:name="sk.fourq.otaupdate.OtaUpdateFileProvider"android:authorities="${applicationId}.ota_update_provider"android:exported="false"android:grantUriPermissions="true"><meta-dataandroid:name="android.support.FILE_PROVIDER_PATHS"android:resource="@xml/filepaths" /></provider>
See AndroidManifest.xml in example
Also, create the file android/src/main/res/xml/filepaths.xml with following contents. This will allow plugin to access the downloads folder to start the update.
<?xml version="1.0" encoding="utf-8"?><paths xmlns:android="http://schemas.android.com/apk/res/android"><external-path name="external_download" path="Download"/></paths>
See filepaths.xml in example
