Created
July 3, 2019 12:00
-
-
Save nikilarigela/80ccb350bf8ce01d88b6a476d8b195c6 to your computer and use it in GitHub Desktop.
react-navigation assests fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``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