kezong / fat-aar-android

A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
MIT License
3.13k stars 621 forks source link

Way to exclude classes from the dependency #388

Open herriojr opened 2 years ago

herriojr commented 2 years ago

I've run into an issue where I cannot include one of the classes in the dependency and I need to remove it and replace with a version I have written myself (essentially a Noop).

It would be useful if I could do something like:

dependencies {
    embed("my.upstream.dependency:version") {
        removeClass 'my.upstream.dependency.ClassToRemove'
        removeClasses 'my.upstream.dependency.subpackage.**'
    }
}