-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Internal: Update rs library version #22332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the wordpress-rs library dependency to a newer version and adapts the media upload API call to match the new library interface. The key change is restructuring how parameters are passed to the media creation endpoint.
- Updated
wordpress-rslibrary version fromtrunk-a0864c91b8dc3726b0ad43e22662c4415aca59cetotrunk-fb107b497caaf2b1f4ffcf9f487784792561a645 - Refactored
MediaCreateParamsconstruction to includefilePathwithin the params object instead of as a separate parameter - Removed
fileContentTypeandrequestIdparameters from the media creation call
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| gradle/libs.versions.toml | Updates the wordpress-rs library version to the latest trunk commit |
| libs/fluxc/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/MediaRSApiRestClient.kt | Refactors the media upload call to use the new API signature, moving filePath into MediaCreateParams and removing fileContentType and requestId parameters |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...c/src/main/java/org/wordpress/android/fluxc/network/rest/wpapi/media/MediaRSApiRestClient.kt
Show resolved
Hide resolved
|
Project dependencies changeslist! Upgraded Dependencies
rs.wordpress.api:android:trunk-fb107b497caaf2b1f4ffcf9f487784792561a645, (changed from trunk-a0864c91b8dc3726b0ad43e22662c4415aca59ce)
rs.wordpress.api:kotlin:trunk-fb107b497caaf2b1f4ffcf9f487784792561a645, (changed from trunk-a0864c91b8dc3726b0ad43e22662c4415aca59ce)tree +--- project :libs:fluxc
-| \--- rs.wordpress.api:android:trunk-a0864c91b8dc3726b0ad43e22662c4415aca59ce
-| +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.2.1 (*)
-| +--- com.squareup.okhttp3:okhttp-tls:4.12.0
-| | +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.2.1 (*)
-| | +--- com.squareup.okio:okio:3.6.0 -> 3.16.1 (*)
-| | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21 -> 1.9.24 (*)
-| +--- net.java.dev.jna:jna:5.18.1
-| +--- rs.wordpress.api:kotlin:trunk-a0864c91b8dc3726b0ad43e22662c4415aca59ce
-| | +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.2.1 (*)
-| | +--- com.squareup.okhttp3:okhttp-tls:4.12.0 (*)
-| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2 (*)
-| | \--- org.jetbrains.kotlin:kotlin-stdlib:2.1.21 -> 2.2.20 (*)
-| \--- org.jetbrains.kotlin:kotlin-stdlib:2.1.21 -> 2.2.20 (*)
+| \--- rs.wordpress.api:android:trunk-fb107b497caaf2b1f4ffcf9f487784792561a645
+| +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.2.1 (*)
+| +--- com.squareup.okhttp3:okhttp-tls:4.12.0
+| | +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.2.1 (*)
+| | +--- com.squareup.okio:okio:3.6.0 -> 3.16.1 (*)
+| | \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21 -> 1.9.24 (*)
+| +--- net.java.dev.jna:jna:5.18.1
+| +--- rs.wordpress.api:kotlin:trunk-fb107b497caaf2b1f4ffcf9f487784792561a645
+| | +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.2.1 (*)
+| | +--- com.squareup.okhttp3:okhttp-tls:4.12.0 (*)
+| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2 (*)
+| | \--- org.jetbrains.kotlin:kotlin-stdlib:2.1.21 -> 2.2.20 (*)
+| \--- org.jetbrains.kotlin:kotlin-stdlib:2.1.21 -> 2.2.20 (*)
-\--- rs.wordpress.api:android:trunk-a0864c91b8dc3726b0ad43e22662c4415aca59ce (*)
+\--- rs.wordpress.api:android:trunk-fb107b497caaf2b1f4ffcf9f487784792561a645 (*) |
|
| App Name | WordPress | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22332-1391d44 | |
| Commit | 1391d44 | |
| Direct Download | wordpress-prototype-build-pr22332-1391d44.apk |
|
| App Name | Jetpack | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Version | pr22332-1391d44 | |
| Commit | 1391d44 | |
| Direct Download | jetpack-prototype-build-pr22332-1391d44.apk |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #22332 +/- ##
=======================================
Coverage 39.33% 39.33%
=======================================
Files 2198 2198
Lines 105394 105393 -1
Branches 14983 14982 -1
=======================================
Hits 41460 41460
+ Misses 60442 60441 -1
Partials 3492 3492 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|





Description
This PR is just updating the RS library version
Testing instructions