diff --git a/WordPressUtils/build.gradle b/WordPressUtils/build.gradle index 1d6ed63c8..2a8971354 100644 --- a/WordPressUtils/build.gradle +++ b/WordPressUtils/build.gradle @@ -15,6 +15,7 @@ dependencies { implementation "com.google.android.material:material:$materialVersion" implementation "androidx.swiperefreshlayout:swiperefreshlayout:$androidxSwipeRefreshLayoutVersion" implementation "androidx.recyclerview:recyclerview:$androidxRecyclerViewVersion" + implementation "org.greenrobot:eventbus:$eventBusVersion" implementation "org.greenrobot:eventbus-java:$eventBusVersion" implementation "androidx.core:core:$androidxCoreVersion" @@ -29,6 +30,15 @@ dependencies { androidTestImplementation "androidx.test:runner:$androidxTestCoreVersion" } +dependencyAnalysis { + issues { + onUnusedDependencies { + // This dependency is actually needed otherwise the app will crash with a runtime exception. + exclude("org.greenrobot:eventbus") + } + } +} + android { namespace "org.wordpress.android.util"