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 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: [ 18 "Android-Apache-2.0", 19 ], 20} 21 22soong_config_module_type { 23 name: "messaging_java_defaults", 24 module_type: "java_defaults", 25 config_namespace: "messaging", 26 bool_variables: ["build_variant_eng"], 27 properties: ["optimize"], 28} 29 30messaging_java_defaults { 31 name: "messaging_defaults", 32 soong_config_variables: { 33 build_variant_eng: { 34 optimize: { 35 keep_runtime_invisible_annotations: true, 36 proguard_flags_files: [ 37 "proguard.flags", 38 "proguard-test.flags", 39 ], 40 }, 41 conditions_default: { 42 optimize: { 43 keep_runtime_invisible_annotations: true, 44 proguard_flags_files: [ 45 "proguard.flags", 46 "proguard-release.flags", 47 ], 48 } 49 }, 50 }, 51 }, 52} 53 54 55android_app { 56 name: "messaging", 57 58 srcs: ["src/**/*.java"], 59 60 defaults: ["messaging_defaults"], 61 62 static_libs: [ 63 "androidx.appcompat_appcompat", 64 "androidx.collection_collection", 65 "androidx.core_core", 66 "androidx.fragment_fragment", 67 "androidx.media_media", 68 "androidx.legacy_legacy-support-core-utils", 69 "androidx.legacy_legacy-support-core-ui", 70 "androidx.palette_palette", 71 "androidx.recyclerview_recyclerview", 72 "androidx.viewpager_viewpager", 73 "androidx.legacy_legacy-support-v13", 74 "colorpicker", 75 "libchips", 76 "libphotoviewer", 77 "androidx.annotation_annotation", 78 "android-common", 79 "android-common-framesequence", 80 "com.android.vcard", 81 "guava", 82 "libphonenumber", 83 ], 84 85 aaptflags: [ 86 "--version-name", 87 "1.0.001", 88 "--version-code", 89 "10001040", 90 ], 91 required: [ 92 "libframesequence", 93 "libgiftranscode", 94 ], 95 optimize: { 96 obfuscate: true, 97 optimize: true, 98 enabled: true, 99 }, 100 101 certificate: "platform", 102 103 sdk_version: "current", 104 105 product_specific: true, 106} 107