Skip to content

Commit f3670e0

Browse files
committed
feature: add explicitApi to noop module
1 parent 6424bdb commit f3670e0

File tree

10 files changed

+18
-20
lines changed

10 files changed

+18
-20
lines changed

panel-no-op/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ android {
2828

2929
kotlin {
3030
jvmToolchain(17)
31+
explicitApi()
3132
}
3233

3334
namespace = "com.redmadrobot.debug.noop"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.redmadrobot.debug.core.data
22

3-
interface DebugDataProvider<T> {
4-
fun provideData(): T
3+
public interface DebugDataProvider<T> {
4+
public fun provideData(): T
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package com.redmadrobot.debug.core.internal
22

3-
interface DebugEvent
3+
public interface DebugEvent

panel-no-op/src/main/kotlin/com/redmadrobot/debug/noop/core/DebugPanel.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ import kotlinx.coroutines.flow.Flow
99
import kotlinx.coroutines.flow.emptyFlow
1010

1111
@Suppress("UnusedParameter", "OptionalUnit")
12-
object DebugPanel {
13-
fun initialize(
14-
application: Application,
15-
plugins: List<Any>,
16-
) = Unit
12+
public object DebugPanel {
13+
public fun initialize(application: Application, plugins: List<Any>): Unit = Unit
1714

18-
fun subscribeToEvents(lifecycleOwner: LifecycleOwner, onEvent: (DebugEvent) -> Unit) = Unit
15+
public fun subscribeToEvents(lifecycleOwner: LifecycleOwner, onEvent: (DebugEvent) -> Unit): Unit = Unit
1916

20-
fun observeEvents(): Flow<DebugEvent> = emptyFlow()
17+
public fun observeEvents(): Flow<DebugEvent> = emptyFlow()
2118

22-
fun showPanel(fragmentManager: FragmentManager) = Unit
19+
public fun showPanel(fragmentManager: FragmentManager): Unit = Unit
2320

24-
fun showPanel(activity: Activity) = Unit
21+
public fun showPanel(activity: Activity): Unit = Unit
2522
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.redmadrobot.debug.plugin.aboutapp
22

3-
data class AboutAppInfo(
3+
public data class AboutAppInfo(
44
val title: String,
55
val value: String
66
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.redmadrobot.debug.plugin.aboutapp
22

33
@Suppress("UnusedPrivateProperty")
4-
class AboutAppPlugin(
4+
public class AboutAppPlugin(
55
private val appInfoList: List<AboutAppInfo>
66
)

panel-no-op/src/main/kotlin/com/redmadrobot/debug/noop/plugin/servers/DebugServer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.redmadrobot.debug.plugin.servers.data.model
22

3-
data class DebugServer(
3+
public data class DebugServer(
44
val name: String,
55
val url: String,
66
val isDefault: Boolean = false

panel-no-op/src/main/kotlin/com/redmadrobot/debug/noop/plugin/servers/ServerSelectedEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ package com.redmadrobot.debug.plugin.servers
33
import com.redmadrobot.debug.core.internal.DebugEvent
44
import com.redmadrobot.debug.plugin.servers.data.model.DebugServer
55

6-
data class ServerSelectedEvent(val debugServer: DebugServer) : DebugEvent
6+
public data class ServerSelectedEvent(val debugServer: DebugServer) : DebugEvent

panel-no-op/src/main/kotlin/com/redmadrobot/debug/noop/plugin/servers/ServersPlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import com.redmadrobot.debug.core.data.DebugDataProvider
44
import com.redmadrobot.debug.plugin.servers.data.model.DebugServer
55
import java.util.Collections.emptyList
66

7-
class ServersPlugin(
7+
public class ServersPlugin(
88
private val preInstalledServers: List<Any> = emptyList()
99
) {
10-
constructor(debugDataProvider: DebugDataProvider<List<DebugServer>>) : this(
10+
public constructor(debugDataProvider: DebugDataProvider<List<DebugServer>>) : this(
1111
preInstalledServers = debugDataProvider.provideData()
1212
)
1313
}

panel-no-op/src/main/kotlin/com/redmadrobot/debug/noop/plugin/servers/interceptor/DebugServerInterceptor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import okhttp3.Interceptor
55
import okhttp3.Request
66
import okhttp3.Response
77

8-
class DebugServerInterceptor : Interceptor {
8+
public class DebugServerInterceptor : Interceptor {
99
@Suppress("UnusedParameter")
10-
fun modifyRequest(block: (Request, DebugServer) -> Request): DebugServerInterceptor {
10+
public fun modifyRequest(block: (Request, DebugServer) -> Request): DebugServerInterceptor {
1111
return this
1212
}
1313

0 commit comments

Comments
 (0)