KGP IT: Support testing AGP with Kotlin-built-in
Add support for testing AGP projects that use kotlin-built-in.
I converted the existing requiredAgpMajorVersions check into a unit test. This will help verify that TestedVersionsSource doesn't accidentally filter out any of the tested versions. It could be a bit of a pain to maintain? But this test is quick and easy, and if it prevents a bug where a version is accidentally excluded, it'd be worth it. (We could use test coverage support on TeamCity? But I'm not sure how to add that, and it could be fragile or easy to ignore?)
Currently there are no test-projects for kotlin-built-in. These will be added in #4295.
TBH, for me it looks like complicating our Android-related IT infrastructure even more...
I will wait for the KBT team's review, but I feel that simply having min/max AGP version in test annotation, or even different version sources (and corresponding annotations) for AGP9 and AGP<9, will be sufficient.
TBH, for me it looks like complicating our Android-related IT infrastructure even more... I will wait for the KBT team's review, but I feel that simply having
min/maxAGP version in test annotation, or even different version sources (and corresponding annotations) for AGP9 and AGP<9, will be sufficient.
if it helps, we can remove the conditional logic when we stop supporting AGP <9.
TBH, for me it looks like complicating our Android-related IT infrastructure even more... I will wait for the KBT team's review, but I feel that simply having
min/maxAGP version in test annotation, or even different version sources (and corresponding annotations) for AGP9 and AGP<9, will be sufficient.
I feel it's fine and suitable to have it if it helps to describe the current situation clearly. It's about test infrastructure, we can easily simplify it later on if required, since there're no public guarantees to anyone about the test infra.