cordova-electron icon indicating copy to clipboard operation
cordova-electron copied to clipboard

Imports modules in main electron process from cdv-electron-modules.json

Open zorn-v opened this issue 5 years ago • 3 comments
trafficstars

Motivation and Context

This allow inject modules by plugins in main electron process for making IPC channel for communication between main and renderrer processes for example.

zorn-v avatar Jan 22 '20 07:01 zorn-v

Codecov Report

Merging #135 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #135   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          14     14           
  Lines         612    612           
=====================================
  Hits          612    612

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7af81cc...e00c252. Read the comment docs.

codecov-io avatar Jan 22 '20 08:01 codecov-io

@zorn-v do you have a working setup on how to inject other files into the main process with the current version right now? Or are you adjusting cdv-electron-main.js manually?

capc0 avatar Dec 16 '20 08:12 capc0

I'm just use remote.app from renderer process https://github.com/zorn-v/cordova-plugin-file/blob/655b0c15b4352a6007d2cd4795e9a7344b512254/src/electron/FileProxy.js#L32-L35

zorn-v avatar Dec 17 '20 12:12 zorn-v