Skip to content

Commit

Permalink
Bump sdkcompat integration test to target SDK 29 (Q)
Browse files Browse the repository at this point in the history
Previously it targeted SDK 28 (P), but at this point it is okay to
expect that the min supported compile SDK is Q.
  • Loading branch information
hoisie committed Apr 26, 2024
1 parent d440248 commit e2a8e26
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions integration_tests/sdkcompat/build.gradle
Expand Up @@ -14,13 +14,13 @@ spotless {
}

android {
compileSdk 28
compileSdk 29
namespace 'org.robolectric.integrationtests.sdkcompat'

defaultConfig {
minSdk 19
// We must keep targetSdk to 28 for compatibility testing purpose
targetSdk 28
// We must keep targetSdk to 29 for compatibility testing purpose
targetSdk 29
}

compileOptions {
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/sdkcompat/src/main/AndroidManifest.xml
Expand Up @@ -3,5 +3,5 @@
xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:appComponentFactory="org.robolectric.integrationtests.sdkcompat.TestAppComponentFactory"
tools:targetApi="p" />
tools:targetApi="q" />
</manifest>
Expand Up @@ -14,8 +14,8 @@
@RunWith(RobolectricTestRunner.class)
public class JavaClassResolveCompatibilityTest {
@Test
public void sdkIs28() {
assertThat(Build.VERSION.SDK_INT).isEqualTo(Build.VERSION_CODES.P);
public void sdkIs29() {
assertThat(Build.VERSION.SDK_INT).isEqualTo(Build.VERSION_CODES.Q);
}

@Test
Expand Down
Expand Up @@ -27,8 +27,8 @@ class NormalCompatibilityTest {
private val application = RuntimeEnvironment.getApplication()

@Test
fun `Environment SDK is 28`() {
assertThat(Build.VERSION.SDK_INT).isEqualTo(Build.VERSION_CODES.P)
fun `Environment SDK is 29`() {
assertThat(Build.VERSION.SDK_INT).isEqualTo(Build.VERSION_CODES.Q)
}

@Test
Expand Down
@@ -1 +1 @@
sdk=28
sdk=29

0 comments on commit e2a8e26

Please sign in to comment.