Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4492

Upgrade cordova-plugin-file to 8.0.1, cordova-plugin-media-capture and use cordova-plugin-camera

XMLWordPrintable

    • Hide

      No specific testing needed, this issue will be tested during the pre-release testing.

      Show
      No specific testing needed, this issue will be tested during the pre-release testing.
    • MOODLE_403_STABLE
    • MOODLE_404_STABLE
    • Moodle Apps - 2024 i1.1

      We kept the cordova-plugin-file plugin at version 6 a while ago because version 7 caused some problems in Android (errors storing and reading files).

      Also, the cordova-plugin-media-capture plugin hasn't been updated either because it requires a newer version of cordova-plugin-file plugin.

      We should try to update both plugins to the latest versions. I did a quick test and the app doesn't compile because the cordova-plugin-media-capture defines the WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permissions with android:maxSdkVersion="32", while other cordova plugins don't have that sdk restriction and this causes conflicts in the manifest. I fixed this conflict manually (removing the sdk restriction) and then the app compiled, but the download of files still failed.

      Also, we're currently using a fork of cordova-plugin-camera but it's no longer needed, we should use the official version again.

      Shaping document: https://docs.google.com/document/d/1TV14-qUW7Z8goTfepiwwsU7juOOB_SPII1E_bu5X0ts/

            dpalou Dani Palou
            dpalou Dani Palou
            Alfonso Salces Alfonso Salces
            Alfonso Salces Alfonso Salces
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.