Merge "Restrict visibility into the sdkext package"
This commit is contained in:
@@ -12,6 +12,10 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
package {
|
||||||
|
default_visibility: [":__subpackages__"],
|
||||||
|
}
|
||||||
|
|
||||||
apex {
|
apex {
|
||||||
name: "com.android.sdkext",
|
name: "com.android.sdkext",
|
||||||
manifest: "manifest.json",
|
manifest: "manifest.json",
|
||||||
|
|||||||
@@ -12,12 +12,17 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
package {
|
||||||
|
default_visibility: [ ":__pkg__" ]
|
||||||
|
}
|
||||||
|
|
||||||
filegroup {
|
filegroup {
|
||||||
name: "framework-sdkext-sources",
|
name: "framework-sdkext-sources",
|
||||||
srcs: [
|
srcs: [
|
||||||
"java/**/*.java",
|
"java/**/*.java",
|
||||||
],
|
],
|
||||||
path: "java",
|
path: "java",
|
||||||
|
visibility: [ "//frameworks/base:__pkg__" ] // For the "global" stubs.
|
||||||
}
|
}
|
||||||
|
|
||||||
java_library {
|
java_library {
|
||||||
@@ -27,6 +32,7 @@ java_library {
|
|||||||
libs: [ "framework-annotations-lib" ],
|
libs: [ "framework-annotations-lib" ],
|
||||||
permitted_packages: [ "android.os.ext" ],
|
permitted_packages: [ "android.os.ext" ],
|
||||||
installable: true,
|
installable: true,
|
||||||
|
visibility: [ "//frameworks/base/apex/sdkext:__pkg__" ],
|
||||||
}
|
}
|
||||||
|
|
||||||
droidstubs {
|
droidstubs {
|
||||||
@@ -58,4 +64,8 @@ java_library {
|
|||||||
name: "framework-sdkext-stubs-systemapi",
|
name: "framework-sdkext-stubs-systemapi",
|
||||||
srcs: [":framework-sdkext-droidstubs-systemapi"],
|
srcs: [":framework-sdkext-droidstubs-systemapi"],
|
||||||
sdk_version: "system_current",
|
sdk_version: "system_current",
|
||||||
|
visibility: [
|
||||||
|
"//frameworks/base:__pkg__", // Framework
|
||||||
|
"//frameworks/base/apex/sdkext:__pkg__", // sdkext SDK
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user