hiddentao / cordova-plugin-filepath

Resolve native file paths from content URLs for Cordova platforms
Apache License 2.0
66 stars 130 forks source link

This plugin conflicts with many others #41

Open roncemer opened 5 years ago

roncemer commented 5 years ago

Please update the android version in the package.json to support a wider variety of android versions.

This plugin conflicts with both the firebase and admob plugins, causing this error:

:app:processDebugManifest/home/rcemer/projects/flatulatron/app/platforms/android/app/src/main/AndroidManifest.xml:28:13-35 Error: Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:appcompat-v7:25.4.0] AndroidManifest.xml:28:13-35 is also present at [com.android.support:support-v4:26.1.0] AndroidManifest.xml:28:13-35 value=(26.1.0). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:26:9-28:38 to override.

This is not something which can be resolved when using cordova, as it generates AndroidManifest.xml automatically.

cordova platform list Installed platforms: android 7.1.4

cordova plugin list cordova-admob 5.1.0 "AdMob Google Ads + Tappx" cordova-connectivity-monitor 1.2.2 "Connectivity Monitoring" cordova-play-services-version-adapter 1.0.2 "Cordova/Ionic Google Play Services Versions Incompatibility Adapter" cordova-plugin-android-downloadmanager 0.5.0 "cordova-plugin-android-downloadmanager" cordova-plugin-device 2.0.2 "Device" cordova-plugin-file 6.0.1 "File" cordova-plugin-filechooser 1.2.0 "File Chooser" cordova-plugin-filepath 1.5.1 "cordova-plugin-filepath" cordova-plugin-permission 0.1.0 "Permission" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin"

Specifically, cordova-plugin-filepath causes a problem when I try to use it with cordova-admob.

Go here https://www.npmjs.com/package/cordova-admob and try creating an admob-enabled dummy app, then try to add your cordova-plugin-filepath plugin to it and try to build. You can easily reproduce the error that way. Or, try cordova-plugin-filepath with the firebase plugin.

Basically, cordova-plugin-filepath needs to not be so anal with regard to the Android version, because it's rendering itself pretty much useless by doing so.

Please fix right away, and notify me when it's fixed. I'm trying to complete a project, and this is holding me up.

roncemer commented 5 years ago

A discussion on cordova-plugin-filepath breaking the project when used with /cordova-plugin-firebase. Hint: it's not the firebase plugin which is messed up.

https://github.com/arnesson/cordova-plugin-firebase/issues/736

roncemer commented 5 years ago

To fix, remove the following two lines from plugin.xml, commit, and publish a new version to npm.

        <framework src="com.android.support:support-v4:25.+"/>
        <framework src="com.android.support:appcompat-v7:25.+"/>

Please notify when this is done. This is urgent, as there are many people who cannot use your plugin because of this bug.