korlibs / korlibs/korge

Project wizard creates projects with an invalid Android module names

Open
#1,839 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

I have called my project "Space Shooter" and I now can't build it for android as this generate a module called "Space Shooter.deps" which is not a valid android name for a module

To fix this I had to add this line to my `settings.gradle.kts` file:
```rootProject.name = "SpaceShooter"```

That means that the new project created via the Korge plugin in Intellij does not perform any type of check to the project name, I think it would be better for the new project to have a "safe" name based on the project name set by the user, removing spaces and invalid characters and stuff like that and automatically add the "safe" name to the gradle settings file

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the IntelliJ Korge plugin's project-generation path and inspect how the generated settings.gradle.kts receives the project name. Verify the behavior with a project name containing spaces and invalid characters; done means the generated Android module name is valid without manual edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.