@expo/dev-server
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -155,8 +155,8 @@ "use strict"; | ||
// Check android/app/build.gradle for "enableHermes: true" | ||
// Check android/app/build.gradle for "enableHermes: true", for SDK < 48 | ||
const appBuildGradlePath = _path().default.join(projectRoot, 'android', 'app', 'build.gradle'); | ||
if (_fsExtra().default.existsSync(appBuildGradlePath)) { | ||
const content = await _fsExtra().default.readFile(appBuildGradlePath, 'utf8'); | ||
const isPropsReference = content.search(/^\s*(enableHermes:|hermesEnabled\s*=)\s*\(findProperty\('expo.jsEngine'\) \?: "(jsc|hermes)"\) == "hermes",?\s+/m) >= 0; | ||
const isHermesBare = content.search(/^\s*(enableHermes:|hermesEnabled\s*=)\s*true,?\s+/m) >= 0; | ||
const isPropsReference = content.search(/^\s*enableHermes:\s*\(findProperty\('expo.jsEngine'\) \?: "jsc"\) == "hermes",?\s+/m) >= 0; | ||
const isHermesBare = content.search(/^\s*enableHermes:\s*true,?\s+/m) >= 0; | ||
if (!isPropsReference && isHermesManaged !== isHermesBare) { | ||
@@ -171,3 +171,3 @@ return true; | ||
const props = parseGradleProperties(await _fsExtra().default.readFile(gradlePropertiesPath, 'utf8')); | ||
const isHermesBare = props['expo.jsEngine'] === 'hermes'; | ||
const isHermesBare = props['expo.jsEngine'] === 'hermes' || props['hermesEnabled'] === 'true'; | ||
if (isHermesManaged !== isHermesBare) { | ||
@@ -174,0 +174,0 @@ return true; |
@@ -59,3 +59,3 @@ "use strict"; | ||
// Dangerously pick the platform out of the request URL | ||
// like: http:\\\\/\\\\/192.168.6.113:19000\\\\/index.bundle&platform=android\dev=true&hot=false&minify=false | ||
// like: http:\\\\/\\\\/192.168.6.113:8081\\\\/index.bundle&platform=android\dev=true&hot=false&minify=false | ||
return (_body$0$match$ = (_body$0$match = body[0].match(/[?|&]platform=(\w+)[&|\\]/)) === null || _body$0$match === void 0 ? void 0 : _body$0$match[1]) !== null && _body$0$match$ !== void 0 ? _body$0$match$ : null; | ||
@@ -62,0 +62,0 @@ } |
{ | ||
"name": "@expo/dev-server", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Development servers for starting React Native projects", | ||
@@ -34,3 +34,3 @@ "main": "build/MetroDevServer.js", | ||
"@expo/bunyan": "4.0.0", | ||
"@expo/metro-config": "~0.9.0", | ||
"@expo/metro-config": "~0.10.0", | ||
"@expo/osascript": "2.0.33", | ||
@@ -57,3 +57,3 @@ "@expo/spawn-async": "^1.5.0", | ||
}, | ||
"gitHead": "66d0501185956602c144a03a891bdb34d3c03910" | ||
"gitHead": "fa5ecca8251986b9f197cc14074eec0ab6dfb6db" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
184270
+ Added@expo/config@8.1.2(transitive)
+ Added@expo/config-plugins@7.2.5(transitive)
+ Added@expo/config-types@49.0.0(transitive)
+ Added@expo/metro-config@0.10.7(transitive)
+ Addedjsc-safe-url@0.2.4(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedsemver@7.5.3(transitive)
+ Addedxml2js@0.6.0(transitive)
+ Addedyallist@4.0.0(transitive)
- Removed@expo/config@8.0.5(transitive)
- Removed@expo/config-plugins@6.0.2(transitive)
- Removed@expo/config-types@48.0.0(transitive)
- Removed@expo/metro-config@0.9.0(transitive)
- Removedxml2js@0.4.23(transitive)
Updated@expo/metro-config@~0.10.0