| // Copyright (C) 2025 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| package { |
| // See: http://go/android-license-faq |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| android_library { |
| name: "widget_picker_dagger_annotations", |
| srcs: [ |
| "src/com/android/widgetpicker/WidgetPickerSingleton.kt", |
| ], |
| static_libs: [ |
| "androidx.annotation_annotation", |
| "jsr330", |
| ], |
| } |
| |
| android_library { |
| name: "widget_picker_component", |
| srcs: [ |
| "src/com/android/widgetpicker/WidgetPickerModule.kt", |
| "src/com/android/widgetpicker/WidgetPickerComponent.kt", |
| ], |
| static_libs: [ |
| "dagger2", |
| "widget_picker_dagger_annotations", |
| ], |
| } |
| |
| // Data types that are accessible & potentially provided by hosts using the widget picker library |
| android_library { |
| name: "widget_picker_shared_data_types", |
| srcs: [ |
| "src/com/android/widgetpicker/shared/model/PickableWidget.kt", |
| "src/com/android/widgetpicker/shared/model/WidgetAppIcon.kt", |
| "src/com/android/widgetpicker/shared/model/WidgetAppId.kt", |
| "src/com/android/widgetpicker/shared/model/WidgetId.kt", |
| "src/com/android/widgetpicker/shared/model/WidgetPreview.kt", |
| "src/com/android/widgetpicker/shared/model/WidgetUserProfiles.kt", |
| ], |
| } |
| |
| android_library { |
| name: "widget_picker_data_repositories", |
| srcs: [ |
| "src/com/android/widgetpicker/data/repository/WidgetAppIconsRepository.kt", |
| "src/com/android/widgetpicker/data/repository/WidgetPreviewRepository.kt", |
| "src/com/android/widgetpicker/data/repository/WidgetRecommendationsRepository.kt", |
| "src/com/android/widgetpicker/data/repository/WidgetsRepository.kt", |
| "src/com/android/widgetpicker/data/repository/WidgetUsersRepository.kt", |
| ], |
| static_libs: [ |
| "widget_picker_shared_data_types", |
| "kotlinx_coroutines_android", |
| "kotlinx_coroutines", |
| ], |
| |
| } |