remove the find command and use gradle's replace method (#900)
This commit is contained in:
parent
d2a2b9c18a
commit
84ad9f7283
|
@ -83,16 +83,8 @@ task downloadRealmCore(type: Download) {
|
||||||
task prepareRealmCore(dependsOn: downloadRealmCore, type:Copy) {
|
task prepareRealmCore(dependsOn: downloadRealmCore, type:Copy) {
|
||||||
from tarTree(downloadRealmCore.dest)
|
from tarTree(downloadRealmCore.dest)
|
||||||
into "$coreDownloadDir/core"
|
into "$coreDownloadDir/core"
|
||||||
//Fixing Core file naming 'arm-*' to 'armeabi-*'
|
rename { String fileName ->
|
||||||
doLast {
|
fileName.replace("-arm-", "-armeabi-")
|
||||||
exec {
|
|
||||||
workingDir = "$coreDownloadDir/core"
|
|
||||||
commandLine = [
|
|
||||||
"bash",
|
|
||||||
"-c",
|
|
||||||
"find . -name \"*-arm-*\" -exec sh -c \"echo {} | sed -e s/arm/armeabi/g | xargs mv {} \" \\;"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue