Fix conversation view problems in Email2
The JavaScript in the assets/ dir wasn't inherited from UnifiedEmail, and UnifiedEmail's ProGuard flags were being ignored. Also refactor a bit of the makefile. Change-Id: Ic3de41f3eb1882831d61b8ae34e4dd298660acdb
This commit is contained in:
parent
98ea0bd9fb
commit
0ee2a3ccee
@ -2,18 +2,18 @@ LOCAL_PATH:= $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
|
||||
# Include res dir from chips
|
||||
chips_dir := ../../../../frameworks/ex/chips/res
|
||||
chips_dir := ../../../../frameworks/ex/chips
|
||||
unified_email_dir := ../../../../packages/apps/UnifiedEmail
|
||||
|
||||
# Include res dir from chips
|
||||
# Include res dir from UnifiedEmail
|
||||
unified_email_dir := ../../UnifiedEmail/res
|
||||
res_dirs := res $(chips_dir) $(unified_email_dir)
|
||||
res_dirs := res $(chips_dir)/res $(unified_email_dir)/res
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
src_dirs := src \
|
||||
../../UnifiedEmail/src \
|
||||
../../UnifiedEmail/email_src
|
||||
$(unified_email_dir)/src \
|
||||
$(unified_email_dir)/email_src
|
||||
|
||||
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := android-common-chips
|
||||
@ -29,6 +29,10 @@ LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) \
|
||||
|
||||
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
|
||||
|
||||
# Use assets dir from UnifiedEmail
|
||||
# (the default package target doesn't seem to deal with multiple asset dirs)
|
||||
LOCAL_ASSET_DIR := $(LOCAL_PATH)/$(unified_email_dir)/assets
|
||||
|
||||
LOCAL_AAPT_FLAGS := \
|
||||
--auto-add-overlay \
|
||||
--rename-manifest-package com.android.email2 \
|
||||
@ -38,7 +42,7 @@ LOCAL_PACKAGE_NAME := Email2
|
||||
|
||||
LOCAL_OVERRIDES_PACKAGES := UnifiedEmail
|
||||
|
||||
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
|
||||
LOCAL_PROGUARD_FLAG_FILES := proguard.flags $(unified_email_dir)/proguard.flags
|
||||
|
||||
include $(BUILD_PACKAGE)
|
||||
|
||||
|
@ -1,25 +1,2 @@
|
||||
# The support library contains references to newer platform versions.
|
||||
# Don't warn about those in case this app is linking against an older
|
||||
# platform version. We know about them, and they are safe.
|
||||
#Email-specific proguard flags that are not covered by UnifiedEmail go here (none so far)
|
||||
|
||||
-dontwarn android.support.v4.**
|
||||
-dontwarn android.support.v13.**
|
||||
|
||||
# keep names that are used by reflection, from javascript or from unit tests
|
||||
|
||||
-keepclasseswithmembers class com.android.mail.providers.UIProvider {
|
||||
*** getAccountsUri(...);
|
||||
}
|
||||
|
||||
-keepclasseswithmembers class com.android.mail.utils.LogUtils {
|
||||
public <methods>;
|
||||
}
|
||||
|
||||
|
||||
-keepclasseswithmembers class com.google.common.collect.Sets {
|
||||
*** of(...);
|
||||
}
|
||||
|
||||
-keepclasseswithmembers class com.android.mail.UnifiedEmail {
|
||||
public <methods>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user