From 3fa611266970269d1cd44f497ced61d595118ca0 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Tue, 3 Jan 2023 21:30:34 +0530 Subject: [PATCH] PR for to ensure native modules are compiled with java version 8 (#14693) * explicitly mentioning which version of java to use * fix indentation of closing bracket --- modules/react-native-status/android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/react-native-status/android/build.gradle b/modules/react-native-status/android/build.gradle index 8b73a394eb..859debff1b 100644 --- a/modules/react-native-status/android/build.gradle +++ b/modules/react-native-status/android/build.gradle @@ -19,6 +19,11 @@ def getStatusGoSHA1 = { -> android { compileSdkVersion rootProject.ext.compileSdkVersion + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + defaultConfig { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion