Example of use:
DependencyBank bank = new DependencyBank(); ProjectBuilder builder = new ProjectBuilder(); List<ProjectType> modules = new ArrayList<ProjectType>(); modules.add(ProjectType.CORE); modules.add(ProjectType.DESKTOP); modules.add(ProjectType.ANDROID); modules.add(ProjectType.IOS); // Gwt has no friends //modules.add(ProjectType.GWT); List<Dependency> dependencies = new ArrayList<Dependency>(); dependencies.add(bank.getDependency(ProjectDependency.GDX)); dependencies.add(bank.getDependency(ProjectDependency.BULLET)); dependencies.add(bank.getDependency(ProjectDependency.FREETYPE)); List<String> incompatList = builder.buildProject(modules, dependencies); //incompatList is a list of strings if there are incompatibilities found. // The setup ui checks for these and pops up a dialog.
The builder will generate the settings.gradle, build.gradle file, as well as alter all the platform specific files that reference dependencies/assets.
Files Altered:
android/assets is the assets directory, however if there is no android project selected, it will configure the project to use core/assets