* Fixes #3345
* Trust all hosts for beta
* Added a custom NetworkFetcger for Fresco when on beta

* removed unused assets

* make TestCommonsApplication extend Application instead of Commons Application
This commit is contained in:
Ashish Kumar 2020-01-27 10:43:18 +05:30 committed by Vivek Maskara
parent df426f7c42
commit fa87eb5661
7 changed files with 231 additions and 56 deletions

View file

@ -1,5 +1,6 @@
package fr.free.nrw.commons
import android.app.Application
import android.content.ContentProviderClient
import android.content.Context
import androidx.collection.LruCache
@ -14,7 +15,7 @@ import fr.free.nrw.commons.di.DaggerCommonsApplicationComponent
import fr.free.nrw.commons.kvstore.JsonKvStore
import fr.free.nrw.commons.location.LocationServiceManager
class TestCommonsApplication : CommonsApplication() {
class TestCommonsApplication : Application() {
private var mockApplicationComponent: CommonsApplicationComponent? = null
override fun onCreate() {
@ -25,9 +26,6 @@ class TestCommonsApplication : CommonsApplication() {
}
super.onCreate()
}
// No leakcanary in unit tests.
override fun setupLeakCanary(): RefWatcher = RefWatcher.DISABLED
}
@Suppress("MemberVisibilityCanBePrivate")