Closed cmota closed 2 years ago
You could update this to Ktor 2.0.0 now that its released
Thank you for the heads up @Syer10! I've just updated to ktor 2.0.0 and AGP 7.1.3.
I also made your suggestion on HttpFetcher
🙂
Is this repository still maintained?
@dragossusi I'm using the branch that I've created with the Ktor 2.0.0 support and I'll keep updating it until another solution is around. I'm using it in a couple of apps, without any problem.
Unfortunately, I don't think the original author is maintaining it.
@cmota did you upload it to maven? I was thinking about creating a new image loading library like this one and make it available for all platforms(I'll make it use dev builds of compose-jb
)
I didn't because only the author can publish the library. What I'm doing is using it locally.
@cmota I found a bunch of issues with your fork causing the build to fail. I fixed them and further updated ktor and some plugins. https://github.com/cmota/Kamel/pull/1
I'm going to publish a different branch updated to kotlin 1.6.21 and the latest dev compose to a maven repo for anyone interested. I'll post it here when I'm done
Thanks everyone for their support. If you'd like to contribute to this project, please let me know so I can add you to the project as a collaborator.
Hello @luca992, can you share the issue? I've been using this without any problem for quite some time 🤔.
If you build as is:
gradlePluginPortal()
isn't added to buildscript.repositories
and it fails thereas String
-> as String? ?: ""
)bodyAsChannel()
uses the wrong import in HttpFetcher
> Task :kamel-image:compileDebugKotlinAndroid FAILED
e: /Users/lucaspinazzola/Projects/Kamel/kamel-image/src/androidMain/kotlin/io/kamel/image/fetcher/ResourcesFetcher.kt: (25, 12): Unresolved reference: ExperimentalIoApi
e: /Users/lucaspinazzola/Projects/Kamel/kamel-image/src/androidMain/kotlin/io/kamel/image/fetcher/ResourcesFetcher.kt: (25, 12): An annotation argument must be a compile-time constant
e: /Users/lucaspinazzola/Projects/Kamel/kamel-image/src/androidMain/kotlin/io/kamel/image/mapper/ResourcesIdMapper.kt: (10, 73): This annotation is not applicable to target 'type usage'
e: /Users/lucaspinazzola/Projects/Kamel/kamel-image/src/androidMain/kotlin/io/kamel/image/mapper/ResourcesIdMapper.kt: (16, 68): Cannot find a parameter with this name: encodedPath
7.1.3
fails with a strange must use a different android studio version.. I downgraded back to 7.0.4
, which is what all compose-jb
examples useI published a release of my fork here if anyone is waiting for this to be merged:
implementation("io.github.luca992.com.alialbaali.kamel:kamel-image:0.3.0-ktor2")
This PR aims to fix #13.
While making this change I've also updated all the deprecated libraries 🙂 .