Skip to content

Commit e5b7e8a

Browse files
authoredJul 4, 2022
fix(prepare): destFile path separator (#1455)
1 parent f38e8eb commit e5b7e8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/prepare.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function updateProjectAccordingTo (platformConfig, locations) {
303303
events.emit('log', 'Multiple candidate Java files that extend CordovaActivity found. Guessing at the first one, ' + java_files[0]);
304304
}
305305

306-
const destFile = java_files[0];
306+
const destFile = path.normalize(java_files[0]);
307307

308308
// if package name has changed, path to MainActivity.java has to track it
309309
const newDestFile = path.join(locations.root, 'app', 'src', 'main', 'java', androidPkgName.replace(/\./g, '/'), path.basename(destFile));

0 commit comments

Comments
 (0)