Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 1 | // Copyright (C) 2023 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | // Aconfig declarations and libraries for the core framework |
| 16 | java_defaults { |
| 17 | name: "framework-minus-apex-aconfig-libraries", |
| 18 | |
| 19 | // Add java_aconfig_libraries to here to add them to the core framework |
| 20 | srcs: [ |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame^] | 21 | ":android.security.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 22 | ":com.android.hardware.camera2-aconfig-java{.generated_srcjars}", |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 23 | ":com.android.window.flags.window-aconfig-java{.generated_srcjars}", |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 24 | ":com.android.text.flags-aconfig-java{.generated_srcjars}", |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 25 | ], |
| 26 | } |
| 27 | |
| 28 | // Default flags for java_aconfig_libraries that go into framework-minus-apex |
| 29 | // These libraries will not work standalone |
| 30 | java_defaults { |
| 31 | name: "framework-minus-apex-aconfig-java-defaults", |
| 32 | sdk_version: "core_platform", |
| 33 | libs: ["fake_device_config"], |
| 34 | } |
| 35 | |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 36 | // Camera |
Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 37 | aconfig_declarations { |
| 38 | name: "com.android.hardware.camera2-aconfig", |
| 39 | package: "com.android.hardware.camera2", |
| 40 | srcs: ["core/java/android/hardware/camera2/camera_platform.aconfig"], |
| 41 | } |
| 42 | |
| 43 | java_aconfig_library { |
| 44 | name: "com.android.hardware.camera2-aconfig-java", |
| 45 | aconfig_declarations: "com.android.hardware.camera2-aconfig", |
| 46 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 47 | } |
Chris Li | 547ae2c | 2023-07-28 14:01:06 +0800 | [diff] [blame] | 48 | |
| 49 | // Window |
| 50 | aconfig_declarations { |
| 51 | name: "com.android.window.flags.window-aconfig", |
| 52 | package: "com.android.window.flags", |
| 53 | srcs: ["core/java/android/window/flags/*.aconfig"], |
| 54 | } |
| 55 | |
| 56 | java_aconfig_library { |
| 57 | name: "com.android.window.flags.window-aconfig-java", |
| 58 | aconfig_declarations: "com.android.window.flags.window-aconfig", |
| 59 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 60 | } |
Seigo Nonaka | 1e15778 | 2023-08-22 09:57:46 +0900 | [diff] [blame] | 61 | |
| 62 | // Text |
| 63 | aconfig_declarations { |
| 64 | name: "com.android.text.flags-aconfig", |
| 65 | package: "com.android.text.flags", |
| 66 | srcs: ["core/java/android/text/flags/*.aconfig"], |
| 67 | } |
| 68 | |
| 69 | java_aconfig_library { |
| 70 | name: "com.android.text.flags-aconfig-java", |
| 71 | aconfig_declarations: "com.android.text.flags-aconfig", |
| 72 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 73 | } |
Victor Hsieh | 2ce97f2 | 2023-08-21 17:20:25 -0700 | [diff] [blame^] | 74 | |
| 75 | // Security |
| 76 | aconfig_declarations { |
| 77 | name: "android.security.flags-aconfig", |
| 78 | package: "android.security", |
| 79 | srcs: ["core/java/android/security/*.aconfig"], |
| 80 | } |
| 81 | |
| 82 | java_aconfig_library { |
| 83 | name: "android.security.flags-aconfig-java", |
| 84 | aconfig_declarations: "android.security.flags-aconfig", |
| 85 | defaults: ["framework-minus-apex-aconfig-java-defaults"], |
| 86 | } |