Skip to content
Snippets Groups Projects
Commit a14216bc authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Make sure to set up ThreeTenBP for tests properly

parent 891e763b
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -157,11 +157,11 @@ dependencies {
compile "com.github.Commit451.Reptar:reptar-kotlin:$reptarVersion"
compile 'com.github.Commit451:ElasticDragDismissLayout:1.0.4'
compile "com.github.Commit451.AdapterLayout:adapterlayout:$adapterLayout"
compile ("com.github.Commit451.AdapterLayout:adapterflowlayout:$adapterLayout") {
compile("com.github.Commit451.AdapterLayout:adapterflowlayout:$adapterLayout") {
exclude group: 'com.wefika', module: 'flowlayout'
}
//https://github.com/blazsolar/FlowLayout/issues/31
compile ("com.wefika:flowlayout:0.4.1") {
compile("com.wefika:flowlayout:0.4.1") {
exclude group: 'com.intellij', module: 'annotations'
}
compile 'com.github.Commit451.Easel:easel:2.1.1'
Loading
Loading
@@ -222,4 +222,7 @@ dependencies {
 
testCompile 'junit:junit:4.12'
testCompile 'org.robolectric:robolectric:3.3.2'
testCompile('org.threeten:threetenbp:1.3.6') {
exclude group: 'com.jakewharton.threetenabp', module: 'threetenabp'
}
}
Loading
Loading
@@ -61,7 +61,7 @@ open class App : Application() {
Timber.e(error)
}
 
AndroidThreeTen.init(this)
setupThreeTen()
 
Prefs.init(this)
//So that we don't get weird half translations
Loading
Loading
@@ -124,6 +124,11 @@ open class App : Application() {
LeakCanary.install(this)
}
 
@VisibleForTesting
protected open fun setupThreeTen() {
AndroidThreeTen.init(this)
}
private fun forceLocale(locale: Locale) {
try {
Locale.setDefault(locale)
Loading
Loading
Loading
Loading
@@ -32,4 +32,8 @@ class TestApp : App(), TestLifecycleApplication {
override fun setupMultidex() {
//Intentionally left blank
}
override fun setupThreeTen() {
//Intentionally left blank
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment