// Copyright 2015-present Facebook. All Rights Reserved. buildscript { ext { gradlePluginVersion = '4.2.2' } repositories { google() mavenCentral() mavenLocal() } dependencies { classpath "com.android.tools.build:gradle:${gradlePluginVersion}" classpath 'de.undercouch:gradle-download-task:2.0.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() mavenCentral() mavenLocal() } // used to override ndk path/version from env variables on CI ext["ANDROID_NDK_PATH"] = null if (System.getenv("LOCAL_ANDROID_NDK_VERSION") != null) { setProperty("ANDROID_NDK_VERSION", System.getenv("LOCAL_ANDROID_NDK_VERSION")) ext["ANDROID_NDK_PATH"] = System.getenv("ANDROID_NDK") } }