Skip to content

Commit e9ecd35

Browse files
cortinicofacebook-github-bot
authored andcommitted
Fix compilation warnings introduced by Gradle 8.4 (#39959)
Summary: Pull Request resolved: #39959 We're still accessing project.buildDir which will be removed in Gradle 9.0 I'm cleaning it up here. Changelog: [Internal] [Changed] - Fix compilation warnings introduced by Gradle 8.4 Reviewed By: yungsters Differential Revision: D50016573 fbshipit-source-id: de7a725f61b503f08991ebf85b9a002cefab221a
1 parent 81213f6 commit e9ecd35

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ tasks.withType<KotlinCompile>().configureEach {
6666
apiVersion = "1.5"
6767
// See comment above on JDK 11 support
6868
jvmTarget = "11"
69+
allWarningsAsErrors = true
6970
}
7071
}
7172

packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ internal fun Project.configureReactTasks(variant: Variant, config: ReactExtensio
2323
val targetName = variant.name.capitalizeCompat()
2424
val targetPath = variant.name
2525

26+
val buildDir = this.layout.buildDirectory.get().asFile
2627
// Resources: generated/assets/react/<variant>/index.android.bundle
2728
val resourcesDir = File(buildDir, "generated/res/react/$targetPath")
2829
// Bundle: generated/assets/react/<variant>/index.android.bundle

0 commit comments

Comments
 (0)