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

Commit

Permalink
Including simulator app with xde
Browse files Browse the repository at this point in the history
Downloading it over the Internet isn't working for some reason
I'm not sure why -- I didn't change anything
  • Loading branch information
ccheever committed Oct 17, 2015
1 parent 0462436 commit 9904144
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions build/application/simulator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/sourcemaps/application/simulator.js.map

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added simulator-app/1.1.0/Exponent.app/Assets.car
Binary file not shown.
Binary file not shown.
Binary file added simulator-app/1.1.0/Exponent.app/Exponent
Binary file not shown.
Binary file added simulator-app/1.1.0/Exponent.app/Info.plist
Binary file not shown.
1 change: 1 addition & 0 deletions simulator-app/1.1.0/Exponent.app/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
6 changes: 6 additions & 0 deletions src/application/simulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ async function simulatorAppForReactNativeVersionAsync(versionPair) {
let response = await Api.callMethodAsync('simulator.urlForSimulatorAppForReactNativeVersion', []);
let remoteUrl = response.result;

console.log("Downloading simulator app from " + remoteUrl);
// remoteUrl = 'https://s3.amazonaws.com/exp-us-standard/xde/SimulatorApps/1.0/Exponent.app.zip'

let dir = simulatorAppDirectoryForReactNativeVersion(versionPair);
let d$ = new download({extract: true}).get(remoteUrl).dest(dir).promise.run();
await d$;
Expand Down Expand Up @@ -108,6 +111,9 @@ 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.1.0/Exponent.app');
return path.join(simulatorAppDirectoryForReactNativeVersion(versionPair), 'Exponent.app');
}

Expand Down

0 comments on commit 9904144

Please sign in to comment.