-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starts moving Debugger UI into a separate module
- Loading branch information
1 parent
63c3c61
commit 1c44b3a
Showing
46 changed files
with
520 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
plugins { | ||
id("copper-leaf-base") | ||
id("copper-leaf-targets") | ||
id("copper-leaf-kotest") | ||
id("copper-leaf-serialization") | ||
id("copper-leaf-compose") | ||
id("copper-leaf-lint") | ||
id("copper-leaf-publish") | ||
} | ||
|
||
kotlin { | ||
sourceSets { | ||
all { | ||
languageSettings.apply { | ||
optIn("androidx.compose.material.ExperimentalMaterialApi") | ||
optIn("androidx.compose.foundation.ExperimentalFoundationApi") | ||
optIn("com.copperleaf.ballast.ExperimentalBallastApi") | ||
} | ||
} | ||
|
||
val commonMain by getting { | ||
dependencies { | ||
// Ktor websocket server | ||
implementation(libs.kotlinx.datetime) | ||
implementation(libs.bundles.ktorEmbeddedServer) | ||
|
||
implementation(libs.kotlinx.coroutines.swing) | ||
implementation(libs.multiplatformSettings.core) | ||
implementation(libs.multiplatformSettings.test) | ||
|
||
// Ballast, to manage its own UI state (with debugger artifact to share serialization models between the client and server) | ||
implementation(project(":ballast-core")) | ||
implementation(project(":ballast-repository")) | ||
implementation(project(":ballast-saved-state")) | ||
implementation(project(":ballast-navigation")) | ||
implementation(project(":ballast-debugger-models")) | ||
implementation(project(":ballast-debugger-server")) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
copperleaf.description=Compose UI for Ballast Debugger | ||
copperleaf.targets.android=false | ||
copperleaf.targets.jvm=true | ||
copperleaf.targets.ios=false | ||
copperleaf.targets.js=false | ||
|
||
copperleaf.compose.splitPane=true |
14 changes: 14 additions & 0 deletions
14
...copperleaf/ballast/debugger/idea/features/debugger/injector/DebuggerToolWindowInjector.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.copperleaf.ballast.debugger.idea.features.debugger.injector | ||
|
||
import com.copperleaf.ballast.debugger.idea.features.debugger.router.DebuggerRouter | ||
import com.copperleaf.ballast.debugger.idea.features.debugger.vm.DebuggerUiViewModel | ||
import com.copperleaf.ballast.debugger.server.vm.DebuggerServerViewModel | ||
|
||
public interface DebuggerToolWindowInjector { | ||
|
||
public val debuggerRouter: DebuggerRouter | ||
public val debuggerServerViewModel: DebuggerServerViewModel | ||
public val debuggerUiViewModel: DebuggerUiViewModel | ||
|
||
public companion object | ||
} |
13 changes: 13 additions & 0 deletions
13
...tlin/com/copperleaf/ballast/debugger/idea/features/debugger/repository/DebuggerUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.copperleaf.ballast.debugger.idea.features.debugger.repository | ||
|
||
import com.copperleaf.ballast.debugger.idea.settings.DebuggerUiSettings | ||
import com.copperleaf.ballast.debugger.idea.settings.GeneralSettings | ||
import com.copperleaf.ballast.debugger.server.BallastDebuggerServerSettings | ||
import com.copperleaf.ballast.repository.cache.Cached | ||
import kotlinx.coroutines.flow.Flow | ||
|
||
public interface DebuggerUseCase { | ||
public fun observeGeneralSettings(): Flow<Cached<GeneralSettings>> | ||
public fun observeBallastDebuggerServerSettings(): Flow<Cached<BallastDebuggerServerSettings>> | ||
public fun observeDebuggerUiSettings(): Flow<Cached<DebuggerUiSettings>> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.