Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commandLine/src/defines.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define OFPROJECTGENERATOR_MAJOR_VERSION "0"
#define OFPROJECTGENERATOR_MINOR_VERSION "102"
#define OFPROJECTGENERATOR_MINOR_VERSION "103"
#define OFPROJECTGENERATOR_PATCH_VERSION "0"

#define PG_VERSION (OFPROJECTGENERATOR_MAJOR_VERSION "." OFPROJECTGENERATOR_MINOR_VERSION "." OFPROJECTGENERATOR_PATCH_VERSION)
Expand Down
28 changes: 20 additions & 8 deletions commandLine/src/projects/android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,40 @@ androidProject::androidProject(const std::string & target) : baseProject(target)

bool androidProject::createProjectFile(){

bOverwrite = false;
for (auto & f : vector<fs::path> {
"build.gradle",
"gradle",
"gradle.properties",
"local.properties",
"ofApp/gradle.properties",
"ofApp/proguard-rules.pro",
"ofApp/src/AndroidManifest.xml",
"ofApp/src/ic_launcher-playstore.png",
"ofApp/src/CMakeLists.txt",
"ofApp/src/main/main.txt",
"ofApp/build.gradle",
"src/ofApp.h",
"src/ofApp.cpp",
"src/main.cpp",
"proguard.cfg",
"settings.gradle",
"template.config",
"src/main.cpp",
}) {
copyTemplateFiles.push_back({
templatePath / f,
projectDir / f
});
}
for (auto & f : vector<fs::path> {
"src/ofApp.h",
"src/ofApp.cpp",
"ofApp/src/CMakeLists.txt",
"ofApp/src/java/cc/openframeworks/android/OFActivity.java",
"local.properties",
"gradle.properties",
"ofApp/build.gradle",
}) {
if (!fs::exists(projectDir / f)) {
copyTemplateFiles.push_back({
templatePath / f,
projectDir / f
});
}
}
copyTemplateFiles.push_back({
templatePath / "ofApp" / "build.gradle",
projectDir / "ofApp" / "build.gradle",
Expand Down Expand Up @@ -61,6 +71,8 @@ bool androidProject::createProjectFile(){
ofLogError(LOG_NAME) << "Copy failed: " << e.what();
return false;
}



try {
fs::copy(templatePath / "ofApp/src/res", projectDir / "ofApp/src/res", fs::copy_options::recursive);
Expand Down
15 changes: 0 additions & 15 deletions commandLine/src/projects/xcodeProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,6 @@ bool xcodeProject::createProjectFile() {
if (fs::exists(templateDataDir) && fs::is_directory(templateDataDir)) {
baseProject::recursiveCopyContents(templateDataDir, projectDataDir);
}
if (fs::exists(templateBinDir) && fs::is_directory(templateBinDir)) {
#ifdef TARGET_OS_MAC
try {
// extended attributes on macOS
std::string command = "xattr -w com.apple.xcode.CreatedByBuildSystem true " + templateBinDir.string();
if (std::system(command.c_str()) != 0) {
std::cerr << "Failed to set extended attributes on " << templateBinDir.string() << std::endl;
} else {
ofLogVerbose("xcodeProject") << "xattr set correctly for /bin" << endl;
}
} catch (const std::exception & e) {
std::cout << "xcodeProject::createProjectFile() error " << e.what() << std::endl;
}
#endif
}
}
return true;
}
Expand Down
24 changes: 12 additions & 12 deletions frontend/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.