Skip to content

Commit 3d7484a

Browse files
authored
Merge pull request #153 from wordpress-mobile/deps/add-back-eventbus-android-dependency
[Deps] Add Back EventBus Android Dependency
2 parents f2f9795 + 49314fd commit 3d7484a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

WordPressUtils/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ dependencies {
1515
implementation "com.google.android.material:material:$materialVersion"
1616
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$androidxSwipeRefreshLayoutVersion"
1717
implementation "androidx.recyclerview:recyclerview:$androidxRecyclerViewVersion"
18+
implementation "org.greenrobot:eventbus:$eventBusVersion"
1819
implementation "org.greenrobot:eventbus-java:$eventBusVersion"
1920

2021
implementation "androidx.core:core:$androidxCoreVersion"
@@ -29,6 +30,15 @@ dependencies {
2930
androidTestImplementation "androidx.test:runner:$androidxTestCoreVersion"
3031
}
3132

33+
dependencyAnalysis {
34+
issues {
35+
onUnusedDependencies {
36+
// This dependency is actually needed otherwise the app will crash with a runtime exception.
37+
exclude("org.greenrobot:eventbus")
38+
}
39+
}
40+
}
41+
3242
android {
3343
namespace "org.wordpress.android.util"
3444

0 commit comments

Comments
 (0)