Vaibhav Jaiswal
09/23/2023, 9:19 AMhas moved its code topaging-compose
and ships an Android artifact, matching the multiplatform support ofcommon
.androidx.compose
Fyodor Danilov
09/23/2023, 9:23 AMVaibhav Jaiswal
09/23/2023, 9:24 AMFyodor Danilov
09/23/2023, 9:40 AM원석
09/23/2023, 9:40 AMapp.cash.paging:paging-runtime-composeui
and it works fine.Vaibhav Jaiswal
09/23/2023, 9:41 AMcannot resolve dependency
원석
09/23/2023, 9:46 AMVaibhav Jaiswal
09/23/2023, 9:47 AMIrPropertyPublicSymbolImpl for androidx.paging/DEBUG|3092957818876675223[0] is bound ............
원석
09/23/2023, 9:54 AMandroidx paging-compose
to the commonMain
, I encountered the error: "Could not resolve all dependencies for configuration ':shared:iosArm64CompileKlibraries'."
Vaibhav Jaiswal
09/23/2023, 9:55 AM원석
09/23/2023, 9:56 AMapp.cash.paging:paging-runtime-composeui
instead?Vaibhav Jaiswal
09/23/2023, 9:56 AMCompilation failed: IrPropertyPublicSymbolImpl for androidx.paging/DEBUG|3092957818876675223[0] is already bound: PROPERTY name:DEBUG visibility:public modality:FINAL [const,val]
androidx.paging:paging-common:3.0.0-alpha02
dependencyveyndan
09/23/2023, 12:06 PMpaging-common
is multiplatform. It supports the JVM (as before), iOS, macOS, and Linux.
2. AndroidX Paging's paging-compose
is "multiplatform". I put it in quotes, because it uses KMP under the hood, but the only platform it targets is Android. Depending on AndroidX Paging's paging-compose
in the common
source set only makes sense if you're also just targeting Android only (which you're probably not doing).
3. Multiplatform Paging's paging-compose
is also multiplatform, but supports a bunch more targets than just Android (which is probably what you want).
4. You can mix-and-match AndroidX Paging and Multiplatform Paging artifacts, but they both have to be using the same version. For example, the latest version of AndroidX Paging that Multiplatform Paging supports is 3.2.0-alpha05
. I'm planning on supporting the latest version (3.3.0-alpha02
) in Multiplatform Paging within the coming days.
Once I've tracked 3.3.0-alpha02
in Multiplatform Paging, you'll probably want to depend on Multiplatform Paging's paging-compose
artifact. If you're explicitly depending on paging-common
anywhere, you can either depend on AndroidX Paging's paging-common
, or Multiplatform Paging's paging-common
(which has a few more targets you may or may not care about). In the meantime, depending on 3.2.0-alpha05
is the safest option.Vaibhav Jaiswal
09/23/2023, 12:09 PMapp.cash.paging:paging-compose-common
which is working quite well with Compose Multiplatformveyndan
09/25/2023, 11:33 PM3.3.0-alpha02
in Multiplatform Paging (https://github.com/cashapp/multiplatform-paging/releases/tag/3.3.0-alpha02-0.4.0), so you should be able to upgrade to the latest AndroidX Paging release if you wish!Vaibhav Jaiswal
10/01/2023, 9:55 AMerror: Could not find "co.touchlab:stately-isolate"
implementation(libs.androidx.paging)
implementation(libs.paging.compose.common)
This is how my gradle lookssasikanth
10/02/2023, 7:55 AMstately = "2.0.4"
stately-isolate = { module = "co.touchlab:stately-isolate", version.ref = "stately" }
stately-iso-collections = { module = "co.touchlab:stately-iso-collections", version.ref = "stately" }
implementation(libs.stately.isolate)
implementation(libs.stately.iso.collections)
veyndan
10/02/2023, 2:07 PMVaibhav Jaiswal
10/03/2023, 5:59 AMveyndan
10/04/2023, 9:47 AMimplementation("app.cash.paging:paging-common:3.3.0-alpha02-0.4.0")
implementation("app.cash.paging:paging-compose-common:3.3.0-alpha02-0.4.0")
Vaibhav Jaiswal
10/05/2023, 12:51 PMveyndan
10/05/2023, 12:53 PMVaibhav Jaiswal
10/05/2023, 12:54 PMsasikanth
10/05/2023, 12:54 PMveyndan
10/05/2023, 12:56 PMsasikanth
10/05/2023, 12:56 PMVaibhav Jaiswal
10/25/2023, 7:23 AMveyndan
10/25/2023, 12:43 PM> Task :resources:strings:kspCommonMainKotlinMetadata FAILED
e: java.lang.UnsupportedClassVersionError: cafe/adriel/lyricist/processor/internal/LyricistSymbolProcessorProvider has been compiled by a more recent version of the Java Runtime (class file version 63.0), this version of the Java Runtime only recognizes class file versions up to 61.0
Running java --version
shows:
openjdk 20.0.2 2023-07-18
OpenJDK Runtime Environment Zulu20.32+11-CA (build 20.0.2+9)
OpenJDK 64-Bit Server VM Zulu20.32+11-CA (build 20.0.2+9, mixed mode, sharing)
@sasikanth Have you seen this error before?sasikanth
10/25/2023, 2:46 PM