mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36311 Currently, we get the apiVersion/languageVersion for Kotlin that Gradle carries over. So what happens is that on older version of Gradle, we try to compile RNGP with older versions of Kotlin. There we have some functions missing (like `.uppercase()`) and the user will fail to build because of this. Here I'm setting `apiVersion` and `languageVersion` to Kotlin 1.5. Even if we compile with Kotlin 1.7, the compiler will make sure our code is compatible to be executed in a Kotlin 1.5 environment. Fixes #36246 Changelog: [Internal] [Changed] - RNGP - Add apiVersion/languageVersion to 1.5 Reviewed By: cipolleschi Differential Revision: D43621083 fbshipit-source-id: d74700ff7ef7ac9691965626c2bd0128459fec9b