mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
The following change contains three parts: 1. Qualifiers for executor types. 2. A mapping of any provided-for-those-qualifier-types to executors, executor services, or scheduled executor servies. 3. The exposure of the existing dagger qualifiers as a specific build target. With this change, any host(launcher) can provide bindings for these annotations stipulating whatever pool or thread allocations as they see fit, while any dependent modules that want to isolate their code from launcher can build against the qualifiers library to ensure that they receive the right kind of executor at injection. Bug: 407593767 Test: N/A Flag: NONE - new module Change-Id: I7e6ba623c7f85ec11bb86d1d3a66486f68efe7f6
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
// 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"],
|
|
}
|
|
|
|
java_library {
|
|
name: "launcher-dagger-qualifiers",
|
|
srcs: [
|
|
"src/com/android/launcher3/dagger/ActivityContextScope.java",
|
|
"src/com/android/launcher3/dagger/ApplicationContext.java",
|
|
"src/com/android/launcher3/dagger/LauncherAppSingleton.java",
|
|
],
|
|
static_libs: [
|
|
"androidx.annotation_annotation",
|
|
"jsr330",
|
|
],
|
|
}
|