Skip to content

Conversation

@Elelan
Copy link

@Elelan Elelan commented Aug 22, 2025

Cloned and upgraded the sardine-android library to use the latest okhttp version (4.12.0 to 5.1.0)
original library: https://github.com/guardianproject/sardine-android
new library: https://github.com/Elelan/sardine-android

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 11:13
Copy link

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 upgrades okhttp and sardine dependencies to improve functionality by switching from the guardianproject sardine-android library to the elelan sardine-android fork, which supports the latest okhttp version 5.1.0.

  • Updates okhttp from version 4.12.0 to 5.1.0
  • Replaces guardianproject sardine-android with elelan sardine-android fork
  • Updates various other dependencies to their latest versions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
settings.gradle.kts Adds dependency resolution for new sardine-android forks
gradle/libs.versions.toml Updates dependency versions including okhttp upgrade and adds new sardine library reference
app/build.gradle.kts Switches sardine implementation from guardianproject to elelan fork

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

navigation = "2.9.3"
okhttp = "4.12.0"
okhttp = "5.1.0"
thegrizzlylabs-sardine = "0.9"
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thegrizzlylabs-sardine version is defined but not used in the actual implementation. Consider removing this unused version definition to avoid confusion.

Suggested change
thegrizzlylabs-sardine = "0.9"

Copilot uses AI. Check for mistakes.
retrofit = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
retrofit-gson = { group = "com.squareup.retrofit2", name = "converter-gson", version.ref = "retrofit" }
guardianproject-sardine = { group = "com.github.guardianproject", name = "sardine-android", version = "89f7eae512" }
thegrizzlylabs-sardine = { group = "com.github.thegrizzlylabs", name = "sardine-android", version.ref = "thegrizzlylabs-sardine" }
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thegrizzlylabs-sardine library definition is added but not used in the actual implementation. Consider removing this unused library definition to avoid confusion.

Suggested change
thegrizzlylabs-sardine = { group = "com.github.thegrizzlylabs", name = "sardine-android", version.ref = "thegrizzlylabs-sardine" }

Copilot uses AI. Check for mistakes.
includeModule("com.github.derlio", "audio-waveform")
includeModule("com.github.abdularis", "circularimageview")
includeModule("com.github.guardianproject", "sardine-android")
includeModule("com.github.thegrizzlylabs", "sardine-android")
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thegrizzlylabs sardine-android module is included but not used in the actual implementation. Consider removing this unused module inclusion to avoid confusion.

Suggested change
includeModule("com.github.thegrizzlylabs", "sardine-android")

Copilot uses AI. Check for mistakes.
implementation("com.github.elelan:sardine-android:0.1.0-alpha03")



Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using an alpha version (0.1.0-alpha03) in production code introduces stability risks. Consider using a stable release version or documenting the rationale for using an alpha version.

Suggested change
// NOTE: Only alpha versions of sardine-android are available as of June 2024.
// We use 0.1.0-alpha03 for WebDAV support, as no stable release exists.
// Risks: Potential instability. Mitigation: Pin version, monitor upstream, and test thoroughly.
implementation("com.github.elelan:sardine-android:0.1.0-alpha03")

Copilot uses AI. Check for mistakes.
// adding web dav support: https://github.com/thegrizzlylabs/sardine-android'
//implementation(libs.guardianproject.sardine)
//implementation(libs.thegrizzlylabs.sardine)
implementation("com.github.elelan:sardine-android:0.1.0-alpha03")
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sardine dependency is hardcoded instead of using the version catalog approach used elsewhere in the project. Consider defining this in libs.versions.toml for consistency.

Suggested change
implementation("com.github.elelan:sardine-android:0.1.0-alpha03")
implementation(libs.sardine.android)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant