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 proguard_flags_files: [ 36 "proguard.flags", 37 "proguard-test.flags", 38 ], 39 }, 40 conditions_default: { 41 optimize: { 42 proguard_flags_files: [ 43 "proguard.flags", 44 "proguard-release.flags", 45 ], 46 } 47 }, 48 }, 49 }, 50} 51 52 53android_app { 54 name: "messaging", 55 56 srcs: ["src/**/*.java"], 57 58 defaults: ["messaging_defaults"], 59 60 static_libs: [ 61 "androidx.appcompat_appcompat", 62 "androidx.collection_collection", 63 "androidx.core_core", 64 "androidx.fragment_fragment", 65 "androidx.media_media", 66 "androidx.legacy_legacy-support-core-utils", 67 "androidx.legacy_legacy-support-core-ui", 68 "androidx.palette_palette", 69 "androidx.recyclerview_recyclerview", 70 "androidx.viewpager_viewpager", 71 "androidx.legacy_legacy-support-v13", 72 "colorpicker", 73 "libchips", 74 "libphotoviewer", 75 "androidx.annotation_annotation", 76 "android-common", 77 "android-common-framesequence", 78 "com.android.vcard", 79 "guava", 80 "libphonenumber", 81 ], 82 83 aaptflags: [ 84 "--version-name", 85 "1.0.001", 86 "--version-code", 87 "10001040", 88 ], 89 required: [ 90 "libframesequence", 91 "libgiftranscode", 92 ], 93 optimize: { 94 obfuscate: true, 95 optimize: true, 96 enabled: true, 97 }, 98 99 certificate: "platform", 100 101 sdk_version: "current", 102 103 product_specific: true, 104} 105