Skip to content

Commit f8d337f

Browse files
author
Mihail Slavchev
committed
Merge pull request #280 from NativeScript/cankov/resource-and-no-flavors-fail-comma
build.gradle creates include.gradle with an extra comma
2 parents 6b10b78 + 2e61acc commit f8d337f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/project-template-gradle/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,11 @@ task createPluginsConfigFile {
260260
println "\t+creating product flavors include.gradle file in $configurationsDir folder..."
261261
def flavors = pluginNames.join(",")
262262
if(appResExists) {
263-
flavors = '"' + appResourcesName + '", ' + flavors
263+
if (flavors == '') {
264+
flavors = '"' + appResourcesName + '"'
265+
} else {
266+
flavors = '"' + appResourcesName + '", ' + flavors
267+
}
264268
}
265269
flavorsFile << "android { \n"
266270
flavorsFile << "\tflavorDimensions " + flavors + "\n"

0 commit comments

Comments
 (0)