Skip to content

Commit

Permalink
use default flavor if there is no product flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
Legion2 committed Sep 18, 2021
1 parent 20fd5e3 commit 7131008
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ class FlavorArtifact {
}
}

if (variant.productFlavors.isEmpty()) {
return false
}
// 2. find missingStrategies
ProductFlavor flavor = variant.productFlavors.first()
ProductFlavor flavor = variant.productFlavors.isEmpty() ? variant.mergedFlavor : variant.productFlavors.first()
flavor.missingDimensionStrategies.find { entry ->
String toDimension = entry.getKey()
String toFlavor = entry.getValue().getFallbacks().first()
Expand Down

0 comments on commit 7131008

Please sign in to comment.