mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Android Studio 4.1 release with Android Gradle Plugin 4.1.0, thus I expect developers will update to newer version and expect React Native support. Thus release include many fixes and improvements, see[release notes](https://developer.android.com/studio/releases/gradle-plugin#4-1-0), but most importantly Google released it's API documentation at https://developer.android.com/reference/tools/gradle-api. We lacked the API documentation to develop proper React Gradle Plugin. ## Changelog [Android] [Changed] - bump Android Gradle Plugin to 4.1.0 Pull Request resolved: https://github.com/facebook/react-native/pull/30201 Test Plan: RNTester builds and runs as expected, also my apps. Reviewed By: cpojer Differential Revision: D24560213 Pulled By: fkgozali fbshipit-source-id: 9cf1e2373f278885b35b4f9176c7ad736ec50f6b
39 lines
1.0 KiB
Groovy
39 lines
1.0 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
ext {
|
|
buildToolsVersion = "29.0.3"
|
|
minSdkVersion = 21
|
|
compileSdkVersion = 29
|
|
targetSdkVersion = 29
|
|
ndkVersion = "20.1.5948944"
|
|
}
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:4.1.0")
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
|
|
url("$rootDir/../node_modules/react-native/android")
|
|
}
|
|
maven {
|
|
// Android JSC is installed from npm
|
|
url("$rootDir/../node_modules/jsc-android/dist")
|
|
}
|
|
|
|
google()
|
|
jcenter()
|
|
maven { url 'https://www.jitpack.io' }
|
|
}
|
|
}
|