{"id":17691215,"url":"https://github.com/mrstahlfelge/gdx-gameanalytics","last_synced_at":"2025-10-31T10:53:47.839Z","repository":{"id":57730496,"uuid":"132232420","full_name":"MrStahlfelge/gdx-gameanalytics","owner":"MrStahlfelge","description":"Gameanalytics.com client implementation for libGDX","archived":false,"fork":false,"pushed_at":"2021-02-06T11:40:25.000Z","size":136,"stargazers_count":32,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-22T07:49:43.393Z","etag":null,"topics":["analytics","libgdx"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/MrStahlfelge.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":"2018-05-05T09:13:16.000Z","updated_at":"2025-05-01T04:39:40.000Z","dependencies_parsed_at":"2022-09-26T22:01:26.502Z","dependency_job_id":null,"html_url":"https://github.com/MrStahlfelge/gdx-gameanalytics","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/MrStahlfelge/gdx-gameanalytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrStahlfelge%2Fgdx-gameanalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrStahlfelge%2Fgdx-gameanalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrStahlfelge%2Fgdx-gameanalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrStahlfelge%2Fgdx-gameanalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrStahlfelge","download_url":"https://codeload.github.com/MrStahlfelge/gdx-gameanalytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrStahlfelge%2Fgdx-gameanalytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281976634,"owners_count":26592972,"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","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["analytics","libgdx"],"created_at":"2024-10-24T12:07:54.897Z","updated_at":"2025-10-31T10:53:47.799Z","avatar_url":"https://github.com/MrStahlfelge.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gdx-gameanalytics\n\ngameanalytics.com REST API client implementation for libGDX\n\nCheckout gameanalytics.com for information about their service.\n\n## Why you should use this implementation instead of official implementations?\n\nThis implementation works without changes on Android, Desktop, iOS/RoboVM and GWT. The official Android implementation needs Play\nServices to work, which are not available on Amazon devices and bloat your apk file.\n\nBesides, this implementation does not send any identifiable user data. For returning user recognition, a random UUID specific for your game is generated and used.\n\n## Installation\n\nThis project is published to the Sonatype Maven repository. You can integrate the lib into your project by just adding the dependencies to your `build.gradle` file.\n\nDefine the version of this API right after the gdxVersion:\n\n    gdxVersion = '1.9.6' //or another gdx version you use\n    gaVersion = '1.0.0'\n\nThen add the needed dependencies to each subproject:\n\nCore:\n\n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-core:$gaVersion\"\n    \n        \nDesktop:\n    \n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-desktop:$gaVersion\"\n\nAndroid:\n\n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-android:$gaVersion\"\n\nHTML:\n\n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-core:$gaVersion:sources\"\n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-html:$gaVersion\"\n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-html:$gaVersion:sources\"\n\niOS-RoboVM:\n\n    compile \"de.golfgl.gdxgameanalytics:gdx-gameanalytics-ios:$gaVersion\"\n\n\n### Building from source\nTo build from source, clone or download this repository, then open it in Android Studio. Perform the following command to compile and upload the library in your local repository:\n\n    gradlew clean uploadArchives -PLOCAL=true\n\nSee `build.gradle` file for current version to use in your dependencies.\n\n## GWT project setup\nIf you want to use GameAnalytics with a GWT project, you need some more steps. Add the following line to your gwt.xml:\n\n    \u003cinherits name=\"de.golfgl.gdxgameanalytics.gdxgameanalytics\"/\u003e\n\nYou also need to add a crypto JS lib to your project. Add the following to your index.html within the body tags:\n\n     \u003cscript src=\"sjcl.js\"\u003e\u003c/script\u003e\n\nOf course, you also need to get a copy of the lib from https://github.com/bitwiseshiftleft/sjcl/\n\n\n## Usage\n\nInitialize GameAnalytics client in your game's create() method:\n\n    protected void initGameAnalytics(Preferences lbPrefs) {\n        gameAnalytics = new GameAnalytics();\n        gameAnalytics.setPlatformVersionString(\"1\");\n\n        gameAnalytics.setGameBuildNumber(GAME_DEVMODE ? \"debug\" : String.valueOf(GAME_VERSIONNUMBER));\n\n        gameAnalytics.setPrefs(Gdx.app.getPreferences(...));\n        gameAnalytics.setGameKey(GA_APP_KEY);\n        gameAnalytics.setGameSecretKey(GA_SECRET_KEY);\n        gameAnalytics.startSession();\n    }\n\nDon't forget to add calls to `closeSession()` and `startSession()` in your game's `pause()` and `resume()` methods.\n\nOn Android, you can use the convinience class `AndroidGameAnalytics` which sets up platform, version and device information for you. If you want to use GA for crash reporting,\ncall its `registerUncaughtExceptionHandler()` method. The same applies to iOS/RoboVM with `IosGameAnalytics` class.\n\nSubmit events with the public `submit...` methods.\n\n## News \u0026 Community\n\nYou can get help on the [libgdx discord](https://discord.gg/6pgDK9F).\n\n# License\n\nThe project is licensed under the Apache 2 License, meaning you can use it free of charge, without strings attached in commercial and non-commercial projects. We love to get (non-mandatory) credit in case you release a game or app using this project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrstahlfelge%2Fgdx-gameanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrstahlfelge%2Fgdx-gameanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrstahlfelge%2Fgdx-gameanalytics/lists"}