Workaround for Anrdoid SDK detection not working with Java 9+ installed

Summary: Workaround for Anrdoid SDK detection not working with Java 9+ installed

Reviewed By: mweststrate

Differential Revision: D19094906

fbshipit-source-id: a7c8c9c8403d25ecc9b2d95113718ddf1821a349
This commit is contained in:
Anton Nikolaev
2019-12-16 16:35:49 -08:00
committed by Facebook Github Bot
parent d32774f439
commit 5d17eede85
4 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "flipper-doctor",
"version": "0.2.1",
"version": "0.2.2",
"description": "Utility for checking for issues with a flipper installation",
"main": "lib/index.js",
"types": "lib/index.d.ts",

View File

@@ -32,6 +32,9 @@ export type EnvironmentInfo = {
};
export async function getEnvInfo(): Promise<EnvironmentInfo> {
// Temporary fix for https://github.com/facebook/flipper/issues/667 until it properly fixed in 'envinfo'.
process.env.JAVA_OPTS =
'-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee';
return JSON.parse(
await run(
{

View File

@@ -136,7 +136,7 @@
"emotion": "^10.0.23",
"expand-tilde": "^2.0.2",
"express": "^4.15.2",
"flipper-doctor": "^0.2.1",
"flipper-doctor": "^0.2.2",
"fs-extra": "^8.0.1",
"immer": "^5.0.1",
"immutable": "^4.0.0-rc.12",

View File

@@ -4147,10 +4147,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08"
integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==
flipper-doctor@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/flipper-doctor/-/flipper-doctor-0.2.1.tgz#aed801c5f12a012a555a0d82e4b93bce88263f3f"
integrity sha512-JjEEEMWWxD4P899SX7huVMr44ERmGSeUZk+IAgWFhHxCvrQDoFYGjK2GFvwMn6vV08RpEPxBXiYhflnSOk/wJg==
flipper-doctor@^0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/flipper-doctor/-/flipper-doctor-0.2.2.tgz#ad51882bd82fea105034eab4db04aa9da2e45fdd"
integrity sha512-bi5xO5GO0LzwEHif2k4gpL4aXlt70tts2wxTsTZS4ng6VykV/5qlawIcOg5vn57+rsito+zWsyUhYEMgKu0BZg==
dependencies:
"@types/node" "^12.12.12"
envinfo "^7.4.0"