Fix buildType issue introduced in rebase (#23444)

Summary:
While rebasing https://github.com/facebook/react-native/pull/18892, I missed that buildTypeName no longer existed.

[ANDROID] [Fixed] - Fix issue in react.gradle
Pull Request resolved: https://github.com/facebook/react-native/pull/23444

Differential Revision: D14078281

Pulled By: hramos

fbshipit-source-id: c2b3a1dccb890392f47ed93a3e1ac6e62e50999a
This commit is contained in:
Héctor Ramos
2019-02-13 18:51:23 -08:00
committed by Facebook Github Bot
parent 1cb34cb761
commit 7c9805ce16

View File

@@ -78,8 +78,8 @@ afterEvaluate {
enabled config."bundleIn${targetName}" != null
? config."bundleIn${targetName}"
: config."bundleIn${buildTypeName.capitalize()}" != null
? config."bundleIn${buildTypeName.capitalize()}"
: config."bundleIn${variant.buildType.name.capitalize()}" != null
? config."bundleIn${variant.buildType.name.capitalize()}"
: targetName.toLowerCase().contains("release")
}