fix(templates): templates cannot be created on first install

This happens because the projects directory does not exists and the save location parameter in templates requires an existing directory.
This commit is contained in:
Akash Yadav
2023-07-20 09:44:05 +05:30
parent d70da16e05
commit b3bab23205
@@ -76,6 +76,8 @@ fun baseProject(projectName: StringParameter = projectNameParameter(),
AndroidUtils.appNameToPackageName(name.value, packageName.value)
packageName.setValue(newPackage)
}
Environment.mkdirIfNotExits(Environment.PROJECTS_DIR)
val saveLocation = stringParameter {
name = R.string.wizard_save_location