Skip to content

Commit be9a669

Browse files
committed
Revert "Revert "Gradle 6.9, Android Gradle Plugin 4.2.1 (#31593)""
This reverts commit a10a201.
1 parent 0e08b25 commit be9a669

12 files changed

Lines changed: 12 additions & 23 deletions

File tree

ReactAndroid/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,6 @@ task installArchives {
385385
android {
386386
compileSdkVersion 30
387387
ndkVersion ANDROID_NDK_VERSION
388-
compileOptions {
389-
sourceCompatibility(JavaVersion.VERSION_1_8)
390-
targetCompatibility(JavaVersion.VERSION_1_8)
391-
}
392388

393389
defaultConfig {
394390
minSdkVersion(21)

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ buildscript {
1212
mavenCentral()
1313
}
1414
dependencies {
15-
classpath("com.android.tools.build:gradle:4.1.0")
16-
classpath("de.undercouch:gradle-download-task:4.0.2")
15+
classpath("com.android.tools.build:gradle:4.2.1")
16+
classpath("de.undercouch:gradle-download-task:4.1.1")
1717

1818
// NOTE: Do not place your application dependencies here; they belong
1919
// in the individual module build.gradle files

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
55
org.gradle.parallel=true
66

77
ANDROID_NDK_VERSION=20.1.5948944
8+
android.useAndroidX=true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

packages/react-native-codegen/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
mavenCentral()
1515
}
1616
dependencies {
17-
classpath("com.android.tools.build:gradle:4.1.0")
17+
classpath("com.android.tools.build:gradle:4.2.1")
1818
}
1919
}
2020

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

packages/react-native-codegen/android/gradlePlugin-build/gradlePlugin/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gradlePlugin {
1919
}
2020

2121
dependencies {
22-
implementation 'com.android.tools.build:gradle:4.1.0'
22+
implementation 'com.android.tools.build:gradle:4.2.1'
2323
// Use the same Gson version that `com.android.tools.build:gradle` depends on.
2424
implementation 'com.google.code.gson:gson:2.8.5'
2525
implementation 'com.google.guava:guava:29.0-jre'

packages/react-native-gradle-plugin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
plugins {
99
`java-gradle-plugin`
1010
`kotlin-dsl`
11-
kotlin("jvm") version "1.4.21"
11+
kotlin("jvm") version "1.4.20"
1212
}
1313

1414
repositories {
@@ -26,5 +26,5 @@ gradlePlugin {
2626
}
2727

2828
dependencies {
29-
implementation("com.android.tools.build:gradle:4.1.0")
29+
implementation("com.android.tools.build:gradle:4.2.1")
3030
}

packages/rn-tester/android/app/build.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ def useIntlJsc = false
131131
android {
132132
compileSdkVersion 29
133133
ndkVersion ANDROID_NDK_VERSION
134-
compileOptions {
135-
sourceCompatibility JavaVersion.VERSION_1_8
136-
targetCompatibility JavaVersion.VERSION_1_8
137-
}
134+
138135
dexOptions {
139136
javaMaxHeapSize "4g"
140137
}

template/android/app/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ android {
125125

126126
compileSdkVersion rootProject.ext.compileSdkVersion
127127

128-
compileOptions {
129-
sourceCompatibility JavaVersion.VERSION_1_8
130-
targetCompatibility JavaVersion.VERSION_1_8
131-
}
132-
133128
defaultConfig {
134129
applicationId "com.helloworld"
135130
minSdkVersion rootProject.ext.minSdkVersion

0 commit comments

Comments
 (0)