1// 2// Copyright (C) 2024 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17aconfig_declarations { 18 name: "com.android.net.http.flags-aconfig", 19 package: "android.net.http", 20 container: "com.android.tethering", 21 srcs: ["preload_httpengine.aconfig"], 22 exportable: true, 23} 24 25// TODO: is this non-exported library necessary? If not, delete it. 26java_aconfig_library { 27 name: "com.android.net.http.flags-aconfig-java", 28 aconfig_declarations: "com.android.net.http.flags-aconfig", 29 defaults: ["framework-minus-apex-aconfig-java-defaults"], 30 apex_available: [ 31 "com.android.tethering", 32 ], 33 min_sdk_version: "30", 34} 35 36// This is a duplicate of the original java_aconfig_library 37// but this is intended to be used only in the framework where 38// it gets jarjared. It's important to note that the framework 39// will see flags value that are different from the values 40// presented from the original java_aconfig. 41java_aconfig_library { 42 name: "com.android.net.http.flags-aconfig-exported-java", 43 aconfig_declarations: "com.android.net.http.flags-aconfig", 44 min_sdk_version: "30", 45 defaults: ["framework-minus-apex-aconfig-java-defaults"], 46 apex_available: [ 47 "//apex_available:platform", 48 ], 49} 50