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

Fix wrong build path when building multiple modules together. #422

Open GrandZhuo opened 3 months ago

GrandZhuo commented 3 months ago

Project information is saved in the DirectoryManager when the plug-in is initialised. However, when there are multiple modules built together, DirectoryManager doesn't sense that the Project has changed, resulting in getting the wrong build path. So we should pass the information of the currently built Project when we get the build directory, instead of using the initialised Project.