{"id":21838419,"url":"https://github.com/aptabase/aptabase-kotlin","last_synced_at":"2025-04-14T10:24:05.618Z","repository":{"id":161053966,"uuid":"634650586","full_name":"aptabase/aptabase-kotlin","owner":"aptabase","description":"Kotlin SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps","archived":false,"fork":false,"pushed_at":"2024-06-08T12:45:48.000Z","size":140,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-27T23:41:47.822Z","etag":null,"topics":["analytics","android","kotling","privacy"],"latest_commit_sha":null,"homepage":"https://aptabase.com","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aptabase.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-30T20:06:32.000Z","updated_at":"2025-03-07T02:27:59.000Z","dependencies_parsed_at":"2024-06-08T14:09:32.722Z","dependency_job_id":null,"html_url":"https://github.com/aptabase/aptabase-kotlin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptabase%2Faptabase-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptabase%2Faptabase-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptabase%2Faptabase-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aptabase%2Faptabase-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aptabase","download_url":"https://codeload.github.com/aptabase/aptabase-kotlin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860729,"owners_count":21173491,"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":["analytics","android","kotling","privacy"],"created_at":"2024-11-27T21:10:59.411Z","updated_at":"2025-04-14T10:24:05.597Z","avatar_url":"https://github.com/aptabase.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Aptabase](https://aptabase.com/og.png)\n\n# Kotlin SDK for Aptabase\n\nInstrument your apps with Aptabase, an Open Source, Privacy-First and, Simple Analytics for Mobile, Desktop and, Web Apps.\n\n## Setup\n\nAdd the JitPack repository in `settings.gradle.kts` file:\n\n```kotlin\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n        maven { url = uri(\"https://www.jitpack.io\") } // JitPack repository\n    }\n}\n```\n\nAdd the dependency to your module-level `build.gradle.kts` file:\n\n```kotlin\n    implementation(\"com.github.aptabase:aptabase-kotlin:0.0.8\")\n```\n\nIf you don't already have an `Application` class, create one. Then, initialize the Aptabase object inside your application class:\n\n```kotlin\nprivate const val APTABASE_KEY = \"YOUR_APP_KEY\"\n// Put the app key provided by Aptabase as the value of APTABASE_KEY\n// It is a unique identifier for you application\n\nclass MyApplication : Application() {\n\n   override fun onCreate() {\n      super.onCreate()\n      // Initialize Aptabase object\n      Aptabase.instance.initialize(applicationContext, APTABASE_KEY)\n      // OPTIONAL: Track app launch on startup\n      Aptabase.instance.trackEvent(\"app_started\")\n   }\n\n}\n```\n\nTo get your `App Key`, you can find it inside `Instructions` tab from the left side menu of the Aptabase website.\n\n## Usage\n\nYou are in charge of what information is sent! Therefore, no events are tracked automatically and you must register trackers manually. To do so, simply use the `trackEvent` function provided by the `Aptabase` object:\n\n```kotlin\n// Event with no properties\nAptabase.instance.trackEvent(\"event_name\")\n// Event with a custom property\nAptabase.instance.trackEvent(\"screen_view\",\n   mapOf\u003cString, Any\u003e(\n      \"name\" to \"Settings\" // Only \u003cString\u003e and \u003cInt\u003e values are allowed for custom properties\n   )\n)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptabase%2Faptabase-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faptabase%2Faptabase-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faptabase%2Faptabase-kotlin/lists"}