Bu projede, Android ortamında Hilt kullanarak Bağımlılık Enjeksiyonu (Dependency Injection, DI) konusunda bilgimi derinleştirdim. Bu çalışma, bana şu konularda pratik deneyim sağladı:
-
Hilt ile Bağımlılık Enjeksiyonu Uygulama: Android uygulamasında bağımlılıkları yönetmek için Hilt'i nasıl kurup kullanacağımı öğrendim. Hilt, bağımlılıkların ihtiyaç duyulan yerlere sağlanmasını basitleştirerek, daha modüler ve bakımı kolay bir kod yapısı oluşturmama yardımcı oldu.
-
Bağımlılık Enjeksiyonunun Faydaları: Bu proje sayesinde DI'nin avantajlarını deneyimledim. Bu avantajlar arasında kodun tekrar kullanılabilirliğinin artırılması, refaktöring işlemlerinin kolaylaştırılması ve testlerin daha basit hale getirilmesi yer alıyor. Bu da projede esnek ve sürdürülebilir bir yapı kurmamı sağladı.
-
Hilt'i Jetpack Bileşenleriyle Entegre Etme: Hilt'in diğer Jetpack bileşenleriyle sorunsuz bir şekilde entegre olduğunu keşfettim. Bu entegrasyon, Android uygulamaları oluştururken güçlü bir araç haline gelmesini sağladı, özellikle ViewModel'ler, Repository'ler ve diğer bileşenlerle birlikte çalışma yeteneği kazandırdı.
Projenin amacı, Hilt'i öğrenmekti ve ilgili GitHub reposunun amacı da bu öğrenme sürecini desteklemektir.
Projedeki solution
branch'inde Hilt ile Bağımlılık Enjeksiyonu (DI) uygulanmıştır. Bu branch'te, ise Hilt yerine manuel DI yöntemleri kullanılmıştır. Bu iki yaklaşımı karşılaştırarak Hilt'in sağladığı kolaylıkları ve manuel DI ile Hilt arasındaki farklar irdelenmiştir.