{"id":15110397,"url":"https://github.com/android/codelab-android-hilt","last_synced_at":"2025-09-27T12:32:22.586Z","repository":{"id":43475212,"uuid":"271210097","full_name":"android/codelab-android-hilt","owner":"android","description":null,"archived":true,"fork":false,"pushed_at":"2022-10-06T09:20:34.000Z","size":154,"stargazers_count":362,"open_issues_count":24,"forks_count":192,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-01-17T22:35:37.588Z","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":"2020-06-10T07:34:27.000Z","updated_at":"2024-12-28T10:38:00.000Z","dependencies_parsed_at":"2023-01-19T09:00:32.313Z","dependency_job_id":null,"html_url":"https://github.com/android/codelab-android-hilt","commit_stats":null,"previous_names":["googlecodelabs/android-hilt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/android/codelab-android-hilt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-hilt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-hilt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-hilt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-hilt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/android","download_url":"https://codeload.github.com/android/codelab-android-hilt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/android%2Fcodelab-android-hilt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277232759,"owners_count":25783903,"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-09-27T02:00:08.978Z","response_time":73,"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":[],"created_at":"2024-09-25T23:44:43.863Z","updated_at":"2025-09-27T12:32:22.295Z","avatar_url":"https://github.com/android.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Hilt in your Android app\n\nThis folder contains the source code for the \"Using Hilt in your Android app\" codelab.\n\nThe codelab is built in multiple GitHub branches:\n* `main` is the codelab's starting point.\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.\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* [Full codelab comparison](https://github.com/googlecodelabs/android-hilt/compare/main...solution)\n\n\n# License\n\n```\nCopyright (C) 2020 The Android Open Source Project\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```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fcodelab-android-hilt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandroid%2Fcodelab-android-hilt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandroid%2Fcodelab-android-hilt/lists"}