mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Daily arc lint --take KTFMT
Reviewed By: zertosh Differential Revision: D31636434 fbshipit-source-id: 4632cdc1bfd3eb398079fa3c7c3791783f30515f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d1a33cd139
commit
2bced60851
+7
-9
@@ -138,20 +138,18 @@ abstract class ReactExtension @Inject constructor(project: Project) {
|
||||
var enableHermesForVariant: (BaseVariant) -> Boolean = { enableHermes.get() }
|
||||
|
||||
/**
|
||||
* Functional interface specify flags for Hermes on specific [BaseVariant] Default: will
|
||||
* return [hermesFlagsRelease] for Release variants and [hermesFlagsDebug] for Debug variants.
|
||||
* Functional interface specify flags for Hermes on specific [BaseVariant] Default: will return
|
||||
* [hermesFlagsRelease] for Release variants and [hermesFlagsDebug] for Debug variants.
|
||||
*/
|
||||
var hermesFlagsForVariant: (BaseVariant) -> List<String> = {
|
||||
variant -> if (variant.isRelease) hermesFlagsRelease.get() else hermesFlagsDebug.get()
|
||||
var hermesFlagsForVariant: (BaseVariant) -> List<String> = { variant ->
|
||||
if (variant.isRelease) hermesFlagsRelease.get() else hermesFlagsDebug.get()
|
||||
}
|
||||
|
||||
/**
|
||||
* Functional interface to delete debug files only on specific [BaseVariant] Default: will
|
||||
* return True for Release variants and False for Debug variants.
|
||||
* Functional interface to delete debug files only on specific [BaseVariant] Default: will return
|
||||
* True for Release variants and False for Debug variants.
|
||||
*/
|
||||
var deleteDebugFilesForVariant: (BaseVariant) -> Boolean = {
|
||||
variant -> variant.isRelease
|
||||
}
|
||||
var deleteDebugFilesForVariant: (BaseVariant) -> Boolean = { variant -> variant.isRelease }
|
||||
|
||||
/** Flags to pass to Hermes for Debug variants. Default: [] */
|
||||
val hermesFlagsDebug: ListProperty<String> =
|
||||
|
||||
Reference in New Issue
Block a user