[MediaPlugin] Update for new File Plugin and File Transfer Plugin versions
Question
Forge component by Junji Watanabe
Application Type
Mobile

Hello Junji,

First of all, thank you for making this plugin available for the community.

I am building an app which uses your Media Plugin. I've also installed the File Plugin and File Transfer Plugin and I'm getting the following message when building the Android APK:

  • "cordova-plugin-file@6.0.2-OS2" does not satisfy dependency plugin requirement "cordova-plugin-file@^6.0.0"

Would it be possible for you to publish a new version of the Media Plugin which is compatible with the latest File Plugin?

Thanks!

Rui

AndroidBuildLog.txt

mvp_badge
MVP
Solution

Hi David,

Thank you for your comment.

As you stated, I use https://github.com/apache/cordova-plugin-media/  and its latest repository has a dependency with version 6.0.0.

So, I also forked the repository, updated its plugin version, and switched MediaPlugin's reference to it.

Best regards,

Junji Watanabe

mvp_badge
MVP

Hello Rui,

OK. I try to check it.

Best regards,

Junji Watanabe

Hi Junji,

Thank you for your availability! If you need some mode info from my side just let me know.

Regards,

Rui

Hi,

We had a similar problem recently. The component MediaPlugin uses the cordova plugin https://github.com/apache/cordova-plugin-media/. This cordova plugin has a dependency with cordova-plugin-file version 6.0.0. :-(

Finally, we had to fork this cordova plugin in git and changed the dependency to 6.0.2-OS2. So we could already compile in MABS.

Kind regards, David.

mvp_badge
MVP

Hi Rui,

I uploaded a new version 0.12.0. 

With this version, I could build a demo app using MediaPlugin along with File Plugin and File Transfer Plugin.

Could you try this please?

Best regards,

Junji Watanabe

mvp_badge
MVP
Solution

Hi David,

Thank you for your comment.

As you stated, I use https://github.com/apache/cordova-plugin-media/  and its latest repository has a dependency with version 6.0.0.

So, I also forked the repository, updated its plugin version, and switched MediaPlugin's reference to it.

Best regards,

Junji Watanabe

Hi Junji,

Thank you for your availability and fast response!

Regards,

Rui

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.