Skip to content

Commit 1f349f2

Browse files
authoredJan 28, 2025
fix: creation of cdv-gradle-config.json w/ --link flag (#1770)
1 parent 9f55180 commit 1f349f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function copyJsAndLibrary (projectPath, shared, projectName, targetAPI) {
5555
// The www dir is nuked on each prepare so we keep cordova.js in platform_www
5656
fs.ensureDirSync(platform_www);
5757
fs.copySync(srcCordovaJsPath, path.join(platform_www, 'cordova.js'));
58+
fs.copySync(path.join(ROOT, 'framework', 'cdv-gradle-config-defaults.json'), path.join(projectPath, 'cdv-gradle-config.json'));
5859

5960
if (shared) {
6061
const relativeFrameworkPath = path.relative(projectPath, getFrameworkDir(projectPath, true));
@@ -69,7 +70,6 @@ function copyJsAndLibrary (projectPath, shared, projectName, targetAPI) {
6970
fs.copySync(path.join(ROOT, 'framework', 'cordova.gradle'), path.join(nestedCordovaLibPath, 'cordova.gradle'));
7071
fs.copySync(path.join(ROOT, 'framework', 'repositories.gradle'), path.join(nestedCordovaLibPath, 'repositories.gradle'));
7172
fs.copySync(path.join(ROOT, 'framework', 'src'), path.join(nestedCordovaLibPath, 'src'));
72-
fs.copySync(path.join(ROOT, 'framework', 'cdv-gradle-config-defaults.json'), path.join(projectPath, 'cdv-gradle-config.json'));
7373
}
7474
}
7575

0 commit comments

Comments
 (0)
Failed to load comments.