{"id":15316732,"url":"https://github.com/albert-gao/daggerandroidkotlinexample","last_synced_at":"2025-04-15T02:21:04.185Z","repository":{"id":129076128,"uuid":"129983729","full_name":"Albert-Gao/DaggerAndroidKotlinExample","owner":"Albert-Gao","description":"A minimal setup for using dagger-android with Kotlin to setup application wide and activity wide dependencies.","archived":false,"fork":false,"pushed_at":"2018-04-24T05:32:22.000Z","size":136,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T14:11:08.287Z","etag":null,"topics":["android","dagger","dagger-android","dependency-injection","example"],"latest_commit_sha":null,"homepage":"","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/Albert-Gao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2018-04-18T01:07:53.000Z","updated_at":"2021-06-05T07:17:03.000Z","dependencies_parsed_at":"2023-03-30T10:06:39.578Z","dependency_job_id":null,"html_url":"https://github.com/Albert-Gao/DaggerAndroidKotlinExample","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"22498468d52e861674224c700e7889f339e0ef46"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2FDaggerAndroidKotlinExample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2FDaggerAndroidKotlinExample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2FDaggerAndroidKotlinExample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Albert-Gao%2FDaggerAndroidKotlinExample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Albert-Gao","download_url":"https://codeload.github.com/Albert-Gao/DaggerAndroidKotlinExample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991710,"owners_count":21194925,"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":["android","dagger","dagger-android","dependency-injection","example"],"created_at":"2024-10-01T08:54:48.248Z","updated_at":"2025-04-15T02:21:04.154Z","avatar_url":"https://github.com/Albert-Gao.png","language":"Kotlin","readme":"# DaggerAndroidKotlinExample\n\n\n## About this repo\n\n- A minimal setup for using `dagger-android` with Kotlin to setup application wide and activity wide dependencies can be found in the master branch.\n- Check my [blog](http://www.albertgao.xyz/2018/04/18/dependency-injection-on-android-with-dagger-android-and-kotlin/) for more details\n\n\n## How to test\n\n- See the [`withTest`](https://github.com/Albert-Gao/DaggerAndroidKotlinExample/tree/withTest) branch\n- A repo for demo how to mock the dagger-android injection when doing `Espresso` `instrumented test`.\n- Check my [blog](http://www.albertgao.xyz/2018/04/24/how-to-mock-dagger-android-injection-in-instrumented-tests-with-kotlin/) for more details\n\n## A good start\n\n**If you feel this setup is overwhelming, do check the below one with plain dagger 2, should be much simpler:**\n\n- [repo](https://github.com/Albert-Gao/PlainDaggerKotlinAndroid)\n- [blog](http://www.albertgao.xyz/2018/04/17/dependency-injection-on-android-using-dagger-and-kotlin-in-minutes/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbert-gao%2Fdaggerandroidkotlinexample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbert-gao%2Fdaggerandroidkotlinexample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbert-gao%2Fdaggerandroidkotlinexample/lists"}