Jaewoong Jung | 9f39a3b | 2019-05-09 12:43:15 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | |
Bob Badour | 8807f4a | 2021-02-12 15:46:22 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["packages_modules_ExtServices_license"], |
| 17 | } |
| 18 | |
| 19 | // Added automatically by a large-scale-change |
| 20 | // See: http://go/android-license-faq |
| 21 | license { |
| 22 | name: "packages_modules_ExtServices_license", |
| 23 | visibility: [":__subpackages__"], |
| 24 | license_kinds: [ |
| 25 | "SPDX-license-identifier-Apache-2.0", |
| 26 | ], |
| 27 | license_text: [ |
| 28 | "NOTICE", |
| 29 | ], |
| 30 | } |
| 31 | |
Julia Reynolds | 55268d7 | 2019-01-30 12:16:58 -0500 | [diff] [blame] | 32 | android_library { |
| 33 | name: "ExtServices-core", |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 34 | srcs: [ |
chaviw | deb9109 | 2020-11-12 15:45:44 -0800 | [diff] [blame] | 35 | "java/src/**/*.java", |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 36 | ], |
Neharika Jali | 35286c8 | 2021-10-20 14:30:03 +0000 | [diff] [blame] | 37 | sdk_version: "module_current", |
Tony Mak | cb7c4fd | 2020-11-02 15:06:07 +0000 | [diff] [blame] | 38 | min_sdk_version: "30", |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 39 | resource_dirs: [ |
chaviw | deb9109 | 2020-11-12 15:45:44 -0800 | [diff] [blame] | 40 | "java/res", |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 41 | ], |
Julia Reynolds | 55268d7 | 2019-01-30 12:16:58 -0500 | [diff] [blame] | 42 | |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 43 | manifest: "AndroidManifest.xml", |
Kun Niu | d119a17 | 2019-07-01 17:36:13 -0700 | [diff] [blame] | 44 | |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 45 | static_libs: [ |
| 46 | "androidx.annotation_annotation", |
Adam He | e0d8a8b | 2020-01-23 13:42:05 -0800 | [diff] [blame] | 47 | "androidx.autofill_autofill", |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 48 | "TextClassifierServiceLibNoManifest", |
Chang Li | 7d2e351 | 2021-02-19 19:56:45 +0000 | [diff] [blame] | 49 | "TextClassifierNotificationLibNoManifest", |
| 50 | "androidx.work_work-runtime", |
Neharika Jali | 35286c8 | 2021-10-20 14:30:03 +0000 | [diff] [blame] | 51 | "modules-utils-build", |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 52 | ], |
Narayan Kamath | a9eea9b | 2019-08-08 17:14:54 +0100 | [diff] [blame] | 53 | |
Neharika Jali | 35286c8 | 2021-10-20 14:30:03 +0000 | [diff] [blame] | 54 | libs : ["framework-connectivity"], |
| 55 | |
lpeter | c92565e | 2020-01-10 14:27:25 +0800 | [diff] [blame] | 56 | plugins: ["java_api_finder"], |
chaviw | 9ed0110 | 2021-06-22 11:34:02 -0500 | [diff] [blame] | 57 | lint: { |
| 58 | strict_updatability_linting: true, |
| 59 | }, |
Jaewoong Jung | 9f39a3b | 2019-05-09 12:43:15 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | android_app { |
| 63 | name: "ExtServices", |
Neharika Jali | 35286c8 | 2021-10-20 14:30:03 +0000 | [diff] [blame] | 64 | sdk_version: "module_current", |
Tony Mak | cb7c4fd | 2020-11-02 15:06:07 +0000 | [diff] [blame] | 65 | min_sdk_version: "30", |
Jaewoong Jung | 9f39a3b | 2019-05-09 12:43:15 -0700 | [diff] [blame] | 66 | optimize: { |
Tony Mak | 6946879 | 2021-04-14 20:18:39 +0100 | [diff] [blame] | 67 | optimize: true, |
| 68 | proguard_compatibility: false, |
Jaewoong Jung | 9f39a3b | 2019-05-09 12:43:15 -0700 | [diff] [blame] | 69 | proguard_flags_files: ["proguard.proguard"], |
| 70 | }, |
| 71 | privileged: true, |
Narayan Kamath | a9eea9b | 2019-08-08 17:14:54 +0100 | [diff] [blame] | 72 | static_libs: [ |
Tony Mak | 45604e5 | 2019-09-03 17:17:44 +0100 | [diff] [blame] | 73 | "ExtServices-core", |
| 74 | ], |
chaviw | 89c336f | 2020-11-20 14:24:21 -0800 | [diff] [blame] | 75 | jni_libs: ["libtextclassifier", "libextservices_jni"], |
Dario Freni | 1682cb7 | 2020-01-17 02:17:56 +0000 | [diff] [blame] | 76 | use_embedded_native_libs: true, |
Andrei Onea | e9ce53a | 2022-02-15 14:15:23 +0000 | [diff] [blame] | 77 | required: ["privapp_allowlist_android.ext.services.xml"], |
Dario Freni | 1682cb7 | 2020-01-17 02:17:56 +0000 | [diff] [blame] | 78 | apex_available: [ |
Dario Freni | f1df3d3 | 2020-01-20 17:30:14 +0000 | [diff] [blame] | 79 | "//apex_available:platform", |
Dario Freni | 1682cb7 | 2020-01-17 02:17:56 +0000 | [diff] [blame] | 80 | "com.android.extservices", |
lpeter | 7f4c9c5 | 2020-02-05 15:35:29 +0800 | [diff] [blame] | 81 | "test_com.android.extservices", |
Dario Freni | 1682cb7 | 2020-01-17 02:17:56 +0000 | [diff] [blame] | 82 | ], |
Jaewoong Jung | 9f39a3b | 2019-05-09 12:43:15 -0700 | [diff] [blame] | 83 | } |