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

Add support for Kotlin Android plugin #33

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

JakeWharton
Copy link
Collaborator

Closes #27

@JakeWharton JakeWharton force-pushed the jw.android.2024-10-18 branch from d74454e to 087517e Compare October 18, 2024 04:07
@@ -65,8 +66,7 @@ class BurstGradlePluginTest {

val taskName = ":lib:$testTaskName"
val result = createRunner(projectDir, "clean", taskName).build()
assertThat(SUCCESS_OUTCOMES)
.contains(result.task(taskName)!!.outcome)
assertThat(result.task(taskName)!!.outcome).isIn(*SUCCESS_OUTCOMES)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -20,4 +23,15 @@ allprojects {
mavenCentral()
google()
}

tasks.withType(JavaCompile::class.java).configureEach {
sourceCompatibility = "1.8"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

None of these projects built on my machine without this. My default JDK is 23, but Kotlin doesn't know about that version so it drops down to target 22 and then complains Kotlin and Java targets don't match.

Comment on lines +5 to +18
@Burst
class CoffeeTest(
private val espresso: Espresso,
) {
@BeforeTest
fun setUp() {
println("set up $espresso")
}

@Test
fun test(dairy: Dairy) {
println("running $espresso $dairy")
}
}

Choose a reason for hiding this comment

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

Are those tests just validating the compilation step ? I don't think we're reading the printed lines?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct. We'd need an emulator to run the instrumented tests and the JVM ones are identical to the existing JVM tests.

I can add it in a follow-up if we want them.

@squarejesse squarejesse merged commit 59f16ae into main Oct 22, 2024
1 check passed
@squarejesse squarejesse deleted the jw.android.2024-10-18 branch October 22, 2024 20:39
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.

Better support for Android
3 participants