Respect DISABLE_PROGUARD
The flag is only used by unbundled build currently. Change-Id: I8e9bab69dd7accae52ec8cdd627fc4e24178a790
This commit is contained in:
@@ -130,11 +130,13 @@ LOCAL_BUILT_MODULE_STEM := package.apk
|
|||||||
|
|
||||||
LOCAL_PROGUARD_ENABLED:=$(strip $(LOCAL_PROGUARD_ENABLED))
|
LOCAL_PROGUARD_ENABLED:=$(strip $(LOCAL_PROGUARD_ENABLED))
|
||||||
ifndef LOCAL_PROGUARD_ENABLED
|
ifndef LOCAL_PROGUARD_ENABLED
|
||||||
|
ifneq ($(DISABLE_PROGUARD),true)
|
||||||
ifneq ($(filter user userdebug, $(TARGET_BUILD_VARIANT)),)
|
ifneq ($(filter user userdebug, $(TARGET_BUILD_VARIANT)),)
|
||||||
# turn on Proguard by default for user & userdebug build
|
# turn on Proguard by default for user & userdebug build
|
||||||
LOCAL_PROGUARD_ENABLED :=full
|
LOCAL_PROGUARD_ENABLED :=full
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifeq ($(LOCAL_PROGUARD_ENABLED),disabled)
|
ifeq ($(LOCAL_PROGUARD_ENABLED),disabled)
|
||||||
# the package explicitly request to disable proguard.
|
# the package explicitly request to disable proguard.
|
||||||
LOCAL_PROGUARD_ENABLED :=
|
LOCAL_PROGUARD_ENABLED :=
|
||||||
|
Reference in New Issue
Block a user