Measuring the size of AAR and XCFramework libraries is not easy

For these past few weeks I have been trying to come up with a plug-and-play solution to measure the size of AAR and XCFramework libraries. It turns out this is more complicated than I thought...