@@ -206,23 +206,6 @@ nimbus {
206
206
experimenterManifest = " .experimenter.yaml"
207
207
}
208
208
209
- configurations {
210
- // There's an interaction between Gradle's resolution of dependencies with different types
211
- // (@jar, @aar) for `implementation` and `testImplementation` and with Android Studio's built-in
212
- // JUnit test runner. The runtime classpath in the built-in JUnit test runner gets the
213
- // dependency from the `implementation`, which is type @aar, and therefore the JNA dependency
214
- // doesn't provide the JNI dispatch libraries in the correct Java resource directories. I think
215
- // what's happening is that @aar type in `implementation` resolves to the @jar type in
216
- // `testImplementation`, and that it wins the dependency resolution battle.
217
- //
218
- // A workaround is to add a new configuration which depends on the @jar type and to reference
219
- // the underlying JAR file directly in `testImplementation`. This JAR file doesn't resolve to
220
- // the @aar type in `implementation`. This works when invoked via `gradle`, but also sets the
221
- // correct runtime classpath when invoked with Android Studio's built-in JUnit test runner.
222
- // Success!
223
- jnaForTest
224
- }
225
-
226
209
dependencies {
227
210
implementation FocusDependencies . androidx_appcompat
228
211
implementation FocusDependencies . androidx_browser
@@ -319,8 +302,6 @@ dependencies {
319
302
focusImplementation FocusDependencies . adjust
320
303
focusImplementation FocusDependencies . install_referrer // Required by Adjust
321
304
322
- jnaForTest FocusDependencies . jna
323
- testImplementation files(configurations. jnaForTest. copyRecursive(). files)
324
305
testImplementation " org.mozilla.telemetry:glean-native-forUnitTests:${ project.ext.glean_version} "
325
306
326
307
testImplementation FocusDependencies . testing_junit_api
0 commit comments