Update Deps + Cleanup (#1158)

* Fix Typo

* Update build.gradle

* Update Deps

* Update Tests

* Fixes Tests

Without this some tests fail on my PC...

+ also:
"Put this in your gradle.properties:

android.enableUnitTestBinaryResources=true"
from http://robolectric.org/migrating/#project-configuration

* Make everything private

* Fix Warning

* Update TimelineFragment.java

* Update build.gradle

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Update gradle-wrapper.properties

* Fix Compile Errors

e.g.

Type inference failed. Expected type mismatch: inferred type is Preference? but Preference was expected

Type inference failed. Please try to specify type arguments explicitly.

* fix crash

* Grandle Wrapper 5.3

* Revert "Fix Compile Errors"

This reverts commit 4a774a4fe3ce82c84bd7b4d78e1a1c64af97cd0d.

* requirePreference

* oops

* Cleanup

* Update gradle-wrapper.properties
This commit is contained in:
Bernd 2019-03-30 15:18:16 +01:00 committed by Konrad Pozniak
commit 0db1a23c4f
19 changed files with 99 additions and 61 deletions

View file

@ -39,23 +39,23 @@ class TimelineRepositoryTest {
lateinit var mastodonApi: MastodonApi
@Mock
lateinit var accountManager: AccountManager
private lateinit var accountManager: AccountManager
lateinit var gson: Gson
private lateinit var gson: Gson
lateinit var subject: TimelineRepository
private lateinit var subject: TimelineRepository
lateinit var testScheduler: TestScheduler
private lateinit var testScheduler: TestScheduler
val limit = 30
val account = AccountEntity(
private val limit = 30
private val account = AccountEntity(
id = 2,
accessToken = "token",
domain = "domain.com",
isActive = true
)
val htmlConverter = object : HtmlConverter {
private val htmlConverter = object : HtmlConverter {
override fun fromHtml(html: String): Spanned {
return SpanUtilsTest.FakeSpannable(html)
}