Re-land config lib dependencies for flavors (#34668)
This commit is contained in:
committed by
Todd Volkert
parent
4f5d901395
commit
c50fa3d2bd
@@ -585,8 +585,12 @@ File _findBundleFile(GradleProject project, BuildInfo buildInfo) {
|
||||
if (bundleFile.existsSync())
|
||||
return bundleFile;
|
||||
if (buildInfo.flavor != null) {
|
||||
|
||||
// Android Studio Gradle plugin v3 adds the flavor to the path. For the bundle the folder name is the flavor plus the mode name.
|
||||
bundleFile = project.bundleDirectory.childDirectory(buildInfo.flavor + modeName).childFile(bundleFileName);
|
||||
// On linux, filenames are case sensitive.
|
||||
bundleFile = project.bundleDirectory
|
||||
.childDirectory(camelCase('${buildInfo.flavor}_$modeName'))
|
||||
.childFile(bundleFileName);
|
||||
if (bundleFile.existsSync())
|
||||
return bundleFile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user