From 548fe04f54fe6d6b572dd8ecbbf6de88227f68d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 23 Apr 2020 17:57:28 +0200 Subject: [PATCH] gradle: remove unused buck configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- android/app/BUCK | 53 ---------------------------------------- android/app/build.gradle | 32 ------------------------ 2 files changed, 85 deletions(-) delete mode 100644 android/app/BUCK diff --git a/android/app/BUCK b/android/app/BUCK deleted file mode 100644 index 7566a15f25..0000000000 --- a/android/app/BUCK +++ /dev/null @@ -1,53 +0,0 @@ -import re - -# To learn about Buck see [Docs](https://buckbuild.com/). -# To run your application with Buck: -# - install Buck -# - `npm start` - to start the packager -# - `cd android` -# - `cp ~/.android/debug.keystore keystores/debug.keystore` -# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck -# - `buck install -r android/app` - compile, install and run application -# - -lib_deps = [] -create_aar_targets(glob(["libs/*.aar"])) -create_jar_targets(glob(["libs/*.jar"])) - -android_library( - name = 'all-libs', - exported_deps = lib_deps -) - -android_library( - name = 'app-code', - srcs = glob([ - 'src/main/java/**/*.java', - ]), - deps = [ - ':all-libs', - ':build_config', - ':res', - ], -) - -android_build_config( - name = 'build_config', - package = 'im.status.ethereum', -) - -android_resource( - name = 'res', - res = 'src/main/res', - package = 'im.status.ethereum', -) - -android_binary( - name = 'app', - package_type = 'debug', - manifest = 'src/main/AndroidManifest.xml', - keystore = '//android/keystores:debug', - deps = [ - ':app-code', - ], -) diff --git a/android/app/build.gradle b/android/app/build.gradle index 4ef356b7ce..196ffb6ab7 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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)