8000 Fix the order of some Android X checks to avoid conflicts with Support v4 by dodgex · Pull Request #2169 · androidannotations/androidannotations · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Conversation

@dodgex
C 8000 opy link
Member
@dodgex dodgex commented Oct 13, 2018

See #2168

A project that is migrated to Android X no longer has support v4 classes on its classpath... at least it seems so.

One can have a project migrated to Android X and thus is no longer able to import e.g. android.support.v4.app.Fragment in own code. If no 3rd party library is using the support v4 fragment compiling with AA 4.5.0 is no problem. Having a 3rd party dependency that uses support v4 does not mean you can use the classes in your code as there is a tool called jetifier that migrates the 3rd party code on the fly to use Android X. but during the actual build process the support v4 classes are still on classpath and so available to AndroidAnnotations.

In the Android X support PR #2149 this was not known and thus we have some cases where the build fails with android x + support v4 libs on classpath.

This PR aims to fix the issue by changing order of checks so that Android X dominates support v4.

@dodgex dodgex requested a review from WonderCsabo October 13, 2018 14:18
@WonderCsabo WonderCsabo merged commit b8c63fe into androidannotations:develop Oct 13, 2018
@WonderCsabo
Copy link
Member

Thanks for the quick fix and detailed description!

@dodgex dodgex deleted the 2168_fix_android_x_support branch October 14, 2018 06:41
@dodgex dodgex added this to the 4.5.1 milestone Oct 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0