Trevor Radcliffe | d29da02 | 2022-03-09 22:17:19 +0000 | [diff] [blame] | 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 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | default_applicable_licenses: [ |
| 18 | "Android-Apache-2.0", |
| 19 | ], |
| 20 | } |
| 21 | |
| 22 | soong_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 | |
| 30 | messaging_java_defaults { |
| 31 | name: "messaging_defaults", |
| 32 | soong_config_variables: { |
| 33 | build_variant_eng: { |
| 34 | optimize: { |
Christoffer Adamsen | b0f8c82 | 2025-01-17 04:34:59 -0800 | [diff] [blame] | 35 | keep_runtime_invisible_annotations: true, |
Trevor Radcliffe | d29da02 | 2022-03-09 22:17:19 +0000 | [diff] [blame] | 36 | proguard_flags_files: [ |
| 37 | "proguard.flags", |
| 38 | "proguard-test.flags", |
| 39 | ], |
| 40 | }, |
| 41 | conditions_default: { |
| 42 | optimize: { |
Christoffer Adamsen | b0f8c82 | 2025-01-17 04:34:59 -0800 | [diff] [blame] | 43 | keep_runtime_invisible_annotations: true, |
Trevor Radcliffe | d29da02 | 2022-03-09 22:17:19 +0000 | [diff] [blame] | 44 | proguard_flags_files: [ |
| 45 | "proguard.flags", |
| 46 | "proguard-release.flags", |
| 47 | ], |
| 48 | } |
| 49 | }, |
| 50 | }, |
| 51 | }, |
| 52 | } |
| 53 | |
| 54 | |
| 55 | android_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", |
Trevor Radcliffe | d29da02 | 2022-03-09 22:17:19 +0000 | [diff] [blame] | 68 | "androidx.palette_palette", |
| 69 | "androidx.recyclerview_recyclerview", |
| 70 | "androidx.viewpager_viewpager", |
| 71 | "androidx.legacy_legacy-support-v13", |
maxwen | ba1335e | 2023-12-28 21:55:17 +0100 | [diff] [blame] | 72 | "androidx.preference_preference", |
Trevor Radcliffe | d29da02 | 2022-03-09 22:17:19 +0000 | [diff] [blame] | 73 | "colorpicker", |
| 74 | "libchips", |
| 75 | "libphotoviewer", |
| 76 | "androidx.annotation_annotation", |
| 77 | "android-common", |
| 78 | "android-common-framesequence", |
| 79 | "com.android.vcard", |
| 80 | "guava", |
| 81 | "libphonenumber", |
maxwen | ba1335e | 2023-12-28 21:55:17 +0100 | [diff] [blame] | 82 | "OmniPreferenceTheme" |
Trevor Radcliffe | d29da02 | 2022-03-09 22:17:19 +0000 | [diff] [blame] | 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 | } |