-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
File associations #4957
File associations #4957
Conversation
[Desktop: Add support for file associations](JetBrains#773)
[Desktop: Add support for file associations](JetBrains#773)
@terrakok, could you also review the new API in this PR? I am also reviewing it and the implementation. |
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.
Thanks!
A few changes needed, an API review from @terrakok, and it is good to merge.
gradle-plugins/compose/src/test/test-projects/application/macOptions/Expected-Info.plist
Show resolved
Hide resolved
...pose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/JvmApplicationDistributions.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/JvmApplicationDistributions.kt
Outdated
Show resolved
Hide resolved
[Desktop: Add support for file associations](JetBrains#773)
...ins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/FileAssociation.kt
Outdated
Show resolved
Hide resolved
...src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/JvmApplicationDistributions.kt
Outdated
Show resolved
Hide resolved
...mpose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/InfoPlistBuilder.kt
Outdated
Show resolved
Hide resolved
...mpose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/InfoPlistBuilder.kt
Outdated
Show resolved
Hide resolved
...mpose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/InfoPlistBuilder.kt
Outdated
Show resolved
Hide resolved
...mpose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/InfoPlistBuilder.kt
Outdated
Show resolved
Hide resolved
...mpose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/InfoPlistBuilder.kt
Outdated
Show resolved
Hide resolved
...rc/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureJvmApplication.kt
Outdated
Show resolved
Hide resolved
gradle-plugins/compose/src/test/test-projects/application/macOptions/Expected-Info.plist
Show resolved
Hide resolved
[Desktop: Add support for file associations](JetBrains#773)
[Desktop: Add support for file associations](JetBrains#773)
Except for DSL test and docs, everything else is fixed. Can you close the comment, @terrakok? It is not closable. What do you think about the API? It supports:
The demo project is also updated according to the new API. PS. This version is only tested on MacOS for now. I'll check the rest a bit later. |
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.
Looks good to me after resolving 2 my open comments.
The end review and merging I delegate to @terrakok.
...src/main/kotlin/org/jetbrains/compose/desktop/application/dsl/JvmApplicationDistributions.kt
Outdated
Show resolved
Hide resolved
[Desktop: Add support for file associations](JetBrains#773)
I had to change resource name generation to make it stable for testing. |
I tested the current version on Windows, MacOS, Ubuntu, Kubuntu. On Windows, MacOS everything is ok, while on both Linux distributives there are problems (in Kubuntu there is no icon, in Ubuntu, association doesn't work), but the same thing is with idea as well. |
...pose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt
Show resolved
Hide resolved
[Desktop: Add support for file associations](JetBrains#773)
Everything seems fixed now. |
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.
val fileAssociationFiles = fileAssociations.orNull.orEmpty()
do we need it iyet?
[Desktop: Add support for file associations](JetBrains#773)
gradle-plugins/compose/src/test/test-projects/application/macOptions/build.gradle
Show resolved
Hide resolved
[Desktop: Add support for file associations](JetBrains#773)
Looks good to me, thanks! @terrakok, please merge, if everything is okay to you too. |
Docs for file associations support (#4957) which fixes #773. --------- Co-authored-by: Aleksey Zamulla <[email protected]>
Add file associations support to Compose Desktop
Fixes #773
Testing
Tested on the sample project.
Behaviours per OSs:
I didn't write any unit tests because I don’t know which of them you are expecting me to write. So, I'm looking forward to your feedback and suggestions.
This should be tested by QA
Release Notes
Highlight - Desktop
nativeDistributions
block: