Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Update path to 1.3.0 simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ide committed Jan 14, 2016
1 parent e2d5f7e commit ad9a1d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions src/application/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@ let jsonFile = require('@exponent/json-file');
let path = require('path');
let promiseProps = require('promise-props');

function packageJsonFile() {
return jsonFile(path.resolve(__dirname, '..', '..', 'package.json'));
}

async function reactNativeVersionInfoAsync() {

let reactNativePkgJson = jsonFile(path.resolve(__dirname, '../../node_modules/react-native/package.json'));
let templatePath = path.join(__dirname, '..', '..', 'template');
let templatePackage = jsonFile(path.join(templatePath, 'package.json'));
let reactNativePackage = jsonFile(path.join(templatePath, 'node_modules', 'react-native', 'package.json'));

return await promiseProps({
versionDescription: packageJsonFile().getAsync('dependencies.react-native'),
versionSpecific: reactNativePkgJson.getAsync('version'),
versionDescription: templatePackage.getAsync('dependencies.react-native'),
versionSpecific: reactNativePackage.getAsync('version'),
});
}

function templatePackageJsonFile() {
return jsonFile(path.join(templatePath, 'package.json'));
}

function getTemplatePath() {
return path.join(__dirname, '..', '..', 'template');
}

module.exports = {
packageJsonFile,
reactNativeVersionInfoAsync,
}
};
2 changes: 1 addition & 1 deletion src/application/simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function _escapeForFilesystem(list) {
function simulatorAppPathForReactNativeVersion(versionPair) {
// For now, something seems broken about downloading over the Internet, so
// we'll just copy the Simulator app into this bundle
return path.resolve(__dirname, '../../simulator-app/1.2.0/Exponent.app');
return path.resolve(__dirname, '../../simulator-app/1.3.0/Exponent.app');
return path.join(simulatorAppDirectoryForReactNativeVersion(versionPair), 'Exponent.app');
}

Expand Down

0 comments on commit ad9a1d1

Please sign in to comment.