{"id":17267498,"url":"https://github.com/technius/sbt-libgdx","last_synced_at":"2025-04-14T08:00:27.930Z","repository":{"id":28248378,"uuid":"31754785","full_name":"Technius/sbt-libgdx","owner":"Technius","description":"An SBT plugin for libGDX projects","archived":false,"fork":false,"pushed_at":"2016-05-07T16:39:47.000Z","size":19,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T21:39:04.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Technius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-06T05:52:48.000Z","updated_at":"2022-10-31T14:28:25.000Z","dependencies_parsed_at":"2022-09-04T13:11:16.544Z","dependency_job_id":null,"html_url":"https://github.com/Technius/sbt-libgdx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Technius%2Fsbt-libgdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Technius%2Fsbt-libgdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Technius%2Fsbt-libgdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Technius%2Fsbt-libgdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Technius","download_url":"https://codeload.github.com/Technius/sbt-libgdx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248843828,"owners_count":21170488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T08:10:52.108Z","updated_at":"2025-04-14T08:00:27.763Z","avatar_url":"https://github.com/Technius.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-libgdx\nThis is an unofficial SBT plugin meant to make development with\n[libGdx](http://libgdx.badlogicgames.com/) easier. At the moment, this plugin\nis a work-in-progress.\n\nDesktop projects are packaged using SBT Native Packager and Android projects\nare packaged using the android-sdk-plugin.\n\n# Usage\nRequirements:\n* SBT 0.13.5 or newer\n* Android SDK\n\nAdd the following to `project/plugins.sbt`:\n```scala\nresolvers += Resolver.sonatypeRepo(\"snapshots\")\n\naddSbtPlugin(\"co.technius\" % \"sbt-libgdx\" % \"0.0.1-SNAPSHOT\")\n```\n\nTo use this plugin, enable the `LibGdxAndroid` plugin on Android projects and\nthe `LibGdxDesktop` plugin on Desktop projects.\n\nA sample `build.sbt` file can be viewed\n[here](https://github.com/Technius/activator-libgdx-scala-seed/blob/master/build.sbt).\n\nAssets go into the folder defined by the `assetDir` key, which defaults to\n`assets` under the root project. Assets are automatically included as resources\nin Android and desktop projects. They are also copied to the `bin` folder of\nthe desktop distribution.\n\nFor Android projects, you will need to configure proguard. Either specify the\nproguard options with `proguardOptions in Android ++= Seq(...)` or create an\nappropriate `proguard-project.txt` located in the Android project folder. If\nboth are used, the contents of `proguard-project.txt` will be appended to the\nexisting configuration.\n\nAssuming the sample build file, here are some of the commands:\n* `desktop/run`: runs the desktop project\n* `desktop/universal:packageBin`: creates a tarball distribution of the project\n* `android/android:run`: install and run the project on an Android device\n* `android/android:package-release`: creates a release APK and signs it\n\nSee [SBT Native Packager](https://github.com/sbt/sbt-native-packager) and\n[sbt-android](https://github.com/scala-android/sbt-android)\nfor more options.\n\n# Library Aliases\n\nThis plugin defines several alises for the libGdx libraries. These aliases\nare defined as settings, so the actual values must be retrieved by calling\nthe `value` method on the aliases. They will use the version of libGDX as set\nin the `libGdxVersion` key. To include just the libGdx library, add the\nfollowing to `libraryDependencies`:\n\n```scala\nlibraryDependencies += libGdx.value\n```\n\nDo not forget to set the version for each platform:\n```scala\nlibGdxVersion := \"1.9.2\"\n```\nOnce the `libGdxVersion` key is set, all aliases will use the specified version.\n\n## Extension Libraries\nTo use the extension libraries, first insert the aliases into\n`libraryDependencies` in the shared code projects.\n\n* `libGdxBox2d`\n* `libGdxFreeType`\n* `libGdxControllers`\n* `libGdxTools`\n\nThen, append the corresponding `Desktop` or `Android` versions to\n`libraryDependencies` in the corresponding projects.\n\nAn example is shown below:\n\n```scala\n// shared settings or in global\nlibGdxVersion := \"1.9.2\"\n\n// core\nlibraryDependencies ++= Seq(libGdxBox2d.value)\n\n// desktop\nlibraryDependencies ++= Seq(\n  // other dependencies\n) ++ libGdxBox2dDesktop.value\n\n// Android\nlibraryDependencies ++= Seq(\n  // other dependencies\n) ++ libGdxBox2dAndroid.value\n```\n\n# Other\n\nThis project is licensed under the Apache 2.0 License. See LICENSE for more\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnius%2Fsbt-libgdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnius%2Fsbt-libgdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnius%2Fsbt-libgdx/lists"}