1// Copyright 2015-present Facebook. All Rights Reserved.
2
3buildscript {
4    ext {
5        gradlePluginVersion = '4.2.2'
6    }
7    repositories {
8        google()
9        mavenCentral()
10        mavenLocal()
11    }
12    dependencies {
13        classpath "com.android.tools.build:gradle:${gradlePluginVersion}"
14        classpath 'de.undercouch:gradle-download-task:2.0.0'
15
16        // NOTE: Do not place your application dependencies here; they belong
17        // in the individual module build.gradle files
18    }
19}
20
21allprojects {
22    repositories {
23        google()
24        mavenCentral()
25        mavenLocal()
26    }
27
28    // used to override ndk path/version from env variables on CI
29    ext["ANDROID_NDK_PATH"] = null
30    if (System.getenv("LOCAL_ANDROID_NDK_VERSION") != null) {
31      setProperty("ANDROID_NDK_VERSION", System.getenv("LOCAL_ANDROID_NDK_VERSION"))
32      ext["ANDROID_NDK_PATH"] =  System.getenv("ANDROID_NDK")
33    }
34}
35