package { // See: http://go/android-license-faq default_applicable_licenses: ["Android-Apache-2.0"], } android_library { name: "PhotopickerLib", manifest: "AndroidManifest.xml", srcs: ["src/**/*.kt"], resource_dirs: ["res"], sdk_version: "module_current", min_sdk_version: "30", libs: [ "framework-configinfrastructure", "framework-connectivity.stubs.module_lib", "framework-mediaprovider.impl", ], static_libs: [ "androidx.activity_activity-compose", "androidx.compose.foundation_foundation", "androidx.compose.material3_material3", "androidx.compose.material3_material3-window-size-class", "androidx.compose.material_material-icons-extended", "androidx.compose.runtime_runtime", "androidx.compose.ui_ui", "androidx.core_core-ktx", "androidx.lifecycle_lifecycle-runtime-compose", "androidx.lifecycle_lifecycle-runtime-ktx", "androidx.hilt_hilt-navigation-compose", "androidx.navigation_navigation-compose", "androidx.navigation_navigation-runtime-ktx", "androidx.paging_paging-common", "androidx.paging_paging-common-ktx", "androidx.paging_paging-compose", "androidx.paging_paging-runtime", // glide and dependencies "androidx.exifinterface_exifinterface", "androidx.vectordrawable_vectordrawable-animated", "glide-prebuilt", "glide-ktx-prebuilt", "glide-integration-webpdecoder-prebuilt", "glide-gifdecoder-prebuilt", "glide-disklrucache-prebuilt", "glide-compose-prebuilt", "glide-annotation-and-compiler-prebuilt", // "hilt_android", "kotlin-stdlib", "kotlinx-coroutines-android", "kotlinx_coroutines", "modules-utils-build", ], apex_available: [ "//apex_available:platform", "com.android.mediaprovider", ], plugins: [ "glide-annotation-processor", ], } android_app { name: "Photopicker", manifest: "AndroidManifest.xml", static_libs: [ "PhotopickerLib", ], optimize: { // Needed for removing unused icons from material-icons-extended shrink_resources: true, }, plugins: [], kotlincflags: ["-Xjvm-default=all"], certificate: "media", privileged: true, privapp_allowlist: ":privapp_allowlist_com.android.photopicker.xml", sdk_version: "module_current", min_sdk_version: "30", apex_available: [ "//apex_available:platform", "com.android.mediaprovider", ], }