1// Copyright (C) 2020 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    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "frameworks_base_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["frameworks_base_license"],
22}
23
24// Sidecar
25android_library_import {
26    name: "window-sidecar",
27    aars: ["window-sidecar-release.aar"],
28    sdk_version: "current",
29}
30
31java_library {
32    name: "androidx.window.sidecar",
33    srcs: [
34        "src/androidx/window/sidecar/**/*.java",
35        "src/androidx/window/util/**/*.java",
36        "src/androidx/window/common/**/*.java",
37    ],
38    static_libs: ["window-sidecar"],
39    installable: true,
40    sdk_version: "core_platform",
41    system_ext_specific: true,
42    libs: [
43        "framework",
44        "androidx.annotation_annotation",
45    ],
46    required: ["androidx.window.sidecar.xml"],
47}
48
49prebuilt_etc {
50    name: "androidx.window.sidecar.xml",
51    system_ext_specific: true,
52    sub_dir: "permissions",
53    src: "androidx.window.sidecar.xml",
54    filename_from_src: true,
55}
56
57// Extensions
58// NOTE: This module is still under active development and must not
59// be used in production. Use 'androidx.window.sidecar' instead.
60android_library_import {
61    name: "window-extensions",
62    aars: ["window-extensions-release.aar"],
63    sdk_version: "current",
64}
65
66java_library {
67    name: "androidx.window.extensions",
68    srcs: [
69        "src/androidx/window/extensions/**/*.java",
70        "src/androidx/window/util/**/*.java",
71        "src/androidx/window/common/**/*.java",
72    ],
73    static_libs: ["window-extensions"],
74    installable: true,
75    sdk_version: "core_platform",
76    system_ext_specific: true,
77    libs: [
78        "framework",
79        "androidx.annotation_annotation",
80    ],
81    required: ["androidx.window.extensions.xml"],
82}
83
84prebuilt_etc {
85    name: "androidx.window.extensions.xml",
86    system_ext_specific: true,
87    sub_dir: "permissions",
88    src: "androidx.window.extensions.xml",
89    filename_from_src: true,
90}
91