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

Commit e8271e50 authored by Paul Duffin's avatar Paul Duffin
Browse files

Replace hidden_api_packages with package-info.java and @hide

The `hidden_api_packages` is being removed from Soong so this replaces
it with a `package-info.java` containing `@hide` for each hidden
package.

Hiding the `com.android.nfc` had no effect so no `package-info.java`
file was created for that.

Bug: 351991463
Test: m checkapi
Change-Id: I67043afb34f10d4e9e910bd7e6d671c39414e0f7
parent 2439db1c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -30,9 +30,6 @@ java_sdk_library {
        "app-compat-annotations",
        "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage
    ],
    hidden_api_packages: [
        "com.android.internal.location",
    ],
    aidl: {
        include_dirs: [
            "frameworks/base/location/java",
+22 −0
Original line number Diff line number Diff line
/*
 * 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.
 */

/**
 * Exclude from API surfaces
 *
 * @hide
 */
package com.android.internal.location;
+0 −3
Original line number Diff line number Diff line
@@ -59,9 +59,6 @@ java_sdk_library {
        "android.nfc",
        "com.android.nfc",
    ],
    hidden_api_packages: [
        "com.android.nfc",
    ],
    impl_library_visibility: [
        "//frameworks/base:__subpackages__",
        "//cts/tests/tests/nfc",