diff --git a/react.gradle b/react.gradle index 488ebd6242567d..07fd9e3f2541be 100644 --- a/react.gradle +++ b/react.gradle @@ -60,18 +60,19 @@ afterEvaluate { // Address issue #22234 by moving generated resources into build dir so they are in one spot, not duplicated doLast { def moveFunc = { resSuffix -> - File originalDir = file("$buildDir/generated/res/react/${flavorPathSegment}release/drawable-${resSuffix}") + File originalDir = file("$buildDir/generated/res/react/${flavorPathSegment}release/${resSuffix}") if (originalDir.exists()) { - File destDir = file("$buildDir/../src/main/res/drawable-${resSuffix}") + File destDir = file("$buildDir/../src/main/res/${resSuffix}") ant.move(file: originalDir, tofile: destDir); } } - moveFunc.curry("ldpi").call() - moveFunc.curry("mdpi").call() - moveFunc.curry("hdpi").call() - moveFunc.curry("xhdpi").call() - moveFunc.curry("xxhdpi").call() - moveFunc.curry("xxxhdpi").call() + moveFunc.curry("drawable-ldpi").call() + moveFunc.curry("drawable-mdpi").call() + moveFunc.curry("drawable-hdpi").call() + moveFunc.curry("drawable-xhdpi").call() + moveFunc.curry("drawable-xxhdpi").call() + moveFunc.curry("drawable-xxxhdpi").call() + moveFunc.curry("raw").call() } // Set up inputs and outputs so gradle can cache the result