| package { |
| // See: http://go/android-license-faq |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| android_library { |
| name: "PhotopickerLib", |
| manifest: "AndroidManifest.xml", |
| srcs: [ |
| "src/**/*.kt", |
| ":statslog-mediaprovider-java-gen", |
| ], |
| resource_dirs: ["res"], |
| sdk_version: "module_current", |
| min_sdk_version: "30", |
| libs: [ |
| "framework-configinfrastructure.stubs.module_lib", |
| "framework-connectivity.stubs.module_lib", |
| "framework-media.stubs.module_lib", |
| "framework-mediaprovider.impl", |
| "framework-photopicker.impl", |
| "framework-statsd.stubs.module_lib", |
| ], |
| javacflags: [ |
| "-Aroom.schemaLocation=packages/providers/MediaProvider/photopicker/schemas", |
| ], |
| kotlincflags: [ |
| "-Werror", |
| "-Xjvm-default=all", |
| ], |
| static_libs: [ |
| "androidx.activity_activity-compose", |
| "androidx.appcompat_appcompat", |
| "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", |
| "androidx.room_room-runtime", |
| "androidx.room_room-ktx", |
| // 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", |
| "mediaprovider_flags_java_lib", |
| "modules-utils-build", |
| "androidx.media3.media3-common", |
| "androidx.media3.media3-exoplayer", |
| ], |
| apex_available: [ |
| "//apex_available:platform", |
| "com.android.mediaprovider", |
| ], |
| plugins: [ |
| "glide-annotation-processor", |
| "androidx.room_room-compiler-plugin", |
| ], |
| lint: { |
| extra_check_modules: ["PhotopickerLintChecker"], |
| }, |
| } |
| |
| android_app { |
| name: "Photopicker", |
| manifest: "AndroidManifest.xml", |
| static_libs: [ |
| "PhotopickerLib", |
| ], |
| optimize: { |
| // Optimize bytecode |
| optimize: true, |
| // 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", |
| ], |
| updatable: true, |
| |
| } |