Module names now contain the project name

Answered

I'm trying to upgrade my plugin for Android Studio 4.0, and I used to do
    ModuleManager.getInstance(project).getModules()[1].getName();
Which would return e.g. "app" but now returns "projectName.app".

Can you confirm this is correct? I can't see anything in the release notes back to 2019.3, and I can't find any mention of changing the project structure in the Android Studio release notes either, other than that they updated to 2020.

If that's correct then I will use
    ModuleManager.getInstance(project).getModules()[1].replace(projectName + ".","");
but I would like to confirm that with you before releasing.

Thanks very much

3 comments
Comment actions Permalink

Any confirmation/feedback on this is appreciated 

1
Comment actions Permalink

I still require help/confirmation with this

1
Comment actions Permalink

Sorry for delay, now naming of modules follows Gradle's model of sub project (`gradle projects` command output).

0

Please sign in to leave a comment.