File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
app-webpack/lib/capacitor Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments