Migrated Profile Package from Butterknife to View Binding (#5591)

* Butterknife to ViewBinding
* code fix to pass all tests
* code cleanup and tests migrated to binding
* fix LoD
This commit is contained in:
Shashank Kumar 2024-03-11 01:14:06 +05:30 committed by GitHub
parent dbe739e755
commit 6ed5deac65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 78 additions and 100 deletions

View file

@ -17,6 +17,7 @@ import fr.free.nrw.commons.location.LocationServiceManager
class TestCommonsApplication : Application() {
private var mockApplicationComponent: CommonsApplicationComponent? = null
override fun onCreate() {
if (mockApplicationComponent == null) {
mockApplicationComponent = DaggerCommonsApplicationComponent.builder()
@ -64,4 +65,4 @@ class MockCommonsApplicationModule(appContext: Context) : CommonsApplicationModu
override fun provideDBOpenHelper(context: Context): DBOpenHelper = mockDbOpenHelper
override fun provideLruCache(): LruCache<String, String> = lruCache
}
}