wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.92k stars 1.3k forks source link

Upgrade ucrop library to 2.2.9 #20598

Closed irfano closed 1 week ago

irfano commented 1 month ago

Fixes #20570

This updates ucrop library and potentially fixes java.lang.SecurityException on the crop library.


To Test:

  1. Add a new blog post.
  2. Add a new image block.
  3. Choose an image and wait for it to be uploaded within the image block.
  4. Click on the media options of this image (top right) and then click edit.
  5. Crop the image and click the done menu option (top right).
  6. Verify the image is updated accordingly.

Regression Notes

  1. Potential unintended areas of impact

    • Cropping image
  2. What I did to test those areas of impact (or what existing automated tests I relied on)

    • Tested manually
  3. What automated tests I added (or what prevented me from doing so)

    • No test added since this is only a third party lib update.

PR Submission Checklist:


Testing Checklist (strike-out the not-applying and unnecessary ones):

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

wpmobilebot commented 1 month ago

Found 1 violations:

The PR caused some dependency changes (expand to see details)

```diff +--- project :libs:image-editor -| \--- com.github.yalantis:ucrop:2.2.8 -| +--- androidx.exifinterface:exifinterface:1.3.2 -> 1.3.6 -| | \--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*) -| +--- androidx.transition:transition:1.4.1 (*) -| \--- com.squareup.okhttp3:okhttp:3.12.13 -> 4.11.0 (*) +| \--- com.github.yalantis:ucrop:2.2.9 FAILED +--- project :libs:editor | \--- org.wordpress.gutenberg-mobile:react-native-gutenberg-bridge:v1.116.0 | \--- org.wordpress.react-native-libraries.v5:react-native-fast-image:8.5.11 | \--- com.github.bumptech.glide:glide:4.12.0 -> 4.16.0 -| \--- androidx.exifinterface:exifinterface:1.3.6 (*) +| \--- androidx.exifinterface:exifinterface:1.3.6 +| \--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*) -\--- com.github.yalantis:ucrop:2.2.8 (*) +\--- com.github.yalantis:ucrop:2.2.9 FAILED ```

Please review and act accordingly

irfano commented 1 month ago

This is running on my local but failing on CI. I will investigate the reason.

wpmobilebot commented 2 weeks ago
WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr20598-5a9eb1e
Commit5a9eb1e6cbe6be4ad60ef3e4fed8ed50cfc49128
Direct Downloadwordpress-prototype-build-pr20598-5a9eb1e.apk
Note: Google Login is not supported on these builds.
wpmobilebot commented 2 weeks ago
Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr20598-5a9eb1e
Commit5a9eb1e6cbe6be4ad60ef3e4fed8ed50cfc49128
Direct Downloadjetpack-prototype-build-pr20598-5a9eb1e.apk
Note: Google Login is not supported on these builds.
irfano commented 2 weeks ago

uCrop 2.2.9 has been uploaded to Maven and can be tested now.