Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: downgrade kotlin & take kotlinVersion from ext #1130

Conversation

kacperkapusciak
Copy link
Member

@kacperkapusciak kacperkapusciak commented Sep 14, 2021

Description

This PR downgrades kotlin version to match react-native's one - https://github.com/facebook/react-native/blob/main/ReactAndroid/src/main/third-party/kotlin/BUCK#L54

Adds a way for the developer to override kotlin version via kotlinVersion prop in build.gradle ext property.

Also, removes the dependency on the standard library (explaination) thus lets Gradle infer correct versions for a particular Kotlin version.

Fixes #1109.

Test code and steps to reproduce

Run ./gradlew compileDebugKotlin in react-native-screens/TestsExample/android.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@kacperkapusciak kacperkapusciak changed the title fix: resolve gradle deps to use kotlin v1.5.20 fix: downgrade kotlin & take kotlinVersion from ext Sep 17, 2021
@RazaShehryar
Copy link

RazaShehryar commented Sep 20, 2021

When will this be merged? I am having an issue with the kotlin version mismatch because I've defined it in ext

@kacperkapusciak
Copy link
Member Author

@RazaShehryar we could merge this change today but there probably won't be a new version of screens this week. For the time being, you can eg. usepatch-package to apply these changes directly or install our package from this branch.

Cheers

@kacperkapusciak kacperkapusciak merged commit a677936 into master Sep 21, 2021
@kacperkapusciak kacperkapusciak deleted the @kacperkapusciak/fix-jar-runtime-classpath-version-warning branch September 21, 2021 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.6.0]v Runtime JAR files in the classpath should have the same version.
3 participants