-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Enable Java8 #23295
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
Enable Java8 #23295
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
@dulmandakh merged commit 38eb2a7 into |
Summary: Running *lint* on RN found that there are some Java 8 features used without specifying Java 8 compatibility in projects. This PR adds Java 8 compatibility and fixes errors caused by Java 8 feature use. I suspend that it may be cause of many failures on older Androids, but also found that many modules/packages switched to and require Java 8. ```java ../../src/main/java/com/facebook/react/devsupport/BundleDownloader.java:167: Try-with-resources requires API level 19 (current min is 16) ../../src/main/java/com/facebook/react/devsupport/DevServerHelper.java:658: Try-with-resources requires API level 19 (current min is 16) ``` For more information https://developer.android.com/studio/write/java8-support [Android] [Changed] - Enable Java 8 Pull Request resolved: facebook#23295 Differential Revision: D13959096 Pulled By: cpojer fbshipit-source-id: 0bfd0565b61a132906cf35ee55b4afcf5450f7cb
Summary: Running *lint* on RN found that there are some Java 8 features used without specifying Java 8 compatibility in projects. This PR adds Java 8 compatibility and fixes errors caused by Java 8 feature use. I suspend that it may be cause of many failures on older Androids, but also found that many modules/packages switched to and require Java 8. ```java ../../src/main/java/com/facebook/react/devsupport/BundleDownloader.java:167: Try-with-resources requires API level 19 (current min is 16) ../../src/main/java/com/facebook/react/devsupport/DevServerHelper.java:658: Try-with-resources requires API level 19 (current min is 16) ``` For more information https://developer.android.com/studio/write/java8-support [Android] [Changed] - Enable Java 8 Pull Request resolved: facebook/react-native#23295 Differential Revision: D13959096 Pulled By: cpojer fbshipit-source-id: 0bfd0565b61a132906cf35ee55b4afcf5450f7cb
Summary
Running lint on RN found that there are some Java 8 features used without specifying Java 8 compatibility in projects. This PR adds Java 8 compatibility and fixes errors caused by Java 8 feature use. I suspend that it may be cause of many failures on older Androids, but also found that many modules/packages switched to and require Java 8.
For more information https://developer.android.com/studio/write/java8-support
Changelog
[Android] [Changed] - Enable Java 8
Test Plan
CI is green, and everything should work just fine. And 2 errors in summary are gone.