Skip to content

Instantly share code, notes, and snippets.

@nikilarigela
Created July 3, 2019 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikilarigela/80ccb350bf8ce01d88b6a476d8b195c6 to your computer and use it in GitHub Desktop.
Save nikilarigela/80ccb350bf8ce01d88b6a476d8b195c6 to your computer and use it in GitHub Desktop.
react-navigation assests fix
``doLast {
def moveFunc = { resSuffix ->
File originalDir = file("$buildDir/generated/res/react/release/drawable-${resSuffix}");
if (originalDir.exists()) {
File destDir = file("$buildDir/../src/main/res/drawable-${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()
}``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment