From 84ad9f728342f68fe7585ef9658d41def1c45ad9 Mon Sep 17 00:00:00 2001 From: David Howell Date: Sat, 11 Mar 2017 06:07:42 +1030 Subject: [PATCH] remove the find command and use gradle's replace method (#900) --- react-native/android/build.gradle | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/react-native/android/build.gradle b/react-native/android/build.gradle index 0bc81df7..942c1596 100644 --- a/react-native/android/build.gradle +++ b/react-native/android/build.gradle @@ -83,16 +83,8 @@ task downloadRealmCore(type: Download) { task prepareRealmCore(dependsOn: downloadRealmCore, type:Copy) { from tarTree(downloadRealmCore.dest) into "$coreDownloadDir/core" - //Fixing Core file naming 'arm-*' to 'armeabi-*' - doLast { - exec { - workingDir = "$coreDownloadDir/core" - commandLine = [ - "bash", - "-c", - "find . -name \"*-arm-*\" -exec sh -c \"echo {} | sed -e s/arm/armeabi/g | xargs mv {} \" \\;" - ] - } + rename { String fileName -> + fileName.replace("-arm-", "-armeabi-") } }