Skip to content

Commit

Permalink
gradle: remove unused buck configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Apr 24, 2020
1 parent 57f1303 commit 548fe04
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 85 deletions.
53 changes: 0 additions & 53 deletions android/app/BUCK

This file was deleted.

32 changes: 0 additions & 32 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -313,36 +313,4 @@ dependencies {
implementation 'com.facebook.fresco:animated-gif:2.0.0'
}

def getLocalNDKDir = { ->
def rootDir = project.rootDir
def localProperties = new File(rootDir, "local.properties")
if (!localProperties.exists()) {
return null
}
Properties properties = new Properties()
localProperties.withInputStream { instr ->
properties.load(instr)
}
return properties.getProperty('ndk.dir')
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task hemroidBuild(type: Exec) {
def localNdkDir = getLocalNDKDir()
def ndkDir = System.env.ANDROID_NDK
if (localNdkDir != null) {
ndkDir = localNdkDir
}

def execPath = "$ndkDir/ndk-build"
def exec = new File(execPath)
if (!exec.exists()) {
throw new GradleException("No ndk-build binary found!")
}
executable execPath
}

preBuild.dependsOn hemroidBuild

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

0 comments on commit 548fe04

Please sign in to comment.