Skip to content

Gradle Dependencies Management

Aleksei Tiurin edited this page Aug 20, 2023 · 1 revision

Ultron provides all the required dependencies in a transitive manner. That means you don't need to specify the Espresso or UI Automator library in your dependencies section in most cases.

You can find all Ultron dependencies in Versions.kt.

Ultron Core Dependencies

The com.atiurin:ultron:<latest_version> library provides:

dependencies {
    api(Libs.espressoCore)
    api(Libs.espressoContrib)
    api(Libs.espressoWeb)
    api(Libs.uiautomator)
    api(Libs.accessibility)
    api(Libs.hamcrestCore)
}

If you need another Espresso library in dependencies. It's better to use the same Espresso version as Ultron.

Now - Ultron Espresso verion is 3.4.0. We don't update to 3.5.1 because it brings only a set of problems and nothing improve.

Ultron-Allure Dependencies

The com.atiurin:ultron-allure:<latest_version> library provides all Allure dependencies.

dependencies {
    api(Libs.allureAndroid)
    api(Libs.allureCommon)
    api(Libs.allureModel)
    api(Libs.allureJunit4)
}

Ultron-Compose Dependencies

The com.atiurin:ultron-compose:<latest_version> library provides androidx.compose.ui:ui-test-junit4

dependencies {
    api(Libs.composeUiTest)
}