Skip to content

Conversation

@adalpari
Copy link
Contributor

Description

This PR is just updating the RS library version

Testing instructions

  1. Log into a self-hosted site with Application Password
  2. Go to Media
  3. Upload a Media file

@dangermattic
Copy link
Collaborator

dangermattic commented Oct 31, 2025

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@adalpari adalpari marked this pull request as ready for review October 31, 2025 17:58
@adalpari adalpari requested a review from a team as a code owner October 31, 2025 17:58
Copy link
Contributor

Copilot AI left a 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-rs library version from trunk-a0864c91b8dc3726b0ad43e22662c4415aca59ce to trunk-fb107b497caaf2b1f4ffcf9f487784792561a645
  • Refactored MediaCreateParams construction to include filePath within the params object instead of as a separate parameter
  • Removed fileContentType and requestId parameters 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.

@sonarqubecloud
Copy link

@wpmobilebot
Copy link
Contributor

Project dependencies changes

list
! 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 (*)

@adalpari adalpari enabled auto-merge (squash) October 31, 2025 18:05
@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
FlavorJalapeno
Build TypeDebug
Versionpr22332-1391d44
Commit1391d44
Direct Downloadwordpress-prototype-build-pr22332-1391d44.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
FlavorJalapeno
Build TypeDebug
Versionpr22332-1391d44
Commit1391d44
Direct Downloadjetpack-prototype-build-pr22332-1391d44.apk
Note: Google Login is not supported on these builds.

@adalpari adalpari merged commit 7aa0b18 into trunk Oct 31, 2025
31 checks passed
@adalpari adalpari deleted the internal/update-rs-library-version branch October 31, 2025 18:22
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.33%. Comparing base (d3b46bf) to head (1391d44).
⚠️ Report is 1 commits behind head on trunk.

Files with missing lines Patch % Lines
...c/network/rest/wpapi/media/MediaRSApiRestClient.kt 0.00% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants