Skip to content

Commit

Permalink
Merge pull request #86 from wordpress-mobile/fix-hilt-configuration
Browse files Browse the repository at this point in the history
Fix Hilt configuration
  • Loading branch information
JorgeMucientes authored Feb 5, 2025
2 parents d6daa7a + 14d6361 commit a636629
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion mediapicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ android {
implementation "com.github.bumptech.glide:glide:$glideVersion"

implementation "com.google.dagger:hilt-android:$gradle.ext.daggerVersion"
implementation "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
kapt "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"

implementation "com.github.chrisbanes:PhotoView:$chrisbanesPhotoviewVersion"
Expand Down
3 changes: 1 addition & 2 deletions mediapicker/source-device/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinxCoroutinesVersion"

implementation "com.google.dagger:hilt-android:$gradle.ext.daggerVersion"
implementation "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$gradle.ext.daggerVersion"
kapt "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"
}

project.afterEvaluate {
Expand Down
1 change: 0 additions & 1 deletion mediapicker/source-gif/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies {
implementation "com.squareup.retrofit2:converter-gson:$squareupRetrofitVersion"

implementation "com.google.dagger:hilt-android:$gradle.ext.daggerVersion"
implementation "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
kapt "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"

implementation "org.wordpress:utils:$wordpressUtilsVersion"
Expand Down
3 changes: 1 addition & 2 deletions mediapicker/source-wordpress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinxCoroutinesVersion"

implementation "com.google.dagger:hilt-android:$gradle.ext.daggerVersion"
implementation "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
kapt "com.google.dagger:dagger-compiler:$gradle.ext.daggerVersion"
kapt "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"

implementation "org.wordpress:utils:$wordpressUtilsVersion"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import android.widget.LinearLayout
import android.widget.ProgressBar
import android.widget.TextView
import androidx.appcompat.widget.AppCompatButton
import org.openjdk.tools.javac.main.Option.InvalidValueException
import org.wordpress.android.mediapicker.R
import org.wordpress.android.util.DisplayUtils

Expand Down Expand Up @@ -94,7 +93,7 @@ internal class ActionableEmptyView : LinearLayout {
if (!titleAttribute.isNullOrEmpty()) {
title.text = titleAttribute
} else {
throw InvalidValueException(
throw IllegalArgumentException(
"$context: ActionableEmptyView must have a title (aevTitle)"
)
}
Expand Down

0 comments on commit a636629

Please sign in to comment.