diff --git a/RNTester/android/app/build.gradle b/RNTester/android/app/build.gradle index f1d9c0b09b3..fbc75553a06 100644 --- a/RNTester/android/app/build.gradle +++ b/RNTester/android/app/build.gradle @@ -4,10 +4,9 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ - -apply plugin: 'com.android.application' - -import com.android.build.OutputFile +plugins { + id("com.android.application") +} /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets diff --git a/ReactAndroid/build.gradle b/ReactAndroid/build.gradle index 74b1d50c998..ceb471bc6fc 100644 --- a/ReactAndroid/build.gradle +++ b/ReactAndroid/build.gradle @@ -6,7 +6,7 @@ plugins { id("com.android.library") id("maven") - id("de.undercouch.download") + id("de.undercouch.download") version "3.4.3" } import de.undercouch.gradle.tasks.download.Download diff --git a/build.gradle b/build.gradle.kts similarity index 70% rename from build.gradle rename to build.gradle.kts index 85dec6e6852..f2ff0a46a45 100644 --- a/build.gradle +++ b/build.gradle.kts @@ -11,7 +11,6 @@ buildscript { } dependencies { classpath("com.android.tools.build:gradle:3.4.0") - classpath("de.undercouch:gradle-download-task:3.4.3") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files @@ -20,17 +19,11 @@ buildscript { allprojects { repositories { - mavenLocal() maven { - url("$rootDir/node_modules/jsc-android/dist") + url = uri("$rootDir/node_modules/jsc-android/dist") } - + mavenLocal() google() jcenter() - - def androidSdk = System.getenv("ANDROID_SDK") - maven { - url("$androidSdk/extras/m2repository/") - } } } diff --git a/settings.gradle b/settings.gradle.kts similarity index 75% rename from settings.gradle rename to settings.gradle.kts index 6b0d36b3f15..0daab695b88 100644 --- a/settings.gradle +++ b/settings.gradle.kts @@ -3,5 +3,7 @@ // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -include(":ReactAndroid") -include(":RNTester:android:app") +include( + ":ReactAndroid", + ":RNTester:android:app" +)