1package {
2    default_team: "trendy_team_xr_framework",
3    default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
6android_app {
7    name: "VdmHost",
8    manifest: "host/AndroidManifest.xml",
9    sdk_version: "system_current",
10    min_sdk_version: "34",
11    privileged: true,
12    privapp_allowlist: "host/com.example.android.vdmdemo.host.xml",
13    srcs: [
14        "host/src/**/*.java",
15    ],
16    resource_dirs: [
17        "host/res",
18    ],
19    static_libs: [
20        "VdmCommonLib",
21        "android.companion.virtual.flags-aconfig-java",
22        "android.companion.virtualdevice.flags-aconfig-java",
23        "androidx.annotation_annotation",
24        "androidx.appcompat_appcompat",
25        "androidx.core_core",
26        "androidx.preference_preference",
27        "com.google.android.material_material",
28        "guava",
29        "hilt_android",
30    ],
31}
32
33android_app {
34    name: "VdmClient",
35    manifest: "client/AndroidManifest.xml",
36    sdk_version: "current",
37    min_sdk_version: "33",
38    srcs: [
39        "client/src/**/*.java",
40    ],
41    resource_dirs: [
42        "client/res",
43    ],
44    static_libs: [
45        "VdmCommonLib",
46        "androidx.annotation_annotation",
47        "androidx.appcompat_appcompat",
48        "androidx.recyclerview_recyclerview",
49        "androidx-constraintlayout_constraintlayout",
50        "guava",
51        "hilt_android",
52    ],
53}
54
55android_app {
56    name: "VdmDemos",
57    manifest: "demos/AndroidManifest.xml",
58    sdk_version: "current",
59    min_sdk_version: "34",
60    srcs: [
61        "demos/src/**/*.java",
62    ],
63    resource_dirs: [
64        "demos/res",
65    ],
66    static_libs: [
67        "androidx.annotation_annotation",
68        "androidx.appcompat_appcompat",
69    ],
70}
71
72android_library {
73    name: "VdmCommonLib",
74    manifest: "common/AndroidManifest.xml",
75    sdk_version: "current",
76    min_sdk_version: "33",
77    srcs: [
78        "common/src/**/*.java",
79        "common/proto/*.proto",
80    ],
81    resource_dirs: [
82        "common/res",
83    ],
84    proto: {
85        type: "lite",
86    },
87    static_libs: [
88        "androidx.appcompat_appcompat",
89        "guava",
90        "hilt_android",
91    ],
92}
93
94android_app {
95    name: "VirtualCameraDemo",
96    manifest: "virtualcamera/AndroidManifest.xml",
97    privileged: true,
98    privapp_allowlist: "virtualcamera/com.example.android.vdmdemo.virtualcamera.xml",
99    platform_apis: true,
100    srcs: [
101        "virtualcamera/src/**/*.java",
102    ],
103    resource_dirs: [
104        "virtualcamera/res",
105    ],
106    static_libs: [
107        "androidx.annotation_annotation",
108        "androidx.appcompat_appcompat",
109        "hilt_android",
110    ],
111}
112