EmergeTools / emerge-android

Android tooling & gradle plugin for Emerge's size analysis, end-to-end snapshotting, Reaper dead code detection and performance testing
https://docs.emergetools.com/docs/quickstart
Apache License 2.0
21 stars 2 forks source link

Issues resolving performance project when name comes after app project alphabetically #102

Open rbro112 opened 9 months ago

rbro112 commented 9 months ago

A client recently experienced this and set up a repro: https://github.com/ivanalvarado/EmergeTools-Perf-Analysis-Reproducer

After further investigation, it seems Gradle's project resolution runs in an alphabetical manner, so when the performance module's name comes before the app module's name alphabetically, we experience this issue.

rbro112 commented 8 months ago

Unfortunately this is a more complicated issue that will require some bigger changes to solve. Immediately, the easiest workaround to this problem is to simply name the performance project a name which will come after the main app module's alphabetically (i.e. if app module's name is :terrificapp, the performance module would need to come after it alphabetically, i.e. :terrificperformance).

We have long-term plans to address this in a future major version of our Gradle plugin.