-
Notifications
You must be signed in to change notification settings - Fork 202
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
Add app-desktop module #452
Add app-desktop module #452
Conversation
…sfiedLinkError that was caused to import Navigation Compose to app-desktop, made with compose multiplatform.
|
||
nativeDistributions { | ||
// TODO: set output formats of each platform | ||
targetFormats(TargetFormat.Dmg, /*TargetFormat.Msi, TargetFormat.Deb*/) |
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.
It needs to set up a configuration for each platform we need.
But... it probably no need to set it up if only executes from IDE or as a Gradle Task.
iconFile.set(iconsRoot.resolve("desktop-icon.png")) | ||
} | ||
// Setup Windows and Linux configuration if needed. | ||
// windows { |
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.
It needs to set up a configuration for each platform we need.
But... it may be enough to be supported only for the macOS for a while.
core/designsystem/build.gradle.kts
Outdated
@@ -3,6 +3,7 @@ plugins { | |||
id("droidkaigi.primitive.kmp.android") | |||
id("droidkaigi.primitive.kmp.ios") | |||
id("droidkaigi.primitive.kmp.compose") | |||
id("droidkaigi.primitive.kmp.desktop") |
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.
KmpDesktop plugin is applied here, but the main necessary definition is jvm()
call.
It seems to be required to call from the desktop app.
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.
Added the same as the Android logo icon.
It requires to preparation of icons for each platform as necessary.
Detekt check failed. Please run |
Is there a Gradle task we can use to verify the desktop build for CI? I'm concerned it could break at any time. |
…es for building packageDmg
@takahirom I have already added a workaround to gradle.properties, because it seemed to fail in |
Maybe it is related to this issue and PR. We might have to use snapshot version of AndroidX 😇 |
@takahirom |
As I was saying, we might have to update the snapshot version of AndroidX, but I'm not sure if it's safe. Here are a couple of points to consider:
|
I see, I understand it. And I'm sorry for my misreading. |
@takahirom In progress
|
I've investigated a lot about the above issues, but I couldn't find a solution not to crash the desktop app, other than Compose Multiplatform Plugin bump up to 1.7.0-alpha01 or higher.
|
@takahirom So once again, could you please review this PR whenever you are free? |
@nyafunta9858 I have a big news. foundation 1.8.0-alpha01 has been released and we should be able to upgrade the foundation 🎉 |
Thanks for your beneficial information, @takahirom ! |
@nyafunta9858 I've merged the PR! |
@takahirom |
@nyafunta9858 It might be a little confusing when we introduce the app-desktop module with the |
I think we can create a feature branch for this. Once it works with one screen, I would like to merge it into the main branch. Thank you for investigating KMP possibilities. I'll merge this into the feature branch. |
Issue
Overview (Required)
Links
Movie (Optional)
2024-08-15.23.56.41.mov
2024-08-15.23.52.07.mov
2024-08-15.23.53.53.mov
2024-09-07.21.12.46.mov
Notes
It is probably better to use
:app-desktop:packageDistributionForCurrentOS
but this app is built only for debugging by contributors, so I set only for macOS dmg package format to configuration oftargetFormats
, now.Therefore, it is enough to use
packageDmg
for checking build normally.