@allow-large-files [MSDK] Update ktfmt component on FBS:master

Reviewed By: strulovich

Differential Revision: D35774317

fbshipit-source-id: ce59de8c38e385827a9ee62473b57a1791f18d27
This commit is contained in:
Carmi Grushko
2022-04-25 03:08:51 -07:00
committed by Facebook GitHub Bot
parent 17d2a27ff8
commit 4f855c8a2a
4 changed files with 19 additions and 20 deletions
@@ -26,7 +26,8 @@ object ReactMapBufferViewManager : ReactViewManagerWrapper {
stateWrapper: StateWrapper?,
jsResponderHandler: JSResponderHandler
): View =
viewManager.createView(
viewManager
.createView(
reactTag,
reactContext,
props as? ReactStylesDiffMap,
@@ -224,23 +224,23 @@ private fun Project.cleanupVMFiles(
// two separate HermesDebug and HermesRelease AARs, but until then we'll
// kludge it by deleting the .so files out of the /transforms/ directory.
fileTree(libDir) {
if (enableHermes) {
// For Hermes, delete all the libjsc* files
it.include("**/libjsc*.so")
if (enableHermes) {
// For Hermes, delete all the libjsc* files
it.include("**/libjsc*.so")
if (cleanup) {
// Reduce size by deleting the debugger/inspector
it.include("**/libhermes-executor-debug.so")
} else {
// Release libs take precedence and must be removed
// to allow debugging
it.include("**/libhermes-executor-release.so")
if (cleanup) {
// Reduce size by deleting the debugger/inspector
it.include("**/libhermes-executor-debug.so")
} else {
// Release libs take precedence and must be removed
// to allow debugging
it.include("**/libhermes-executor-release.so")
}
} else {
// For JSC, delete all the libhermes* files
it.include("**/libhermes*.so")
}
}
} else {
// For JSC, delete all the libhermes* files
it.include("**/libhermes*.so")
}
}
.visit { visit ->
val path = visit.file.absolutePath.replace(File.separatorChar, '/')
if (path.matches(targetVariant) && visit.file.isFile) {
@@ -54,8 +54,7 @@ abstract class GenerateCodegenSchemaTask : Exec() {
codegenDir
.file("lib/cli/combine/combine-js-to-schema-cli.js")
.get()
.asFile
.absolutePath,
.asFile.absolutePath,
generatedSchemaFile.get().asFile.absolutePath,
jsRootDir.asFile.get().absolutePath,
))
@@ -136,8 +136,7 @@ internal fun detectOSAwareHermesCommand(projectRoot: File, hermesCommand: String
// 3. If the react-native contains a pre-built hermesc, use it.
val prebuiltHermesPath =
HERMESC_IN_REACT_NATIVE_PATH
.replace("%OS-BIN%", getHermesOSBin())
HERMESC_IN_REACT_NATIVE_PATH.replace("%OS-BIN%", getHermesOSBin())
// Execution on Windows fails with / as separator
.replace('/', File.separatorChar)