1package {
2    // See: http://go/android-license-faq
3    default_applicable_licenses: ["Android-Apache-2.0"],
4}
5
6android_library {
7    name: "PhotopickerLib",
8    manifest: "AndroidManifest.xml",
9    srcs: ["src/**/*.kt"],
10    resource_dirs: ["res"],
11    sdk_version: "module_current",
12    min_sdk_version: "30",
13    libs: [
14        "framework-configinfrastructure",
15        "framework-connectivity.stubs.module_lib",
16        "framework-mediaprovider.impl",
17    ],
18    static_libs: [
19        "androidx.activity_activity-compose",
20        "androidx.compose.foundation_foundation",
21        "androidx.compose.material3_material3",
22        "androidx.compose.material3_material3-window-size-class",
23        "androidx.compose.material_material-icons-extended",
24        "androidx.compose.runtime_runtime",
25        "androidx.compose.ui_ui",
26        "androidx.core_core-ktx",
27        "androidx.lifecycle_lifecycle-runtime-compose",
28        "androidx.lifecycle_lifecycle-runtime-ktx",
29        "androidx.hilt_hilt-navigation-compose",
30        "androidx.navigation_navigation-compose",
31        "androidx.navigation_navigation-runtime-ktx",
32        "androidx.paging_paging-common",
33        "androidx.paging_paging-common-ktx",
34        "androidx.paging_paging-compose",
35        "androidx.paging_paging-runtime",
36        // glide and dependencies
37        "androidx.exifinterface_exifinterface",
38        "androidx.vectordrawable_vectordrawable-animated",
39        "glide-prebuilt",
40        "glide-ktx-prebuilt",
41        "glide-integration-webpdecoder-prebuilt",
42        "glide-gifdecoder-prebuilt",
43        "glide-disklrucache-prebuilt",
44        "glide-compose-prebuilt",
45        "glide-annotation-and-compiler-prebuilt",
46        //
47        "hilt_android",
48        "kotlin-stdlib",
49        "kotlinx-coroutines-android",
50        "kotlinx_coroutines",
51        "modules-utils-build",
52    ],
53    apex_available: [
54        "//apex_available:platform",
55        "com.android.mediaprovider",
56    ],
57    plugins: [
58        "glide-annotation-processor",
59    ],
60}
61
62android_app {
63    name: "Photopicker",
64    manifest: "AndroidManifest.xml",
65    static_libs: [
66        "PhotopickerLib",
67    ],
68    optimize: {
69        // Needed for removing unused icons from material-icons-extended
70        shrink_resources: true,
71    },
72    plugins: [],
73    kotlincflags: ["-Xjvm-default=all"],
74    certificate: "media",
75    privileged: true,
76    privapp_allowlist: ":privapp_allowlist_com.android.photopicker.xml",
77    sdk_version: "module_current",
78    min_sdk_version: "30",
79    apex_available: [
80        "//apex_available:platform",
81        "com.android.mediaprovider",
82    ],
83
84}
85