BlackBoxVision / react-native-mercadopago-px

🚀 MercadoPago PX bridge for react-native
https://react-native-mercadopago-px.blackbox-vision.tech
MIT License
104 stars 25 forks source link

Update MercadoPago Android SDK #67

Open franblanco95 opened 1 year ago

franblanco95 commented 1 year ago

Describe the bug

Hello guys, I'm having a problem when uploading my application to the playstore..

It says that the app contains the SDK com.mercadopago.android.px:services 4.45.0, which does not comply with the new PlayStore policies on data security.

That's why they ask to update the SDK to 4.53.2. There is time until October 25, otherwise we must uninstall the application library, because the updates will be rejected.

Screenshots

image

checomendoza commented 1 year ago

i am facing with the same problem. I have updated the skd version in the package.json file (line 145) to version 4.53.2 but Android Studio cannot resolve com.mercadopago.android.px:checkout:4.53.2 Seeing the documentation of the px-android repo of mercadopago, they have moved the latest version to a new repository

repositories {
     ...
     maven {
         url 'https://artifacts.mercadolibre.com/repository/android-releases/'
     }
}

I have changed and updated as indicated there and I was able to compile with version 4.53.2, but when I upload the update to the Play Store it keeps rejecting me for the same reason

Screen Shot 2022-09-05 at 13 53 42
checomendoza commented 1 year ago

Hi guys! I've found a little solution for this issue. I have add mave url that specifies by mercadolibre, inside build.gradle from android folder of the project. Then edit sdKVersion inside package.json of the library Thats work for me.

JonatanSalas commented 1 year ago

Hi @checomendoza would you mind to make a PR with your solution? We can merge it and make a release.

JonatanSalas commented 1 year ago

We've published v0.8.0, so you can fix the upgrade issue by installing the newer version doing:

npm i @blackbox-vision/react-native-mercadopago-px@0.8.0
Marcoo09 commented 1 year ago

Hi guys, I hope you're doing well I'm on the last version but I still have the problem:

image
franblanco95 commented 1 year ago

Hi guys, I hope you're doing well I'm on the last version but I still have the problem: image

same problem here..

JonatanSalas commented 1 year ago

If you want, you can make a PR if you find how to patch the issue. Currently with our team we're reaching a big milestone with a client so we aren't going to have enough time to work on this.

If this issue is really blocking for you, you can reach us to hello@blackbox-vision.tech and we can offer paid consulting hours.

Marcoo09 commented 1 year ago

I make it work doing a couple of changes, on the package I need to change the kotlin version to >=1.5.0 I tried with 1.7.10:

image

Then on android/build.gradle of the app I need to add:

image

I don't know why I need to do the latter, in the build.gradle of the library there is already this same thing

franblanco95 commented 1 year ago

Hello guys, the workaround that @Marcoo09 shares works okey.

When you add the maven url on android>build.gradle and build, android studio says that the kotlin version of the library has to be changed... So updating it will fix the problem! Thank you marco

juliscotto commented 1 year ago

Hi! Im still getting the same error in playstore, even after doing all of the above. How can I fix this?