android_packages_modules_Co.../Vcn/flags/Android.bp
Yan Yan 865c0e7852 Conditionally remove VCN jars from non-updatable platform
When the build system flag RELEASE_MOVE_VCN_TO_MAINLINE is true,
VCN framework and service jars will be built into Tethering module.
Otherwise, VCN framework jar will be directly installed on the
device and the service jar will be included into the platform
services.jar

Bug: 375213246
Test: atest CtsVcnTestCases && atest FrameworksVcnTests; verified
      with the flag on and off
Flag: RELEASE_MOVE_VCN_TO_MAINLINE
Change-Id: If2651f1ede34220172c419f8bf4afb0fe09c0789
2024-12-10 19:27:09 +00:00

52 lines
1.6 KiB
Text

//
// Copyright (C) 2024 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 {
default_team: "trendy_team_enigma",
default_applicable_licenses: ["Android-Apache-2.0"],
}
aconfig_declarations {
name: "android.net.vcn.flags-aconfig",
package: "android.net.vcn",
container: "com.android.tethering",
exportable: true,
srcs: [
"flags.aconfig",
],
}
// TODO: b/374174952 Remove this library when VCN modularization is done
java_aconfig_library {
name: "android.net.vcn.flags-aconfig-java-export",
aconfig_declarations: "android.net.vcn.flags-aconfig",
mode: "exported",
min_sdk_version: "35",
defaults: ["framework-minus-apex-aconfig-java-defaults"],
apex_available: [
"//apex_available:platform",
],
}
java_aconfig_library {
name: "android.net.vcn.flags-aconfig-java",
aconfig_declarations: "android.net.vcn.flags-aconfig",
min_sdk_version: "35",
defaults: ["framework-minus-apex-aconfig-java-defaults"],
apex_available: [
"com.android.tethering",
],
}