Commit 71f53c3
authored
[Android]
> [!NOTE]
> Supersede #3335
# Description
This PR contains cherry picked commits from #3335 as merging changes after migrating into monorepo became quite painful 😞
1. `appProject` seems to be left unused after #3091
2. adding `configureEach` allows for [lazy task initialization](https://docs.gradle.org/current/userguide/task_configuration_avoidance.html#sec:old_vs_new_configuration_api_overview)
# Original description
## Description
This PR optimises pre-build time of Gesture Handler android, taking it down from ~7s to ~0.6s, a 11x improvement.
- baseline:
- time 6.776s ([link](https://gradle.com/s/h5iselfgzhafi))
- time 7.391s ([link](https://scans.gradle.com/s/6sz4ssuepvema))
- optimised:
- time 0.687s ([link](https://gradle.com/s/zwiujfjblp64s))
- time 0.560s ([link](https://gradle.com/s/i5xqega7pazja))
- time 0.596s ([link](https://gradle.com/s/ohcnspquhmau4))
fixes: #2865
Optimisation of the `example` app pre-build time will be done in a separate PR,
so far i took it down from 13s to 0.1s (caching & on-demand building).
## Test plan
- Run `./gradlew help --scan` to see pre-build performance
- Build app to see everything still worksbuild.gradle cleanup (#3741)1 parent 21c4943 commit 71f53c3
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
215 | 214 | | |
216 | 215 | | |
217 | 216 | | |
218 | | - | |
| 217 | + | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
| |||
0 commit comments