diff --git a/build.gradle b/build.gradle index 9fc7adfd34..fdb607d1b3 100644 --- a/build.gradle +++ b/build.gradle @@ -115,7 +115,7 @@ android { compileSdkVersion 28 defaultConfig { - minSdkVersion 14 + minSdkVersion 16 targetSdkVersion 28 // arguments to be passed to functional tests diff --git a/src/test/java/com/nextcloud/client/device/TestPowerManagementService.kt b/src/test/java/com/nextcloud/client/device/TestPowerManagementService.kt index 5bdd0fb9a7..9811ce4bd8 100644 --- a/src/test/java/com/nextcloud/client/device/TestPowerManagementService.kt +++ b/src/test/java/com/nextcloud/client/device/TestPowerManagementService.kt @@ -180,7 +180,7 @@ class TestPowerManagementService { // GIVEN // device has API level 16 or below // battery status sticky intent is available - whenever(deviceInfo.apiLevel).thenReturn(Build.VERSION_CODES.ICE_CREAM_SANDWICH) + whenever(deviceInfo.apiLevel).thenReturn(Build.VERSION_CODES.JELLY_BEAN) val powerSources = setOf( BatteryManager.BATTERY_PLUGGED_AC, BatteryManager.BATTERY_PLUGGED_USB