{"id":15040766,"url":"https://github.com/android/codelab-android-dagger","last_synced_at":"2025-08-06T04:30:47.493Z","repository":{"id":38403892,"uuid":"216861544","full_name":"android/codelab-android-dagger","owner":"android","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-03T21:01:50.000Z","size":198,"stargazers_count":181,"open_issues_count":32,"forks_count":157,"subscribers_count":49,"default_branch":"main","last_synced_at":"2024-10-02T02:43:22.771Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/android.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-22T16:37:35.000Z","updated_at":"2024-07-25T05:13:45.000Z","dependencies_parsed_at":"2022-08-09T03:16:39.586Z","dependency_job_id":null,"html_url":"https://github.com/android/codelab-android-dagger","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/android%2Fcodelab-android-dagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-dagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-dagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-dagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/codelab-android-dagger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869272,"owners_count":16555575,"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-09-24T20:45:02.180Z","updated_at":"2025-08-06T04:30:47.474Z","avatar_url":"https://github.com/android.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Dagger in your Android app\n\n\u003e [!CAUTION]\n\u003e This codelab is deprecated and it will be removed soon.\n\nThis folder contains the source code for the \"Using Dagger in your Android app\" codelab.\n\nThe codelab is built in multiple GitHub branches:\n* `main` is the codelab's starting point.\n* `1_registration_main`, `2_subcomponents`, and `3_dagger_app` are intermediate\nsteps towards the solution.\n* `solution` contains the solution to this codelab.\n\n\n# Introduction\nDependency injection is a technique widely used in programming and well suited\nto Android development. By following the principles of dependency injection, you\nlay the groundwork for a good app architecture.\n\nImplementing dependency injection provides you with the following advantages:\n* Reusability of code.\n* Ease of refactoring.\n* Ease of testing.\n\n\n# Pre-requisites\n* Experience with Kotlin syntax.\n* You understand Dependency Injection and know what the benefits\nof using Dagger in your Android app are.\n\n# Getting Started\n1. Install Android Studio, if you don't already have it.\n2. Download the sample.\n3. Import the sample into Android Studio.\n4. Build and run the sample.\n\n\n# Comparison between different branches\n* Step 1 - `main` to `1_registration_main` ([Comparison](https://github.com/googlecodelabs/android-dagger/compare/main...1_registration_main))\n* Step 2 - `1_registration_main` to `2_subcomponents` ([Comparison](https://github.com/googlecodelabs/android-dagger/compare/1_registration_main...2_subcomponents))\n* Step 3 - `2_subcomponents` to `3_dagger_app` ([Comparison](https://github.com/googlecodelabs/android-dagger/compare/2_subcomponents...3_dagger_app))\n* Step 4 - `3_dagger_app` to `solution` ([Comparison](https://github.com/googlecodelabs/android-dagger/compare/3_dagger_app...solution))\n* [Full codelab comparison](https://github.com/googlecodelabs/android-dagger/compare/main...solution)\n\n\n# License\n\n```\nCopyright 2019 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fcodelab-android-dagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Fcodelab-android-dagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fcodelab-android-dagger/lists"}