@@ -9,6 +9,7 @@ plugins {
99 id " kotlin-parcelize"
1010 id " checkstyle"
1111 id " org.sonarqube" version " 4.0.0.2929"
12+ id " dagger.hilt.android.plugin"
1213}
1314
1415android {
@@ -122,6 +123,8 @@ ext {
122123 googleAutoServiceVersion = ' 1.1.1'
123124 groupieVersion = ' 2.10.1'
124125 markwonVersion = ' 4.6.2'
126+ hiltVersion = ' 1.2.0'
127+ daggerVersion = ' 2.51.1'
125128
126129 leakCanaryVersion = ' 2.12'
127130 stethoVersion = ' 1.6.0'
@@ -203,7 +206,7 @@ dependencies {
203206 // name and the commit hash with the commit hash of the (pushed) commit you want to test
204207 // This works thanks to JitPack: https://jitpack.io/
205208 implementation ' com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
206- implementation ' com.github.TeamNewPipe:NewPipeExtractor:v0.24.0 '
209+ implementation ' com.github.TeamNewPipe:NewPipeExtractor:v0.24.2 '
207210 implementation ' com.github.TeamNewPipe:NoNonsense-FilePicker:5.0.0'
208211
209212/* * Checkstyle **/
@@ -295,6 +298,14 @@ dependencies {
295298 implementation ' androidx.activity:activity-compose'
296299 implementation ' androidx.compose.ui:ui-tooling-preview'
297300
301+ // hilt
302+ implementation(" androidx.hilt:hilt-navigation-compose:${ hiltVersion} " )
303+ kapt(" androidx.hilt:hilt-compiler:${ hiltVersion} " )
304+
305+ // dagger
306+ implementation(" com.google.dagger:hilt-android:${ daggerVersion} " )
307+ kapt(" com.google.dagger:hilt-android-compiler:${ daggerVersion} " )
308+
298309/* * Debugging **/
299310 // Memory leak detection
300311 debugImplementation " com.squareup.leakcanary:leakcanary-object-watcher-android:${ leakCanaryVersion} "
@@ -315,6 +326,10 @@ dependencies {
315326 androidTestImplementation " androidx.test:runner:1.5.2"
316327 androidTestImplementation " androidx.room:room-testing:${ androidxRoomVersion} "
317328 androidTestImplementation " org.assertj:assertj-core:3.24.2"
329+
330+ // dagger
331+ testImplementation(" com.google.dagger:hilt-android-testing${ daggerVersion} " )
332+ androidTestImplementation(" com.google.dagger:hilt-android-testing${ daggerVersion} " )
318333}
319334
320335static String getGitWorkingBranch () {
0 commit comments