I need a clarification about the `packageName` val...
# multiplatform
p
I need a clarification about the
packageName
value inside
nativeDistributions
in
gradle
file. When I create a compose desktop project with the official project builder, it writtes in that
packageName
variable this:
com.example.myapp
but when I searched how to put the name of the application for Windows knowing how to name it in start menu for example, somewhere I read that you must put the app name in that
packageName
, changing
com.example.myapp
with "My App Name". That sounds strange. Package names under Android must be with com.etc.etc naming convention, and sounds very strange to put the application name there for Windows. Is something wrong here? what happens if this app is then compiled also for android, ios, etc...? My only experiencie with KMP is doing windows applications.
c
package name has a different context here for
compose.desktop
. Its really the name of the app. Also, you cannot “compile” the
compose.desktop
for android. you will need the
android
target with the usual android configurations. If you need a
bundleId
, the counterpart for
android.packageName
you set it via
compose.desktop.application.nativeDistributions.macOS.bundleID
p
maybe is a bug on the official project generator for compose desktop, it is setting the package value there instead of the app name value
c
do you enter a “app name” in the wizard?
p
yes
you set a project name and a project package
and the wizard puts the package in the
packageName
field instead of the project name
it puts com.example.etc instead of "My App"
seems to be wrong if
packageName
should be "My App"