Skip to content

Commit

Permalink
Merge pull request #2647 from square/py/hide_internal
Browse files Browse the repository at this point in the history
Hide internal classes
  • Loading branch information
pyricau committed Mar 27, 2024
2 parents c241d5a + ff1b37a commit b324c96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
23 changes: 0 additions & 23 deletions leakcanary/leakcanary-android-core/api/leakcanary-android-core.api
Expand Up @@ -137,12 +137,6 @@ public final class leakcanary/LeakCanary$Config$Builder {
public final fun showNotifications (Z)Lleakcanary/LeakCanary$Config$Builder;
}

public final class leakcanary/LeakCanaryAndroidInternalUtils {
public static final field INSTANCE Lleakcanary/LeakCanaryAndroidInternalUtils;
public final fun addLeakActivityDynamicShortcut (Landroid/app/Application;)V
public final fun isInstantApp (Landroid/app/Application;)Z
}

public final class leakcanary/LogcatEventListener : leakcanary/EventListener {
public static final field INSTANCE Lleakcanary/LogcatEventListener;
public fun onEvent (Lleakcanary/EventListener$Event;)V
Expand Down Expand Up @@ -173,20 +167,3 @@ public final class leakcanary/WorkManagerHeapAnalyzer : leakcanary/EventListener
public fun onEvent (Lleakcanary/EventListener$Event;)V
}

public final class leakcanary/internal/LeakCanaryFileProvider : android/content/ContentProvider {
public static final field Companion Lleakcanary/internal/LeakCanaryFileProvider$Companion;
public fun <init> ()V
public fun attachInfo (Landroid/content/Context;Landroid/content/pm/ProviderInfo;)V
public fun delete (Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
public fun getType (Landroid/net/Uri;)Ljava/lang/String;
public fun insert (Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;
public fun onCreate ()Z
public fun openFile (Landroid/net/Uri;Ljava/lang/String;)Landroid/os/ParcelFileDescriptor;
public fun query (Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
public fun update (Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
}

public final class leakcanary/internal/LeakCanaryFileProvider$Companion {
public final fun getUriForFile (Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;
}

Expand Up @@ -12,11 +12,7 @@ import android.os.Build.VERSION_CODES
import com.squareup.leakcanary.core.R
import shark.SharkLog

/**
* This class is visible so that other LeakCanary modules may use it, but it only exists for
* internal purposes and its APIs may change at any time.
*/
object LeakCanaryAndroidInternalUtils {
internal object LeakCanaryAndroidInternalUtils {

private const val DYNAMIC_SHORTCUT_ID = "com.squareup.leakcanary.dynamic_shortcut"

Expand Down
Expand Up @@ -40,11 +40,10 @@ import org.xmlpull.v1.XmlPullParserException

/**
* Copy of androidx.core.content.FileProvider, converted to Kotlin.
* This is an internal class, only public to be usable in another module.
* TODO Consider building a public API for exposing files with the right permissions to
* be shared.
*/
class LeakCanaryFileProvider : ContentProvider() {
internal class LeakCanaryFileProvider : ContentProvider() {

private lateinit var mStrategy: PathStrategy

Expand Down
@@ -1,3 +1,5 @@
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")

package org.leakcanary.internal

import android.content.ComponentName
Expand Down

0 comments on commit b324c96

Please sign in to comment.