Skip to content

Commit

Permalink
Merge pull request #151 from wordpress-mobile/build/remove-unused-dep…
Browse files Browse the repository at this point in the history
…endencies

[Dependency Analysis] Remove Unused Dependencies
  • Loading branch information
ParaskP7 authored Aug 14, 2024
2 parents bd12087 + 661d131 commit 09ebdc1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
7 changes: 2 additions & 5 deletions WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ repositories {

dependencies {
implementation "org.apache.commons:commons-text:$commonsTextVersion"
implementation "com.android.volley:volley:$volleyVersion"
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-ktx:$androidxCoreVersion"
implementation "androidx.core:core:$androidxCoreVersion"

testImplementation "junit:junit:$junitVersion"
testImplementation "org.assertj:assertj-core:$assertjVersion"
Expand All @@ -28,8 +27,6 @@ dependencies {
lintChecks "org.wordpress:lint:$wordpressLintVersion"

androidTestImplementation "androidx.test:runner:$androidxTestCoreVersion"
androidTestImplementation "androidx.test:rules:$androidxTestCoreVersion"
androidTestImplementation "androidx.test.ext:junit:$jUnitExtVersion"
}

android {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,18 +205,18 @@ public static void e(T tag, Throwable tr) {
* Sends a ERROR log message
* @param tag Used to identify the source of a log message. It usually identifies the class or activity where the
* log call occurs.
* @param volleyErrorMsg
* @param errorMsg
* @param statusCode
*/
public static void e(T tag, String volleyErrorMsg, int statusCode) {
if (TextUtils.isEmpty(volleyErrorMsg)) {
public static void e(T tag, String errorMsg, int statusCode) {
if (TextUtils.isEmpty(errorMsg)) {
return;
}
String logText;
if (statusCode == -1) {
logText = volleyErrorMsg;
logText = errorMsg;
} else {
logText = volleyErrorMsg + ", status " + statusCode;
logText = errorMsg + ", status " + statusCode;
}
Log.e(TAG + "-" + tag.toString(), logText);
addEntry(tag, LogLevel.w, logText);
Expand Down
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,10 @@ ext {
commonsTextVersion = '1.10.0'
eventBusVersion = '3.3.1'
materialVersion = '1.2.1'
volleyVersion = '1.2.0'

// test
androidxTestCoreVersion = '1.4.0'
assertjVersion = '3.11.1'
junitVersion = '4.12'
robolectricVersion = '4.9'

// android test
jUnitExtVersion = '1.1.3'
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pluginManagement {
gradle.ext.kotlinVersion = '1.9.24'
gradle.ext.agpVersion = '8.1.0'
gradle.ext.automatticPublishToS3Version = '0.9.0'
gradle.ext.dependencyAnalysisVersion = '1.28.0'
gradle.ext.dependencyAnalysisVersion = '1.33.0'

plugins {
id "org.jetbrains.kotlin.android" version gradle.ext.kotlinVersion
Expand Down

0 comments on commit 09ebdc1

Please sign in to comment.