diff --git a/react.gradle b/react.gradle index f420292692ff3b..9dc69607efbc6f 100644 --- a/react.gradle +++ b/react.gradle @@ -126,11 +126,11 @@ afterEvaluate { if (Os.isFamily(Os.FAMILY_WINDOWS)) { commandLine("cmd", "/c", *nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}", "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, - "--sourcemap-output", jsPackagerSourceMapFile, *extraArgs) + "--sourcemap-output", enableHermes ? jsPackagerSourceMapFile : jsOutputSourceMapFile, *extraArgs) } else { commandLine(*nodeExecutableAndArgs, cliPath, bundleCommand, "--platform", "android", "--dev", "${devEnabled}", "--reset-cache", "--entry-file", entryFile, "--bundle-output", jsBundleFile, "--assets-dest", resourcesDir, - "--sourcemap-output", jsPackagerSourceMapFile, *extraArgs) + "--sourcemap-output", enableHermes ? jsPackagerSourceMapFile : jsOutputSourceMapFile, *extraArgs) } if (enableHermes) { @@ -167,13 +167,6 @@ afterEvaluate { } } } - } else { - doLast { - ant.move( - file: jsPackagerSourceMapFile, - tofile: jsOutputSourceMapFile - ); - } } enabled config."bundleIn${targetName}" != null