Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff6fbd89 authored by Shamali Patwa's avatar Shamali Patwa Committed by Android (Google) Code Review
Browse files

Merge changes from topic "picker-ref-mod" into main

* changes:
  Add initial set of owners for widgetpickerlib
  Add repository interfaces describing the data needs of widget picker.
  Define shared data types representing the data needs of widget picker
  Add widgetpickerlib as a separate library hosting widget picker code
parents 12ae322d 66dce63a
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
*.iml
.project
.classpath
.project.properties
gen/
bin/
.idea/
.gradle/
local.properties
gradle/
build/
gradlew*
.DS_Store
+71 −0
Original line number Diff line number Diff line
// 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",
    ],

}
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     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.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.widgetpicker">
</manifest>

widgetpickerlib/OWNERS

0 → 100644
+23 −0
Original line number Diff line number Diff line
set noparent

# Bug component: 1481801
# People who can approve changes for submission
#

# Launcher Leads
captaincole@google.com
sunnygoyal@google.com
abegovic@google.com

# Widget Picker Eng
shamalip@google.com
wvk@google.com

# All eng
bbade@google.com
charlander@google.com
fbaron@google.com
fengjial@google.com
fransebas@google.com
andonian@google.com
sihua@google.com
+39 −0
Original line number Diff line number Diff line
/*
 * 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.
 */

plugins {
    id(libs.plugins.android.library.get().pluginId)
    id(libs.plugins.kotlin.android.get().pluginId)
    id(libs.plugins.kotlin.kapt.get().pluginId)
}

android {
    namespace = "com.android.widgetpicker"
    sourceSets {
        named("main") {
            java.setSrcDirs(listOf("src"))
            manifest.srcFile("AndroidManifest.xml")
            res.setSrcDirs(listOf("res"))
        }
    }
}

dependencies {
    implementation(libs.androidx.core)
    implementation(libs.dagger)
    kapt(libs.dagger.compiler)
    kapt(libs.dagger.android.processor)
}
Loading