Closed Badya closed 7 years ago
Removing this check you'll brake working in main module with InstantRun and will get a ZipException when instantRun slicer tries to merge all sources into single dex.
@Archinamon, as far as i concerned there are some issues about InstantRun and multidex support, so we can return this check, but need an update in README.md that using multidex requires complex mode - am i right?
Seems so. Another point is to make a aspectj-test
plugin with a different configs. That look much more flexible in future :) This way we strictly define usage in tests mostly (without instantrun or some other features).
commited with #42 in message =(
@Archinamon, I think we can close this issue.
Preconditions: I have classpath dependecy added sa written in instruction. I use android library (
my-library.aar
) containing aspects for androidTest, and basically have no aspects in app itself. I have appliedapply plugin: 'com.archinamon.aspectj'
and configuredincludeAspectsFromJar 'my-library'
inaspectj
section. Inajc-transform.log
i see an info that weaving was OK, and join points advised.Problem: When i launch Instrumentation tests my app fails to start due to:
Workaround: If we switch plugin to complex mode everything works like a charm:
Solution: Remove
modeComplex()
check from com.archinamon.api.AspectJTransform#transform(com.android.build.api.transform.TransformInvocation)