File tree Expand file tree Collapse file tree 9 files changed +9
-26
lines changed
src/main/java/fr/free/nrw/commons Expand file tree Collapse file tree 9 files changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,11 @@ dependencies {
7777 androidTestUtil ' androidx.test:orchestrator:1.1.1'
7878
7979 // Debugging
80- implementation ' com.facebook.stetho:stetho:1.5.0'
8180 debugImplementation " com.squareup.leakcanary:leakcanary-android:$LEAK_CANARY_VERSION "
8281 releaseImplementation " com.squareup.leakcanary:leakcanary-android-no-op:$LEAK_CANARY_VERSION "
8382 testImplementation " com.squareup.leakcanary:leakcanary-android-no-op:$LEAK_CANARY_VERSION "
8483
8584 // Support libraries
86- implementation " androidx.legacy:legacy-support-v4:1.0.0"
87- implementation " androidx.appcompat:appcompat:1.0.2"
8885 implementation " com.google.android.material:material:1.1.0-alpha04"
8986 implementation " androidx.browser:browser:1.0.0"
9087 implementation " androidx.cardview:cardview:1.0.0"
Original file line number Diff line number Diff line change 1212
1313import com .facebook .drawee .backends .pipeline .Fresco ;
1414import com .facebook .imagepipeline .core .ImagePipelineConfig ;
15- import com .facebook .stetho .Stetho ;
1615import com .squareup .leakcanary .LeakCanary ;
1716import com .squareup .leakcanary .RefWatcher ;
1817
@@ -143,10 +142,6 @@ public void onCreate() {
143142 // TODO: Remove when we're able to initialize Fresco in test builds.
144143 }
145144
146- if (BuildConfig .DEBUG && !isRoboUnitTest ()) {
147- Stetho .initializeWithDefaults (this );
148- }
149-
150145 createNotificationChannel (this );
151146
152147 languageLookUpTable = new AppLanguageLookUpTable (this );
Original file line number Diff line number Diff line change 77import android .content .Context ;
88import android .os .Bundle ;
99
10- import javax .annotation .Nullable ;
10+ import androidx .annotation .Nullable ;
11+
1112import javax .inject .Inject ;
1213import javax .inject .Named ;
1314import javax .inject .Singleton ;
Original file line number Diff line number Diff line change 11package fr .free .nrw .commons .category ;
22
3- import androidx .annotation .NonNull ;
4-
5- import org .apache .commons .lang3 .StringUtils ;
63import org .w3c .dom .Element ;
74import org .w3c .dom .Node ;
85import org .w3c .dom .NodeList ;
9- import org .wikipedia .util .StringUtil ;
106
117import java .util .ArrayList ;
128import java .util .Collections ;
139import java .util .List ;
1410
15- import javax .annotation .Nullable ;
16-
17- import fr .free .nrw .commons .Media ;
18- import timber .log .Timber ;
19-
2011public class CategoryImageUtils {
2112
2213 /**
Original file line number Diff line number Diff line change 66import android .os .Parcel ;
77import android .os .Parcelable ;
88
9+ import androidx .annotation .Nullable ;
10+
911import com .drew .imaging .ImageMetadataReader ;
1012import com .drew .imaging .ImageProcessingException ;
1113import com .drew .metadata .Metadata ;
1517import java .io .IOException ;
1618import java .util .Date ;
1719
18- import javax .annotation .Nullable ;
19-
2020import fr .free .nrw .commons .upload .FileUtils ;
2121
2222public class UploadableFile implements Parcelable {
Original file line number Diff line number Diff line change 22
33import android .content .Context ;
44
5+ import androidx .annotation .Nullable ;
6+
57import com .google .gson .Gson ;
68import com .google .gson .JsonSyntaxException ;
79
810import java .lang .reflect .Type ;
911import java .util .HashMap ;
1012import java .util .Map ;
1113
12- import javax .annotation .Nullable ;
13-
1414public class JsonKvStore extends BasicKvStore {
1515 private final Gson gson ;
1616
Original file line number Diff line number Diff line change 33import android .annotation .SuppressLint ;
44import android .content .Context ;
55import androidx .annotation .NonNull ;
6+ import androidx .annotation .Nullable ;
67
78import org .w3c .dom .Element ;
89import org .w3c .dom .Node ;
1112import java .util .ArrayList ;
1213import java .util .List ;
1314
14- import javax .annotation .Nullable ;
15-
1615import fr .free .nrw .commons .BuildConfig ;
1716import fr .free .nrw .commons .R ;
1817
Original file line number Diff line number Diff line change 66import java .util .List ;
77import java .util .Random ;
88
9- import javax .annotation .Nullable ;
109import javax .inject .Inject ;
1110import javax .inject .Singleton ;
1211
12+ import androidx .annotation .Nullable ;
1313import androidx .core .util .Pair ;
1414import fr .free .nrw .commons .Media ;
1515import fr .free .nrw .commons .mwapi .MediaWikiApi ;
Original file line number Diff line number Diff line change 77import android .net .NetworkInfo ;
88import android .telephony .TelephonyManager ;
99
10- import javax .annotation .Nullable ;
10+ import androidx .annotation .Nullable ;
1111
1212import fr .free .nrw .commons .utils .model .NetworkConnectionType ;
1313
You can’t perform that action at this time.
0 commit comments