2022-03-08 11:05:03 -08:00
|
|
|
package co.electriccoin.zcash.app
|
2021-11-10 07:44:41 -08:00
|
|
|
|
|
|
|
import android.app.Application
|
|
|
|
import android.os.Build
|
|
|
|
import androidx.test.core.app.ApplicationProvider
|
|
|
|
import androidx.test.filters.SmallTest
|
|
|
|
import org.hamcrest.MatcherAssert.assertThat
|
|
|
|
import org.hamcrest.Matchers.lessThanOrEqualTo
|
|
|
|
import org.junit.Test
|
|
|
|
|
|
|
|
class TargetApiTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@SmallTest
|
|
|
|
fun checkTargetApi() {
|
|
|
|
// This test case prevents accidental release of the app targeting a newer API level than
|
|
|
|
// we currently support. Don't change this unless you're absolutely sure we're ready to
|
|
|
|
// target the new API level.
|
|
|
|
assertThat(
|
|
|
|
ApplicationProvider.getApplicationContext<Application>().applicationInfo.targetSdkVersion,
|
2022-08-25 13:21:03 -07:00
|
|
|
lessThanOrEqualTo(Build.VERSION_CODES.TIRAMISU)
|
2021-11-10 07:44:41 -08:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|