mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
* 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:
parent
df426f7c42
commit
fa87eb5661
7 changed files with 231 additions and 56 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue