{"id":19745174,"url":"https://github.com/castle/analytics-kotlin-integration-castle","last_synced_at":"2026-05-11T01:33:01.038Z","repository":{"id":161122501,"uuid":"630847663","full_name":"castle/analytics-kotlin-integration-castle","owner":"castle","description":"The Castle analytics-kotlin integration.","archived":false,"fork":false,"pushed_at":"2023-05-17T11:04:08.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-01-10T20:45:12.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/castle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":null,"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-21T09:36:36.000Z","updated_at":"2023-05-03T16:09:52.000Z","dependencies_parsed_at":"2023-09-18T04:00:17.399Z","dependency_job_id":null,"html_url":"https://github.com/castle/analytics-kotlin-integration-castle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"segment-integrations/analytics-kotlin-destination-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fanalytics-kotlin-integration-castle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fanalytics-kotlin-integration-castle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fanalytics-kotlin-integration-castle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/castle%2Fanalytics-kotlin-integration-castle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/castle","download_url":"https://codeload.github.com/castle/analytics-kotlin-integration-castle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241077136,"owners_count":19905725,"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-11-12T02:04:37.398Z","updated_at":"2026-05-11T01:32:56.004Z","avatar_url":"https://github.com/castle.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analytics-Kotlin Castle\n\nAdd Castle support to your applications via this plugin for [Analytics-Kotlin](https://github.com/segmentio/analytics-kotlin)\n\n## Adding the dependency\nTo install the Segment-Castle integration, simply add this line to your gradle file:\n\n```\nimplementation 'com.segment.analytics.kotlin.destinations:castle:\u003clatest_version\u003e'\n```\nOr the following for Kotlin DSL\n```\nimplementation(\"com.segment.analytics.kotlin.destinations:castle:\u003clatest_version\u003e\")\n```\n\n## Using the Plugin in your App\n\nOpen the file where you setup and configure the Analytics-Kotlin library. Add this plugin to the list of imports.\n\n```\nimport com.segment.analytics.kotlin.destinations.castle.CastleDestination\n```\n\nJust under your Analytics-Kotlin library setup, call `analytics.add(plugin = ...)` to add an instance of the plugin to the Analytics timeline.\n\n```\n    analytics = Analytics(\"\u003cYOUR WRITE KEY\u003e\", applicationContext) {\n        this.flushAt = 3\n        this.trackApplicationLifecycleEvents = true\n    }\n    analytics.add(plugin = CastleDestination(userJwt = \"\u003cUSER_JWT\u003e\"))\n```\n\nYour events will now be automatically sent to Castle.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastle%2Fanalytics-kotlin-integration-castle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcastle%2Fanalytics-kotlin-integration-castle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastle%2Fanalytics-kotlin-integration-castle/lists"}