Skip to content

Commit b0525a7

Browse files
committed
fix(app-webpack): capacitor dev not installing correctly quasarframework#12812
1 parent 26ea723 commit b0525a7

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

app-webpack/lib/capacitor/capacitor-config.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class CapacitorConfig {
5858

5959
this.tamperedFiles = []
6060

61-
const capJsonPath = this.__getCapJsonPath(cfg)
61+
const capJsonPath = appPaths.resolve.capacitor('capacitor.config.json')
6262
const capJson = require(capJsonPath)
6363

6464
this.tamperedFiles.push({
@@ -87,22 +87,6 @@ class CapacitorConfig {
8787
})
8888
}
8989

90-
__getCapJsonPath (cfg) {
91-
let jsonPath
92-
93-
if (cfg.ctx.targetName === 'android') {
94-
jsonPath = './android/app/src/main/assets/capacitor.config.json'
95-
}
96-
else if (cfg.ctx.targetName === 'ios') {
97-
jsonPath = './ios/App/App/capacitor.config.json'
98-
}
99-
else {
100-
jsonPath = './capacitor.config.json'
101-
}
102-
103-
return path.join(appPaths.resolve.capacitor(jsonPath))
104-
}
105-
10690
__updateCapJson (cfg, originalCapCfg) {
10791
const capJson = { ...originalCapCfg }
10892

0 commit comments

Comments
 (0)