diff --git a/core/definitions.mk b/core/definitions.mk index c97f647f87..ca978dac22 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2225,7 +2225,7 @@ define transform-classes.jar-to-dex @mkdir -p $(dir $@) $(hide) rm -f $(dir $@)classes*.dex $(dir $@)d8_input.jar $(hide) $(ZIP2ZIP) -j -i $< -o $(dir $@)d8_input.jar "**/*.class" -$(hide) $(DX_COMMAND) \ +$(hide) $(DX_COMMAND) $(DEX_FLAGS) \ --output $(dir $@) \ $(addprefix --lib ,$(PRIVATE_D8_LIBS)) \ --min-api $(PRIVATE_MIN_SDK_VERSION) \ @@ -2697,7 +2697,8 @@ endif define transform-jar-to-dex-r8 @echo R8: $@ $(hide) rm -f $(PRIVATE_PROGUARD_DICTIONARY) -$(hide) $(R8_COMPAT_PROGUARD) -injars '$<' \ +$(hide) $(R8_COMPAT_PROGUARD) $(DEX_FLAGS) \ + -injars '$<' \ --min-api $(PRIVATE_MIN_SDK_VERSION) \ --no-data-resources \ --force-proguard-compatibility --output $(subst classes.dex,,$@) \