2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 09:58:08 +00:00

chore: add some comments about FixPosixFilePermissionClassVisitorFactory

This commit is contained in:
ShellWen Chen 2024-07-16 19:47:56 +08:00 committed by Albert Vaca Cintora
parent ae49aa6456
commit 30cc95713f

View File

@ -142,6 +142,8 @@ android {
/**
* Fix PosixFilePermission class type check issue.
*
* It fixed the class cast exception when lib desugar enabled and minSdk < 26.
*/
abstract class FixPosixFilePermissionClassVisitorFactory :
AsmClassVisitorFactory<FixPosixFilePermissionClassVisitorFactory.Params> {
@ -266,6 +268,10 @@ androidComponents {
}
dependencies {
// It has a bug that causes a crash when using PosixFilePermission and minSdk < 26.
// It has been used in SSHD Core.
// We have taken a workaround to fix it.
// See `FixPosixFilePermissionClassVisitorFactory` for more details.
coreLibraryDesugaring(libs.android.desugarJdkLibsNio)
implementation(libs.androidx.compose.material3)