Skip to content

feat: split out reusable probe-core - #1506

Draft
aanorbel wants to merge 2 commits into
mainfrom
feat/probe-core
Draft

feat: split out reusable probe-core#1506
aanorbel wants to merge 2 commits into
mainfrom
feat/probe-core

Conversation

@aanorbel

@aanorbel aanorbel commented Aug 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@aanorbel
aanorbel marked this pull request as ready for review August 7, 2026 20:44
@aanorbel
aanorbel marked this pull request as draft August 7, 2026 20:44
Comment on lines +44 to +45
override val labelResKey: String = "Test_Experimental_Fullname"
override val iconResKey: String = "test_experimental"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel we're not gaining much from this String keys. We can't use when on them. Why not remove them and just have a regular when on the extension function?

MAX_RUNTIME_DISABLED
}

private fun buildSoftwareName(taskOrigin: TaskOrigin): String {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to repeat this here?

Comment on lines +32 to +34
Unit.KB -> "TestResults_Kbps"
Unit.MB -> "TestResults_Mbps"
Unit.GB -> "TestResults_Gbps"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not gaining much here too, with this String keys.

@sdsantos

Copy link
Copy Markdown
Contributor

In general it looks good. I feel, with more work, can improve a bit more things. But that's not necessary for a Proof of Concept. I'm thinking of:

  • probeCore could be a plain kotlin module, instead of a Kotlin Multiplatform module
  • probeCore wouldn't have CLI code in it (like those Gateways)
  • Dependencies would be split between CoreDependencies (networkTypeFinder, engine/passport bridges...) and ComposeDependencies (isWebViewAvailable, supportedLanguageTags...)
  • There may be need for a shared desktop module with the autorun and update code for both the desktop compose app and the desktop cli app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants