Skip to content

Commit

Permalink
Add multidex to UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed May 20, 2024
1 parent 88a17d4 commit cfc8360
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref =
# and they'll automatically resolve to higher version without having to necessarily resort to a
# resolution strategy.
androidX-fragment = { module = "androidx.fragment:fragment", version = "1.0.0" }
androidX-multidex = { module = "androidx.multidex:multidex", version = "2.0.1" }
# Exposed transitively, avoid increasing
androidX-startup = { module = "androidx.startup:startup-runtime", version = "1.0.0" }
androidX-test-core = { module = "androidx.test:core", version = "1.4.0" }
Expand Down
2 changes: 2 additions & 0 deletions leakcanary/leakcanary-android-instrumentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies {
androidTestImplementation projects.objectWatcher.objectWatcherAndroid
// Plumber auto installer for running tests
androidTestImplementation projects.plumber.plumberAndroid
androidTestImplementation libs.androidX.multidex
androidTestImplementation libs.androidX.test.core
androidTestImplementation libs.androidX.test.espresso
androidTestImplementation libs.androidX.test.rules
Expand All @@ -28,6 +29,7 @@ android {
targetSdk versions.compileSdk
minSdk versions.minSdk
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildFeatures.buildConfig = false
namespace 'com.squareup.leakcanary.instrumentation'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application>
<application
android:name="androidx.multidex.MultiDexApplication"
>
<activity android:name="leakcanary.TestActivity"/>
</application>
</manifest>

0 comments on commit cfc8360

Please sign in to comment.