Merge "Revert "Enable R8 full mode by default for apps"""" into main am: 06c246c1af am: 55983f9772 am: 448e147ff0 am: 02468005af

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2675620

Change-Id: I331d5862db476d1335a9145094e369d38e962274
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-07-26 02:50:49 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 3 deletions

View File

@@ -1055,7 +1055,6 @@ 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

View File

@@ -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, otherwise runs R8 in full mode.
// Defaults to false for apps, true for libraries and tests.
// If true, runs R8 in Proguard compatibility mode (default).
// Otherwise, runs R8 in full mode.
Proguard_compatibility *bool
// If true, optimize for size by removing unused code. Defaults to true for apps,