Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change AGP and ddmlib to compileOnly instead of implementation #96

Merged
merged 3 commits into from
Sep 6, 2019

Conversation

technoir42
Copy link
Contributor

This is to avoid pulling a higher version of AGP or ddmlib when OkReplay plugin is applied.
I had to change how plugin classpath is provided to tests since the default one supplied by withPluginClasspath() no longer has AGP in it.
Fixes #95

Note that this PR is based on #94.

@felipecsl
Copy link
Collaborator

I don't think this would work since there are breaking changes to the internal AGP APIs that we rely on for version 3.5.0, so moving to compileOnly wouldn't help as it would crash in runtime.

@technoir42
Copy link
Contributor Author

technoir42 commented Sep 6, 2019

@felipecsl I'm able to build this locally with AGP 3.4.2 and even 3.3.2 and all the tests pass. Our UI tests pass on CI with OkReplay 1.5.0 as well.

@felipecsl
Copy link
Collaborator

hmmm thats surprising since #89 reports exactly the opposite if I understand correctly

@technoir42
Copy link
Contributor Author

BaseExtension.adbExecutable that you switched to in da2789c seems to have been available for a while according to this. So the plugin is now compatible with AGP 3.5 and old versions of AGP too.

@felipecsl
Copy link
Collaborator

oohhh it's a backwards compatible change then 👍 fantastic, thanks for digging!

@felipecsl felipecsl merged commit 1e6163f into airbnb:master Sep 6, 2019
@technoir42 technoir42 deleted the compileonly_agp branch September 9, 2019 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use plugin 1.5.0 with AGP 3.4
2 participants