From a2766da1f197496e45234c7a2c3c18a81f804fc8 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Sun, 19 Feb 2017 11:18:25 +0800 Subject: Revert "Add maps preview for addresses and integrate ridesharing request into Messaging" Get rid of dependencies on the ambient SDK. This reverts commit 1a3b89e56b63270c0394f5b50cd4ce3081c1f7ee. Change-Id: Iad616b41bbeb71a785f45fa4a359fe305099ade0 --- Android.mk | 8 +- res/drawable-hdpi/ic_map_placeholder.png | Bin 9727 -> 0 bytes res/drawable-mdpi/ic_map_placeholder.png | Bin 5747 -> 0 bytes res/drawable-xhdpi/ic_map_placeholder.png | Bin 15806 -> 0 bytes res/drawable-xxhdpi/ic_map_placeholder.png | Bin 31660 -> 0 bytes res/drawable/directions_button_background.xml | 6 - res/drawable/ic_generic_transport_icon.xml | 32 ---- res/drawable/ic_get_directions.xml | 7 - res/drawable/maps_button_container_background.xml | 6 - res/drawable/request_ride_button_background.xml | 6 - res/layout/attachment_maps.xml | 81 --------- res/layout/conversation_message_view.xml | 4 - res/values/cm_colors.xml | 5 - res/values/cm_dimens.xml | 19 -- res/values/cm_strings.xml | 3 - res/values/google_maps_api.xml | 3 - src/com/android/messaging/ui/AsyncImageView.java | 2 + .../conversation/ConversationMessageAdapter.java | 4 - .../ui/conversation/ConversationMessageView.java | 196 ++------------------- .../messaging/util/GoogleStaticMapsUtil.java | 58 ------ .../messaging/util/RidesharingUtil.java | 112 ------------ .../util/RoundedCornerTransformation.java | 46 ----- 22 files changed, 24 insertions(+), 574 deletions(-) delete mode 100644 res/drawable-hdpi/ic_map_placeholder.png delete mode 100644 res/drawable-mdpi/ic_map_placeholder.png delete mode 100644 res/drawable-xhdpi/ic_map_placeholder.png delete mode 100644 res/drawable-xxhdpi/ic_map_placeholder.png delete mode 100644 res/drawable/directions_button_background.xml delete mode 100644 res/drawable/ic_generic_transport_icon.xml delete mode 100755 res/drawable/ic_get_directions.xml delete mode 100644 res/drawable/maps_button_container_background.xml delete mode 100644 res/drawable/request_ride_button_background.xml delete mode 100644 res/layout/attachment_maps.xml delete mode 100644 res/values/google_maps_api.xml delete mode 100644 src/com/cyanogenmod/messaging/util/GoogleStaticMapsUtil.java delete mode 100644 src/com/cyanogenmod/messaging/util/RidesharingUtil.java delete mode 100644 src/com/cyanogenmod/messaging/util/RoundedCornerTransformation.java diff --git a/Android.mk b/Android.mk index 88b3239..532752e 100644 --- a/Android.mk +++ b/Android.mk @@ -51,7 +51,6 @@ LOCAL_STATIC_JAVA_LIBRARIES += guava LOCAL_STATIC_JAVA_LIBRARIES += libchips LOCAL_STATIC_JAVA_LIBRARIES += libphotoviewer LOCAL_STATIC_JAVA_LIBRARIES += libphonenumber -LOCAL_STATIC_JAVA_LIBRARIES += play LOCAL_STATIC_JAVA_LIBRARIES += colorpicker LOCAL_STATIC_JAVA_LIBRARIES += contacts-picaso @@ -68,7 +67,6 @@ LOCAL_AAPT_FLAGS += --extra-packages com.android.ex.photo LOCAL_AAPT_FLAGS += --extra-packages com.android.colorpicker LOCAL_AAPT_FLAGS += --extra-packages com.android.contacts.common LOCAL_AAPT_FLAGS += --extra-packages com.android.phone.common -LOCAT_AAPT_FLAGS += --extra-packages com.google.android.gms ifdef TARGET_BUILD_APPS LOCAL_JNI_SHARED_LIBRARIES := libframesequence libgiftranscode @@ -77,7 +75,11 @@ else endif # utilize ContactsCommon's phone-number-based contact-info lookup -include $(LOCAL_PATH)/../ContactsCommon/info_lookup/phonenumber_lookup_provider.mk +ifeq ($(contacts_common_dir),) + contacts_common_dir := ../ContactsCommon +endif +CONTACTS_COMMON_LOOKUP_PROVIDER ?= $(LOCAL_PATH)/$(contacts_common_dir)/info_lookup +include $(CONTACTS_COMMON_LOOKUP_PROVIDER)/phonenumber_lookup_provider.mk LOCAL_PROGUARD_FLAGS := -ignorewarnings -include build/core/proguard_basic_keeps.flags diff --git a/res/drawable-hdpi/ic_map_placeholder.png b/res/drawable-hdpi/ic_map_placeholder.png deleted file mode 100644 index 4b40b16..0000000 Binary files a/res/drawable-hdpi/ic_map_placeholder.png and /dev/null differ diff --git a/res/drawable-mdpi/ic_map_placeholder.png b/res/drawable-mdpi/ic_map_placeholder.png deleted file mode 100644 index bd551a5..0000000 Binary files a/res/drawable-mdpi/ic_map_placeholder.png and /dev/null differ diff --git a/res/drawable-xhdpi/ic_map_placeholder.png b/res/drawable-xhdpi/ic_map_placeholder.png deleted file mode 100644 index b6d5bf9..0000000 Binary files a/res/drawable-xhdpi/ic_map_placeholder.png and /dev/null differ diff --git a/res/drawable-xxhdpi/ic_map_placeholder.png b/res/drawable-xxhdpi/ic_map_placeholder.png deleted file mode 100644 index 8bba6c2..0000000 Binary files a/res/drawable-xxhdpi/ic_map_placeholder.png and /dev/null differ diff --git a/res/drawable/directions_button_background.xml b/res/drawable/directions_button_background.xml deleted file mode 100644 index a40b30f..0000000 --- a/res/drawable/directions_button_background.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/res/drawable/ic_generic_transport_icon.xml b/res/drawable/ic_generic_transport_icon.xml deleted file mode 100644 index 7bd5e2e..0000000 --- a/res/drawable/ic_generic_transport_icon.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/res/drawable/ic_get_directions.xml b/res/drawable/ic_get_directions.xml deleted file mode 100755 index 46c6fb6..0000000 --- a/res/drawable/ic_get_directions.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - \ No newline at end of file diff --git a/res/drawable/maps_button_container_background.xml b/res/drawable/maps_button_container_background.xml deleted file mode 100644 index 6e3a3a1..0000000 --- a/res/drawable/maps_button_container_background.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/res/drawable/request_ride_button_background.xml b/res/drawable/request_ride_button_background.xml deleted file mode 100644 index ff3ba2e..0000000 --- a/res/drawable/request_ride_button_background.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/res/layout/attachment_maps.xml b/res/layout/attachment_maps.xml deleted file mode 100644 index 4cb691f..0000000 --- a/res/layout/attachment_maps.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -