-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support the Emoji Search sample on desktop. #1755
Conversation
override fun newImageLoader(context: Context): ImageLoader { | ||
return ImageLoader.Builder(context) | ||
.components { | ||
add(NetworkFetcher.Factory()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Network URL support currently has to be added manually as it was pulled out of coil-core
. Ktor finds imported engines at runtime, which could also be done by Coil, but I'm not sure it's a good idea.
I'll look more into the PR later, but why was this done? The emoji sample is meant to be the Treehouse one. Is there something we can refactor towards to ensure it remains so that isn't available today? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excited for this
...h/composeui/src/commonMain/kotlin/com/example/redwood/emojisearch/composeui/ComposeUiText.kt
Outdated
Show resolved
Hide resolved
@JakeWharton I think we need a JVM instance of |
Almost certainly. It would go in a 'treehouse-host-composeui' module (if we don't already have one). It should really happen automatically as part of using If you refactor to keep the Android and JVM Desktop frontends in separate modules, I'd be okay with merging the direct usage and working towards getting it working on Treehouse over the coming weeks (or after I get back). |
f3556bb
to
00bc31a
Compare
val intent = Intent(Intent.ACTION_VIEW) | ||
intent.setData(Uri.parse(url)) | ||
startActivity(context, intent, null) | ||
openUrl.invoke(url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is really cool!
(and I saw the pending comment 👍 )
It's hooked up directly the presenter on desktop similar to the counter sample.
Screen.Recording.2024-01-02.at.2.07.07.AM.mov