• Peter Wen's avatar
    Android: Replace desugar with d8 and r8 for debug · 8a5a16af
    Peter Wen authored
    For release builds, desugar.jar still runs first, before d8 or r8, so
    nothing is changing for them as by the time d8 or r8 runs, the code has
    already been desugared.
    
    When r8 is enabled, it can desugar all targets that enable proguard, and
    d8 can desugar all targets that do not enable proguard.
    
    This can only be turned on once r8 replaces proguard since proguard does
    not understand java 8 code that has not been desugared already.
    
    Bug: 906803, 913679, 916733
    Change-Id: I3fcc5a20b38e7fdc78cdeed1533583675d58346b
    Reviewed-on: https://chromium-review.googlesource.com/c/1384945Reviewed-by: default avatarSam Maier <smaier@chromium.org>
    Commit-Queue: Peter Wen <wnwen@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#619434}
    8a5a16af
proguard.py 7.56 KB