PagerSlidingTabStrip
PagerSlidingTabStrip copied to clipboard
Library should not enforce targetSdkVersion
Currently the library has targetSdkVersion=19 defined. That means if the consuming app does not use 19 the build will fail. This is a problem when eg. using robolectric which does not yet work with targetSdkVersion 19 but only supports 18. The library can not be used in such a case.
Yes it can. Simply annotate the unit tests (method or whole class) with @Config(emulateSdk = 18)
.
@ChristianBecker Thanks for the hint. But can this be set inside the RobolectricTestRunner? Setting the emulateSdk on every test seams very redundant.
Kind of. You can create a file named org.robolectric.Config.properties
in the test/resources
directory (src/test/resources/org.robolectric.Config.properties
) with the following content:
emulateSdk: 18
reportSdk: 18
This file will then apply the config for the whole test suite. Cf. http://robolectric.blogspot.de/2013/05/configuring-robolectric-20.html