Replies: 9 comments 7 replies
-
Voted ✅ I think it makes sense to remove it, as the application name doesn't bring much value anyways |
Beta Was this translation helpful? Give feedback.
-
Voted. 🙌🏻 |
Beta Was this translation helpful? Give feedback.
-
Voted ✅ |
Beta Was this translation helpful? Give feedback.
-
Voted ✅ |
Beta Was this translation helpful? Give feedback.
-
Voted ✅ I would prefer going with less code and simplicity most of the time so this cleanup makes sense to me. |
Beta Was this translation helpful? Give feedback.
-
@luongvo Would we stick with |
Beta Was this translation helpful? Give feedback.
-
Voted, we actually don't need a specific application name. |
Beta Was this translation helpful? Give feedback.
-
@luongvo Looks like it's settled! What happened to the "Convert discussion to issue" button? 💭 |
Beta Was this translation helpful? Give feedback.
-
Issue created: #361 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
This is the old logic, however, I don't think we should rename the Application class to fit the generated project name. There is no best practice to rename it. Should we name the Application class as
MainApplication
from the templates & samples? 💭IMO, removing
Renaming application class...
logic could simplify our script logic and allow us to focus on the rest of things more efficiently.Solution
Instead of naming the Application class as
TemplateXMLApplication
andTemplateComposeApplication
in the templates, and then having logic innew_project
script to find and rename that class to fit the generated project name (e.g.SampleXmlApplication
) and its reference in theAndroidManifest.xml
file, we could just name them asMainApplication
from the template level and ignore renaming it in scripting level. The idea is to keep the default name asMainApplication
and let the developer rename it later if it's really necessary to do.MainApplication.kt
and their references inAndroidManifest.xml
.renameApplicationClass
logic in thenew_project
script.android-templates/scripts/new_project.kts
Lines 240 to 260 in 3924ed9
Who Benefits?
Developers
What's Next?
8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions