File tree 9 files changed +9
-26
lines changed
src/main/java/fr/free/nrw/commons
9 files changed +9
-26
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,11 @@ dependencies {
77
77
androidTestUtil ' androidx.test:orchestrator:1.1.1'
78
78
79
79
// Debugging
80
- implementation ' com.facebook.stetho:stetho:1.5.0'
81
80
debugImplementation " com.squareup.leakcanary:leakcanary-android:$LEAK_CANARY_VERSION "
82
81
releaseImplementation " com.squareup.leakcanary:leakcanary-android-no-op:$LEAK_CANARY_VERSION "
83
82
testImplementation " com.squareup.leakcanary:leakcanary-android-no-op:$LEAK_CANARY_VERSION "
84
83
85
84
// Support libraries
86
- implementation " androidx.legacy:legacy-support-v4:1.0.0"
87
- implementation " androidx.appcompat:appcompat:1.0.2"
88
85
implementation " com.google.android.material:material:1.1.0-alpha04"
89
86
implementation " androidx.browser:browser:1.0.0"
90
87
implementation " androidx.cardview:cardview:1.0.0"
Original file line number Diff line number Diff line change 12
12
13
13
import com .facebook .drawee .backends .pipeline .Fresco ;
14
14
import com .facebook .imagepipeline .core .ImagePipelineConfig ;
15
- import com .facebook .stetho .Stetho ;
16
15
import com .squareup .leakcanary .LeakCanary ;
17
16
import com .squareup .leakcanary .RefWatcher ;
18
17
@@ -143,10 +142,6 @@ public void onCreate() {
143
142
// TODO: Remove when we're able to initialize Fresco in test builds.
144
143
}
145
144
146
- if (BuildConfig .DEBUG && !isRoboUnitTest ()) {
147
- Stetho .initializeWithDefaults (this );
148
- }
149
-
150
145
createNotificationChannel (this );
151
146
152
147
languageLookUpTable = new AppLanguageLookUpTable (this );
Original file line number Diff line number Diff line change 7
7
import android .content .Context ;
8
8
import android .os .Bundle ;
9
9
10
- import javax .annotation .Nullable ;
10
+ import androidx .annotation .Nullable ;
11
+
11
12
import javax .inject .Inject ;
12
13
import javax .inject .Named ;
13
14
import javax .inject .Singleton ;
Original file line number Diff line number Diff line change 1
1
package fr .free .nrw .commons .category ;
2
2
3
- import androidx .annotation .NonNull ;
4
-
5
- import org .apache .commons .lang3 .StringUtils ;
6
3
import org .w3c .dom .Element ;
7
4
import org .w3c .dom .Node ;
8
5
import org .w3c .dom .NodeList ;
9
- import org .wikipedia .util .StringUtil ;
10
6
11
7
import java .util .ArrayList ;
12
8
import java .util .Collections ;
13
9
import java .util .List ;
14
10
15
- import javax .annotation .Nullable ;
16
-
17
- import fr .free .nrw .commons .Media ;
18
- import timber .log .Timber ;
19
-
20
11
public class CategoryImageUtils {
21
12
22
13
/**
Original file line number Diff line number Diff line change 6
6
import android .os .Parcel ;
7
7
import android .os .Parcelable ;
8
8
9
+ import androidx .annotation .Nullable ;
10
+
9
11
import com .drew .imaging .ImageMetadataReader ;
10
12
import com .drew .imaging .ImageProcessingException ;
11
13
import com .drew .metadata .Metadata ;
15
17
import java .io .IOException ;
16
18
import java .util .Date ;
17
19
18
- import javax .annotation .Nullable ;
19
-
20
20
import fr .free .nrw .commons .upload .FileUtils ;
21
21
22
22
public class UploadableFile implements Parcelable {
Original file line number Diff line number Diff line change 2
2
3
3
import android .content .Context ;
4
4
5
+ import androidx .annotation .Nullable ;
6
+
5
7
import com .google .gson .Gson ;
6
8
import com .google .gson .JsonSyntaxException ;
7
9
8
10
import java .lang .reflect .Type ;
9
11
import java .util .HashMap ;
10
12
import java .util .Map ;
11
13
12
- import javax .annotation .Nullable ;
13
-
14
14
public class JsonKvStore extends BasicKvStore {
15
15
private final Gson gson ;
16
16
Original file line number Diff line number Diff line change 3
3
import android .annotation .SuppressLint ;
4
4
import android .content .Context ;
5
5
import androidx .annotation .NonNull ;
6
+ import androidx .annotation .Nullable ;
6
7
7
8
import org .w3c .dom .Element ;
8
9
import org .w3c .dom .Node ;
11
12
import java .util .ArrayList ;
12
13
import java .util .List ;
13
14
14
- import javax .annotation .Nullable ;
15
-
16
15
import fr .free .nrw .commons .BuildConfig ;
17
16
import fr .free .nrw .commons .R ;
18
17
Original file line number Diff line number Diff line change 6
6
import java .util .List ;
7
7
import java .util .Random ;
8
8
9
- import javax .annotation .Nullable ;
10
9
import javax .inject .Inject ;
11
10
import javax .inject .Singleton ;
12
11
12
+ import androidx .annotation .Nullable ;
13
13
import androidx .core .util .Pair ;
14
14
import fr .free .nrw .commons .Media ;
15
15
import fr .free .nrw .commons .mwapi .MediaWikiApi ;
Original file line number Diff line number Diff line change 7
7
import android .net .NetworkInfo ;
8
8
import android .telephony .TelephonyManager ;
9
9
10
- import javax .annotation .Nullable ;
10
+ import androidx .annotation .Nullable ;
11
11
12
12
import fr .free .nrw .commons .utils .model .NetworkConnectionType ;
13
13
You can’t perform that action at this time.
0 commit comments