mobile-dev-inc / maestro

Painless Mobile UI Automation
https://maestro.mobile.dev/
Apache License 2.0
5.59k stars 254 forks source link

Use modern Java and Gradle for development (without affecting compatibility for CLI end-users) #1801

Open bartekpacia opened 1 month ago

bartekpacia commented 1 month ago

We want to:

This is indeed possible to do. There are 2 great blogpost from Jake Wharton that explain how it can be accomplished:

Notes

Action items

bartekpacia commented 1 month ago

These 2 dependencies might be problematic though, if their latest versions require JDK 17:

https://github.com/mobile-dev-inc/maestro/blob/dc1c0fa878b3cfde4dd3bf9de62c356c80f647cb/gradle/libs.versions.toml#L53-L54

EDIT

A quick look reveals that these deps might not be used at all? The only file where it's used (if I did it correctly):

https://github.com/mobile-dev-inc/maestro/blob/v1.36.0/maestro-client/src/main/java/maestro/android/AndroidExt.kt