Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13d389ad authored by Dan Willemsen's avatar Dan Willemsen Committed by Gerrit Code Review
Browse files

Merge "Propagate proguard rules from LOCAL_STATIC_ANDROID_LIBRARIES"

parents 9963b1af df5d7da7
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -119,10 +119,13 @@ endif
endif

ifdef LOCAL_USE_AAPT2
$(intermediates.COMMON)/export_proguard_flags: $(addprefix $(LOCAL_PATH)/,$(LOCAL_EXPORT_PROGUARD_FLAG_FILES))
import_proguard_flag_files := $(strip $(foreach l,$(LOCAL_STATIC_ANDROID_LIBRARIES),\
    $(call intermediates-dir-for,JAVA_LIBRARIES,$(l),,COMMON)/export_proguard_flags))
$(intermediates.COMMON)/export_proguard_flags: $(import_proguard_flag_files) $(addprefix $(LOCAL_PATH)/,$(LOCAL_EXPORT_PROGUARD_FLAG_FILES))
	@echo "Export proguard flags: $@"
	rm -f $@
	cat $+ >$@
import_proguard_flag_files :=
endif

# add --non-constant-id to prevent inlining constants.