Only enable asserts on userdebug/eng builds.

Bug: 27699194
Change-Id: Id20f808448ae94371da62d38387f90ad97e7cbd3
This commit is contained in:
Jeff Sharkey
2016-03-21 17:04:02 -06:00
parent 3a6e0ec223
commit 33758d8513

View File

@@ -31,9 +31,13 @@ LOCAL_AAPT_FLAGS := \
--extra-packages android.support.v7.recyclerview
LOCAL_JACK_FLAGS := \
-D jack.assert.policy=enable \
-D jack.optimization.inner-class.accessors=true
# Only enable asserts on userdebug/eng builds
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
LOCAL_JACK_FLAGS += -D jack.assert.policy=enable
endif
LOCAL_PACKAGE_NAME := DocumentsUI
LOCAL_CERTIFICATE := platform