Merge "[Thread] add Thread aconfig_declaration to java_sdk_library" into main

This commit is contained in:
Kangping Dong 2024-02-28 06:26:02 +00:00 • committed by Gerrit Code Review
commit 22074a3efa
5 changed files with 10 additions and 23 deletions

View file

@ -22,6 +22,14 @@ aconfig_declarations {
visibility: ["//packages/modules/Connectivity:__subpackages__"],
}
aconfig_declarations {
name: "com.android.net.thread.flags-aconfig",
package: "com.android.net.thread.flags",
container: "system",
srcs: ["thread_flags.aconfig"],
visibility: ["//packages/modules/Connectivity:__subpackages__"],
}
aconfig_declarations {
name: "nearby_flags",
package: "com.android.nearby.flags",

1
common/OWNERS Normal file
View file

@ -0,0 +1 @@
per-file thread_flags.aconfig = file:platform/packages/modules/Connectivity:main:/thread/OWNERS

View file

@ -0,0 +1,9 @@
package: "com.android.net.thread.flags"
container: "system"
flag {
name: "thread_enabled"
namespace: "thread_network"
description: "Controls whether the Android Thread feature is enabled"
bug: "301473012"
}

View file

@ -197,6 +197,7 @@ java_sdk_library {
],
aconfig_declarations: [
"com.android.net.flags-aconfig",
"com.android.net.thread.flags-aconfig",
"nearby_flags",
],
}

View file

@ -1,23 +0,0 @@
//
// 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.
//
aconfig_declarations {
name: "com.android.net.thread.flags-aconfig",
package: "com.android.net.thread.flags",
container: "system",
srcs: ["thread_base.aconfig"],
visibility: ["//packages/modules/Connectivity:__subpackages__"],
}