Skip to content

RNGP - Add apiVersion/languageVersion to 1.5#36311

Closed
cortinico wants to merge 1 commit into
facebook:mainfrom
cortinico:export-D43621083
Closed

RNGP - Add apiVersion/languageVersion to 1.5#36311
cortinico wants to merge 1 commit into
facebook:mainfrom
cortinico:export-D43621083

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

Summary:
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

Differential Revision: D43621083

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Feb 27, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D43621083

Summary:
Pull Request resolved: facebook#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 facebook#36246

Changelog:
[Internal] [Changed] - RNGP - Add apiVersion/languageVersion to 1.5

Reviewed By: cipolleschi

Differential Revision: D43621083

fbshipit-source-id: af601e7022a91d484905dee224f02d8f180d38bb
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D43621083

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,471,269 +0
android hermes armeabi-v7a 7,793,318 +0
android hermes x86 8,946,667 +0
android hermes x86_64 8,803,974 +0
android jsc arm64-v8a 9,105,402 +0
android jsc armeabi-v7a 8,302,301 +0
android jsc x86 9,155,715 +0
android jsc x86_64 9,414,801 +0

Base commit: 59157b8
Branch: main

@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @cortinico in b360109.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions Bot added the Merged This PR has been merged. label Feb 27, 2023
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in b360109.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compile error when integrate react native with existing android app

3 participants