Skip to content

Commit

Permalink
Add rootProject.name to decouple the AS name from the directory
Browse files Browse the repository at this point in the history
By default Android Studio will name the project based on the root
directory it's opened from. This gives a consistent (and clear) name
regardless of what root directory the project is located in on the
filesystem.

Explicitly defining `rootProject.name` is recommended here:
https://docs.gradle.org/current/userguide/multi_project_builds.html#naming_recommendations

PiperOrigin-RevId: 528729078
  • Loading branch information
icbaker authored and marcbaechinger committed May 3, 2023
1 parent dab0260 commit 2558138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (gradle.ext.has('androidxMediaModulePrefix')) {
modulePrefix += gradle.ext.androidxMediaModulePrefix
}

rootProject.name = 'media3'
rootProject.name = 'androidx.media3'

include modulePrefix + 'demo'
project(modulePrefix + 'demo').projectDir = new File(rootDir, 'demos/main')
Expand Down

0 comments on commit 2558138

Please sign in to comment.