Enable SystemUI R8 optimizations by default
This has been the default setting for Pixel/Go/Cuttlefish devices since tm-dev. Broaden the default to enable for all devices against the base SystemUI target. Note that packages overriding the base SystemUI target may choose to ignore this flag and set their own optimization settings. Opting out of optimizations can be achieved with either: * Env: export SYSTEMUI_OPTIMIZE_JAVA=false * Make: SYSTEMUI_OPTIMIZE_JAVA := false Bug: 203472868 Test: m + presubmit + validate dex on new lunch targets Change-Id: Id97031cc2c0d1d614391c404850002faf57bd4ac
This commit is contained in:
@@ -147,8 +147,8 @@ ifeq (eng,$(TARGET_BUILD_VARIANT))
|
||||
$(call soong_config_set,messaging,build_variant_eng,true)
|
||||
endif
|
||||
|
||||
# TODO(b/203088572): Remove when Java optimizations enabled by default for
|
||||
# SystemUI.
|
||||
# Enable SystemUI optimizations by default unless explicitly set.
|
||||
SYSTEMUI_OPTIMIZE_JAVA ?= true
|
||||
$(call add_soong_config_var,ANDROID,SYSTEMUI_OPTIMIZE_JAVA)
|
||||
# TODO(b/196084106): Remove when Java optimizations enabled by default for
|
||||
# system packages.
|
||||
|
Reference in New Issue
Block a user