Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b56e7f5 authored by Anton Hansson's avatar Anton Hansson Committed by android-build-merger
Browse files

Merge "Restrict visibility into the sdkext package"

am: 3ede866f

Change-Id: I81326a611a899935ae98b54be2260932e57e5f25
parents 2bb61d97 3ede866f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    default_visibility: [":__subpackages__"],
}

apex {
    name: "com.android.sdkext",
    manifest: "manifest.json",
+10 −0
Original line number Diff line number Diff line
@@ -12,12 +12,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    default_visibility: [ ":__pkg__" ]
}

filegroup {
    name: "framework-sdkext-sources",
    srcs: [
        "java/**/*.java",
    ],
    path: "java",
    visibility: [ "//frameworks/base:__pkg__" ] // For the "global" stubs.
}

java_library {
@@ -27,6 +32,7 @@ java_library {
    libs: [ "framework-annotations-lib" ],
    permitted_packages: [ "android.os.ext" ],
    installable: true,
    visibility: [ "//frameworks/base/apex/sdkext:__pkg__" ],
}

droidstubs {
@@ -58,4 +64,8 @@ java_library {
    name: "framework-sdkext-stubs-systemapi",
    srcs: [":framework-sdkext-droidstubs-systemapi"],
    sdk_version: "system_current",
    visibility: [
      "//frameworks/base:__pkg__", // Framework
      "//frameworks/base/apex/sdkext:__pkg__", // sdkext SDK
    ]
}