-
Notifications
You must be signed in to change notification settings - Fork 479
PayPal 2.12.4 aar adds unwanted permission and code #234
Comments
Another option would be to be able to "exclude" the |
Hey @cyrilmottier ! You are correct. I will go ahead and update the okhttp first. And about the card-io, currently, the only way to exclude card-io is to exclude libraries as shown here: #226 ! However, we are working on getting the dependency from card-io completely, to remove that completely, but this may take some time though. I will keep you update on this.
|
Fixed in 2.13.0 release. |
Hello, Could someone (@jaypatel512) gives an update for this issue? It's marked as "fixed/closed", but what exactly was fixed in 2.13.0? Because as per 2.15.0 release everything (related to card.io) at their places: native libraries cannot be excluded from dependencies via "exclude group", app's manifest contains unwanted permissions and activity. Thank you in advance! |
You can exclude card.io as shown in the readme. |
Hi @braebot, Thank you for answer, but it doesn't work in my case, I've written so in my comment above. What does work is a method described in #226 (which has been mentioned by @jaypatel512 in this thread), but it not a real good solution because app's manifest still contains unwanted permissions and activity. Am I the only one who experiencing this problem with version 2.15.0? |
Hello @MMahach, I'm not experiencing the problem with version 2.15.1 :) It's working on my end with just the exclusion detailed in the readme file. |
When looking at the dependencies of the library we get:
In other words:
This is pretty annoying when we want to have the most light-weight APK possible.
Things gets worse when looking at the AndroidManifest.xml. It includes the
CAMERA
permission which may not be useful at all if Card.IO.so
are stripped. That's also the case for theCardIOActivity
and the<uses-feature />
tags.It's obviously possible to add
tools:remove
to ourAndroidManifest.xml
but that's clearly a dirty hack. Hence, the current version of the library is not usable as it and can't be used in production code.A possible solution would be to have a dedicated Maven artefact like
com.paypal.sdk:paypal-android-sdk-no-card-io:2.12.4
that wouldn't include the Card.IO dependency.The text was updated successfully, but these errors were encountered: