Skip to content
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

Electron app (take 3) #2535

Merged
merged 10 commits into from
Nov 4, 2016
Merged

Electron app (take 3) #2535

merged 10 commits into from
Nov 4, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 2, 2016

Replaces #2511

This is just the changes to actually make the electron app (minus supporting things like factoring various functionality out to Platform classes).

@dbkr dbkr mentioned this pull request Nov 2, 2016
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks plausible, without not knowing anything about electron. Would like to have another look once the other PRs land

// @flow

/*
Copyright 2016 Aviral Dasgupta and OpenMarket Ltd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better fix this as Matthew says

}
];

if (process.platform === 'darwin') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why only darwin?

let Platform = WebPlatform;
let Platform = null;

if (window && window.process && window.process && window.process.type === 'renderer') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make this happen at build time (and make the Web/ElectronPlatform import conditional) so as to avoid shipping electron in the web bundle (assuming that's what happens)?

@richvdh richvdh assigned dbkr and unassigned richvdh Nov 3, 2016
@dbkr
Copy link
Member Author

dbkr commented Nov 3, 2016

ok - other PRs now landed, so ptal :)

@dbkr dbkr assigned richvdh and unassigned dbkr Nov 3, 2016
@dbkr
Copy link
Member Author

dbkr commented Nov 4, 2016

(lgtm-ed out-of-band)

@dbkr dbkr merged commit 80bae05 into develop Nov 4, 2016
@t3chguy t3chguy deleted the dbkr/electron_3 branch May 12, 2022 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants