1// Job Scheduler Service jar, which will eventually be put in the jobscheduler mainline apex.
2// service-jobscheduler needs to be added to PRODUCT_SYSTEM_SERVER_JARS.
3package {
4    // See: http://go/android-license-faq
5    // A large-scale-change added 'default_applicable_licenses' to import
6    // all of the 'license_kinds' from "frameworks_base_license"
7    // to get the below license kinds:
8    //   SPDX-license-identifier-Apache-2.0
9    default_applicable_licenses: ["frameworks_base_license"],
10}
11
12java_library {
13    name: "service-jobscheduler",
14    installable: true,
15
16    srcs: [
17        "java/**/*.java",
18        ":framework-jobscheduler-shared-srcs",
19        ":statslog-framework-java-gen", // FrameworkStatsLog.java
20    ],
21
22    libs: [
23        "androidx.annotation_annotation",
24        "app-compat-annotations",
25        "error_prone_annotations",
26        "framework",
27        "keepanno-annotations",
28        "services.core",
29        "unsupportedappusage",
30    ],
31
32    static_libs: [
33        "modules-utils-fastxmlserializer",
34        "service-jobscheduler-alarm.flags-aconfig-java",
35        "service-jobscheduler-job.flags-aconfig-java",
36        "service-jobscheduler-appidle.flags-aconfig-java",
37    ],
38
39    // Rename classes shared with the framework
40    jarjar_rules: "jarjar-rules.txt",
41
42    required: [
43        "libalarm_jni",
44    ],
45    visibility: [
46        "//frameworks/base/apex/jobscheduler:__subpackages__",
47        // These are required until jobscheduler is properly unbundled.
48        "//frameworks/base/services",
49        "//frameworks/base/services/tests/mockingservicestests",
50        "//frameworks/base/services/tests/servicestests",
51        "//frameworks/base/tests/JobSchedulerPerfTests",
52    ],
53}
54