daver
December 24, 2021, 2:27pm
1
Hi all,
we use the plugin cordova-plugin-email-composer
and now seems not compiling anymore in VoltBuilder due to missing AndroidX support
There’s already an issue submitted on github repository about this:
opened 05:01AM - 17 Jul 20 UTC
closed 08:03AM - 20 Jun 22 UTC
bug
Android is deprecating the support libraries in favor of androidx
https://devel… oper.android.com/jetpack/androidx/
The newest version of cordova also supports androidx
https://cordova.apache.org/announcements/2020/06/29/cordova-android-9.0.0.html
It is not possible to mix and match the androidx and support libraries.
> A lot of the Android supported plugins are still using the old support libraries which can not build when using the AndroidX support libraries.
This plugin imports the android support libraries in exactly one place
https://github.com/katzer/cordova-plugin-email-composer/search?q=android.support&unscoped_q=android.support
I am happy to make the trivial change (to https://developer.android.com/reference/androidx/core/content/FileProvider?hl=en) and submit it. Note that since this is an incompatible change, it would need to be a major revision.
Please let me know if I should submit the PR.
It’s dated 2020 and there’s no contributions from authors on it, so I think this plugin isn’t in active development .
Do you guys know some alternative or fork that we can use with VoltBuilder?
Or there’s some workaround to compile with VoltBuilder?
Thanks in advance
Dave
ghenne
December 24, 2021, 2:34pm
2
This isn’t something we have any control over. Google is definitely moving everything to AndroidX and plugins will have to update.
You might find something else in our list of approved plugins . Otherwise, have a look at npmjs.com - there may be a plugin there which will help.
Inclusion of a plugin on this list only indicates the plugin has met our standards for VoltBuilder. It does not imply that it is properly supported by its author, that it does what is expected, or is compatible with all versions of Android or iOS.
daver
December 24, 2021, 3:15pm
3
Thank-you for your answer
We are tring to move to cordova-plugin-x-socialsharing
that seems it’s providing same functionality and it’s AndroidX compatible
D.