d3fkon
1/29/2018 - 8:47 PM

Fix react aapt release build flitch

Fix react aapt release build flitch

```node_modules/react-native/react.gradle```
and add the following


radle.projectsEvaluated {
...
... task.create(
doFirst {...}

doLast {
def moveFunc = { resSuffix ->
File originalDir = file("${resourcesDir}/drawable-${resSuffix}")
if (originalDir.exists()) {
File destDir = file("${resourcesDir}/drawable-${resSuffix}-v4")
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()
}
)}