Skip to content

Commit

Permalink
fix(prepare): destFile path separator (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu authored Jul 4, 2022
1 parent f38e8eb commit e5b7e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function updateProjectAccordingTo (platformConfig, locations) {
events.emit('log', 'Multiple candidate Java files that extend CordovaActivity found. Guessing at the first one, ' + java_files[0]);
}

const destFile = java_files[0];
const destFile = path.normalize(java_files[0]);

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

0 comments on commit e5b7e8a

Please sign in to comment.