Skip to content

Commit d3b009a

Browse files
committed
Initial checkin of AOSP Messaging app.
b/23110861 Change-Id: I11db999bd10656801e618f78ab2b2ef74136fff1
1 parent ef8c7ab commit d3b009a

File tree

1,645 files changed

+186271
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,645 files changed

+186271
-0
lines changed

Android.mk

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Copyright (C) 2015 The Android Open Source Project
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
LOCAL_PATH:= $(call my-dir)
15+
16+
include $(CLEAR_VARS)
17+
18+
LOCAL_MODULE_TAGS := optional
19+
20+
LOCAL_SRC_FILES := $(call all-java-files-under, src)
21+
22+
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
23+
ifeq ($(TARGET_BUILD_APPS),)
24+
LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res
25+
LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res
26+
else
27+
LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/appcompat/res
28+
LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/recyclerview/res
29+
endif
30+
LOCAL_RESOURCE_DIR += frameworks/opt/chips/res
31+
LOCAL_RESOURCE_DIR += frameworks/opt/colorpicker/res
32+
LOCAL_RESOURCE_DIR += frameworks/opt/photoviewer/res
33+
LOCAL_RESOURCE_DIR += frameworks/opt/photoviewer/activity/res
34+
35+
LOCAL_STATIC_JAVA_LIBRARIES := android-common
36+
LOCAL_STATIC_JAVA_LIBRARIES += android-common-framesequence
37+
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v4
38+
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-appcompat
39+
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-palette
40+
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v7-recyclerview
41+
LOCAL_STATIC_JAVA_LIBRARIES += android-support-v13
42+
LOCAL_STATIC_JAVA_LIBRARIES += com.android.vcard
43+
LOCAL_STATIC_JAVA_LIBRARIES += guava
44+
LOCAL_STATIC_JAVA_LIBRARIES += libchips
45+
LOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer
46+
LOCAL_STATIC_JAVA_LIBRARIES += libphonenumber
47+
LOCAL_STATIC_JAVA_LIBRARIES += colorpicker
48+
49+
include $(LOCAL_PATH)/version.mk
50+
51+
LOCAL_AAPT_FLAGS := --auto-add-overlay
52+
LOCAL_AAPT_FLAGS += --version-name "$(version_name_package)"
53+
LOCAL_AAPT_FLAGS += --version-code $(version_code_package)
54+
LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.appcompat
55+
LOCAL_AAPT_FLAGS += --extra-packages android.support.v7.recyclerview
56+
LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.chips
57+
LOCAL_AAPT_FLAGS += --extra-packages com.android.vcard
58+
LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.photo
59+
LOCAL_AAPT_FLAGS += --extra-packages com.android.colorpicker
60+
61+
ifdef TARGET_BUILD_APPS
62+
LOCAL_JNI_SHARED_LIBRARIES := libframesequence libgiftranscode
63+
else
64+
LOCAL_REQUIRED_MODULES:= libframesequence libgiftranscode
65+
endif
66+
67+
LOCAL_PROGUARD_FLAGS := -ignorewarnings -include build/core/proguard_basic_keeps.flags
68+
69+
LOCAL_PROGUARD_ENABLED := nosystem
70+
71+
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
72+
ifeq (eng,$(TARGET_BUILD_VARIANT))
73+
LOCAL_PROGUARD_FLAG_FILES += proguard-test.flags
74+
else
75+
LOCAL_PROGUARD_FLAG_FILES += proguard-release.flags
76+
endif
77+
78+
LOCAL_JACK_ENABLED := disabled
79+
80+
LOCAL_PACKAGE_NAME := messaging
81+
82+
LOCAL_CERTIFICATE := platform
83+
84+
LOCAL_SDK_VERSION := current
85+
86+
include $(BUILD_PACKAGE)
87+
88+
include $(call all-makefiles-under, $(LOCAL_PATH))

AndroidManifest.xml

Lines changed: 524 additions & 0 deletions
Large diffs are not rendered by default.

ForceProguard.mk

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright (C) 2015 The Android Open Source Project
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Check to see if we need to force proguard to re-run, typically after using tapas to
16+
# switch to/from eng builds. This is determined by comparing the flag files used in the previous
17+
# build. If the flag files have changed, proguard is rerun.
18+
19+
# If the LOCAL_MODULE being setup isn't a build target, then don't run ForceProguard.
20+
ifneq (,$(findstring $(LOCAL_MODULE), $(TARGET_BUILD_APPS)))
21+
22+
PREVIOUS_FLAG_FILES_USED_DIR := $(call local-intermediates-dir,1)
23+
24+
# If the local intermediates dir doesn't exist, ForceProguard won't work.
25+
ifneq ($(wildcard $(PREVIOUS_FLAG_FILES_USED_DIR)),)
26+
PREVIOUS_FLAG_FILES_USED_FILE := $(PREVIOUS_FLAG_FILES_USED_DIR)/previous_proguard_flag_files
27+
PREVIOUS_FLAG_FILES_USED := $(if $(wildcard $(PREVIOUS_FLAG_FILES_USED_FILE)), \
28+
$(shell cat $(PREVIOUS_FLAG_FILES_USED_FILE)))
29+
30+
ifneq ($(strip $(PREVIOUS_FLAG_FILES_USED)), $(strip $(LOCAL_PROGUARD_FLAG_FILES)))
31+
$(info *** Flag files used for proguard have changed; forcing proguard to rerun.)
32+
$(shell touch $(LOCAL_PATH)/proguard.flags)
33+
$(shell echo $(LOCAL_PROGUARD_FLAG_FILES) > $(PREVIOUS_FLAG_FILES_USED_FILE))
34+
endif
35+
36+
endif
37+
# End local intermediates directory existence check
38+
39+
endif
40+
# End LOCAL_MODULE is a build target check

0 commit comments

Comments
 (0)