Skip to content

Commit

Permalink
chore(capacitor): run jetifier and apply diagnostic modules on postin…
Browse files Browse the repository at this point in the history
…stall
  • Loading branch information
jsamol committed Aug 7, 2020
1 parent 071320e commit 82aec53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apply-diagnostic-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const usedModules = ['CAMERA']
const diagnosticModuleStartRegex = getModuleFeatureStartRegex('.+')

function getModuleFeatureStartRegex(module) {
return RegExp(`(<!--BEGIN_MODULE (?<moduleName>${module.toUpperCase()})-->)`, 'g')
return RegExp(`(<!--BEGIN_MODULE (?<moduleName>${module.toUpperCase()})-->).*`, 'g')
}

function getModuleFeatureEndRegex(module) {
return RegExp(`(<!--END_MODULE (?<moduleName>${module.toUpperCase()})-->)`, 'g')
return RegExp(`.*(<!--END_MODULE (?<moduleName>${module.toUpperCase()})-->)`, 'g')
}

function removeUnusedModules(configFile) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"e2e-test-docker": "protractor ./test-config/protractor-docker.conf.js",
"e2e-test-ci": "npm run e2e-update && protractor ./test-config/protractor-ci.conf.js",
"e2e-update": "webdriver-manager update --standalone false --gecko false",
"postinstall": "node patch.js && npm run browserify-coinlib",
"postinstall": "node patch.js && npm run browserify-coinlib && jetifier && node apply-diagnostic-modules.js",
"browserify-coinlib": "browserify ./node_modules/airgap-coin-lib/dist/index.js -s airgapCoinLib -o ./src/assets/libs/airgap-coin-lib.browserify.js",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\" \"test/**/*.js\"",
"electron": "npm --prefix electron/ run start",
Expand Down

0 comments on commit 82aec53

Please sign in to comment.