blob: 1e8f5eec129a4435a85fa110fea98a0d0abecff5 [file] [log] [blame]
Trevor Radcliffed29da022022-03-09 22:17:19 +00001// 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: {
Christoffer Adamsenb0f8c822025-01-17 04:34:59 -080035 keep_runtime_invisible_annotations: true,
Trevor Radcliffed29da022022-03-09 22:17:19 +000036 proguard_flags_files: [
37 "proguard.flags",
38 "proguard-test.flags",
39 ],
40 },
41 conditions_default: {
42 optimize: {
Christoffer Adamsenb0f8c822025-01-17 04:34:59 -080043 keep_runtime_invisible_annotations: true,
Trevor Radcliffed29da022022-03-09 22:17:19 +000044 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",
Trevor Radcliffed29da022022-03-09 22:17:19 +000068 "androidx.palette_palette",
69 "androidx.recyclerview_recyclerview",
70 "androidx.viewpager_viewpager",
71 "androidx.legacy_legacy-support-v13",
maxwenba1335e2023-12-28 21:55:17 +010072 "androidx.preference_preference",
Trevor Radcliffed29da022022-03-09 22:17:19 +000073 "colorpicker",
74 "libchips",
75 "libphotoviewer",
76 "androidx.annotation_annotation",
77 "android-common",
78 "android-common-framesequence",
79 "com.android.vcard",
80 "guava",
81 "libphonenumber",
maxwenba1335e2023-12-28 21:55:17 +010082 "OmniPreferenceTheme"
Trevor Radcliffed29da022022-03-09 22:17:19 +000083 ],
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}