Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-12689 Support multiple sdks versions in a build check #1327

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

eugene-krivobokov
Copy link
Contributor

@eugene-krivobokov eugene-krivobokov commented Feb 5, 2022

Add missed scenario with different compileSdk in different modules.

Besides a known issue with build cache (https://issuetracker.google.com/issues/117789774) it also could lead to a broken sync in IDE. See examples in the issue description.
We can't use android.builder.sdkDownload in AGP 7.0.x due to a broken configuration cache (https://issuetracker.google.com/issues/189730917)

}

@Test
fun `the same multiple versions - success`() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new scenario

}

@Test
fun `the same platform revision with legacy extension - success`() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backward compatibility test

public data class AndroidSdkVersion(
val compileSdkVersion: Int,
val revision: Int,
) : Serializable
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Public because it's used as task's input

version(
compileSdkVersion = 30,
revision = 3
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes in API

@eugene-krivobokov eugene-krivobokov enabled auto-merge (squash) February 7, 2022 14:57
@eugene-krivobokov eugene-krivobokov merged commit 078dd11 into develop Feb 7, 2022
@eugene-krivobokov eugene-krivobokov deleted the MBS-12689-android-sdk-version branch February 7, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants