Merge "Revert "Revert "Enable R8 full mode by default for apps""" into main am: 5ad5c918a3
am: 3b6fad10b5
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2650573 Change-Id: I5b478ac30f767bbe1e917b2758b4d68666fd8d5a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1039,6 +1039,7 @@ func AndroidAppFactory() android.Module {
|
||||
|
||||
module.Module.dexProperties.Optimize.EnabledByDefault = true
|
||||
module.Module.dexProperties.Optimize.Shrink = proptools.BoolPtr(true)
|
||||
module.Module.dexProperties.Optimize.Proguard_compatibility = proptools.BoolPtr(false)
|
||||
|
||||
module.Module.properties.Instrument = true
|
||||
module.Module.properties.Supports_static_instrumentation = true
|
||||
|
@@ -45,8 +45,8 @@ type DexProperties struct {
|
||||
// Whether to continue building even if warnings are emitted. Defaults to true.
|
||||
Ignore_warnings *bool
|
||||
|
||||
// If true, runs R8 in Proguard compatibility mode (default).
|
||||
// Otherwise, runs R8 in full mode.
|
||||
// If true, runs R8 in Proguard compatibility mode, otherwise runs R8 in full mode.
|
||||
// Defaults to false for apps, true for libraries and tests.
|
||||
Proguard_compatibility *bool
|
||||
|
||||
// If true, optimize for size by removing unused code. Defaults to true for apps,
|
||||
|
Reference in New Issue
Block a user