Skip to content

Commit

Permalink
Update to latest Espresso version according to #430
Browse files Browse the repository at this point in the history
-Update Espresso versions
-Add to the sample app Multidex configuration since there was a Dex error after updating the Espresso versions
  • Loading branch information
JJaviMS committed Aug 9, 2021
1 parent 18e7974 commit 58f1768
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ android {
}

dependencies {
api("androidx.test.espresso:espresso-core:3.1.1")
api("androidx.test.espresso:espresso-contrib:3.1.1")
api("androidx.test.ext:junit:1.0.0")
api("androidx.test.espresso:espresso-core:3.4.0")
api("androidx.test.espresso:espresso-contrib:3.4.0")
api("androidx.test.uiautomator:uiautomator:2.2.0")
api("androidx.test.espresso:espresso-intents:3.1.1")
api("androidx.test.espresso:espresso-intents:3.4.0")


implementation("androidx.annotation:annotation:1.0.2")
implementation("androidx.legacy:legacy-support-core-ui:1.0.0")
Expand Down
2 changes: 2 additions & 0 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ android {
defaultConfig {
minSdk = 19
targetSdk = 30
multiDexEnabled = true

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments["clearPackageData"] = "true"
Expand All @@ -38,6 +39,7 @@ dependencies {
implementation("com.github.bumptech.glide:glide:4.10.0")
implementation("com.google.android.material:material:1.2.0")
implementation("androidx.core:core-ktx:1.0.1")
implementation("androidx.multidex:multidex:2.0.1")

androidTestUtil("androidx.test:orchestrator:1.3.0")
androidTestImplementation(project(":library"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.widget.EditText
import android.widget.ImageView
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.rule.ActivityTestRule
import androidx.test.runner.AndroidJUnit4
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.adevinta.android.barista.assertion.BaristaAssertions.assertAny
import com.adevinta.android.barista.interaction.BaristaEditTextInteractions.writeTo
import com.adevinta.android.barista.internal.failurehandler.BaristaException
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:name="androidx.multidex.MultiDexApplication"
>
<activity android:name=".SomeViewsWithDifferentVisibilitiesActivity"/>
<activity android:name=".FlowFirstScreen"/>
Expand Down

0 comments on commit 58f1768

Please sign in to comment.