Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/com/badlogic/gdx/setup/ | 03-May-2024 | - | 5,272 | 4,328 | ||
.classpath | D | 03-May-2024 | 226 | 7 | 6 | |
.project | D | 03-May-2024 | 368 | 18 | 17 | |
README.md | D | 03-May-2024 | 1.9 KiB | 56 | 40 | |
build.xml | D | 03-May-2024 | 1.9 KiB | 58 | 36 |
README.md
1Libgdx gradle setup 2=================== 3 4Modular setup powered by gradle, allowing any combination of sub projects and official extensions to get you up and running in a few clicks. Although this tool will handle setup for you, LEARN GRADLE! 5 6 7 8Example of use: 9 10```java 11DependencyBank bank = new DependencyBank(); 12 13ProjectBuilder builder = new ProjectBuilder(); 14List<ProjectType> modules = new ArrayList<ProjectType>(); 15modules.add(ProjectType.CORE); 16modules.add(ProjectType.DESKTOP); 17modules.add(ProjectType.ANDROID); 18modules.add(ProjectType.IOS); 19// Gwt has no friends 20//modules.add(ProjectType.GWT); 21 22List<Dependency> dependencies = new ArrayList<Dependency>(); 23dependencies.add(bank.getDependency(ProjectDependency.GDX)); 24dependencies.add(bank.getDependency(ProjectDependency.BULLET)); 25dependencies.add(bank.getDependency(ProjectDependency.FREETYPE)); 26 27List<String> incompatList = builder.buildProject(modules, dependencies); 28//incompatList is a list of strings if there are incompatibilities found. 29// The setup ui checks for these and pops up a dialog. 30``` 31 32 33The builder will generate the settings.gradle, build.gradle file, as well as alter all the platform specific files that reference dependencies/assets. 34 35Files Altered: 36* settings.gradle 37* build.gradle 38* GdxDefinition.gwt.xml 39* GdxDefinitionSuperDev.gwt.xml 40* robovm.xml 41* desktop/build.gradle (for eclipse task) 42 43Modular setup classes 44===================== 45 46* BuildScriptHelper - Helper class for writing the build.gradle script to file. 47* Dependency - Holds all the information for a dependency for all platforms 48* ProjectBuilder - The project builder, manages the writers and temporary files 49* DependencyBank - The bank for all supported sub modules, and dependencies. Project repositories and plugin versions are defined here. 50 51Assets 52====== 53 54android/assets is the assets directory, however if there is no android project selected, it will configure the project to use core/assets 55 56