Skip to content

Commit

Permalink
3.4.5 push
Browse files Browse the repository at this point in the history
  • Loading branch information
David Motsonashvili committed Apr 29, 2021
1 parent 379ae07 commit 7a16f5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion google-services-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}

group = 'com.google.gms'
version = '4.3.4'
version = '4.3.5'
project.ext.archivesBaseName = 'google-services'
project.ext.pomDesc = 'Gradle plug-in to build Firebase applications.'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ private static List<String> splitVariantNames(String variant) {
Matcher flavorMatcher = FLAVOR_PATTERN.matcher(variant);
while (flavorMatcher.find()) {
String match = flavorMatcher.group(1);
if (match != null) {
if (match != null && !match.equals("null")) {
flavors.add(match.toLowerCase());
}
}
Expand All @@ -509,7 +509,7 @@ static List<String> getJsonLocations(String variantDirname) {
.collect(toList());
}
List<String> flavorNames = new ArrayList<>();
if (variantMatcher.group(1) != null) {
if (variantMatcher.group(1) != null && !variantMatcher.group(1).equals("null")) {
flavorNames.add(variantMatcher.group(1).toLowerCase());
}
flavorNames.addAll(splitVariantNames(variantMatcher.group(2)));
Expand All @@ -531,7 +531,7 @@ static List<String> getJsonLocations(String variantDirname) {
fileLocations = fileLocations
.stream()
.distinct()
.sorted(Comparator.comparing(GoogleServicesTask::countSlashes))
.sorted(Comparator.comparing(GoogleServicesTask::countSlashes).reversed())
.map(location -> location.isEmpty() ? location + JSON_FILE_NAME : location + '/' + JSON_FILE_NAME)
.collect(toList());
return fileLocations;
Expand Down

0 comments on commit 7a16f5a

Please sign in to comment.