rocketraman
03/21/2023, 7:26 PMState changed: State(...)
Without the qualified name for State, its hard to distinguish which view model's state has changed.Casey Brooks
03/21/2023, 8:21 PMkotlin-reflect
, so it’s not planned. But you can set the tag on your logger which will give the distinction you need. For example, doing logger = ::JsConsoleBallastLogger
instead of logger = { JsConsoleBallastLogger() }
in the VM configuration (and make sure you’re also setting the VM name in withViewModel()
)rocketraman
03/21/2023, 8:27 PMrocketraman
03/21/2023, 8:33 PMCasey Brooks
03/21/2023, 8:39 PMlogger = { JsConsoleBallastLogger(it) }
)rocketraman
03/21/2023, 8:40 PMCasey Brooks
03/21/2023, 8:43 PMrocketraman
03/21/2023, 8:44 PMbind<BallastLogger> { factory { tag: String -> KermitBallastLogger(tag) } }
rocketraman
03/21/2023, 8:45 PMbindProvider {
BallastViewModelConfiguration.Builder()
.apply {
this += instance<Set<BallastInterceptor<Any, Any, Any>>>()
logger = factory()
}
}
rocketraman
03/21/2023, 8:45 PMrocketraman
03/21/2023, 8:45 PMrocketraman
04/04/2023, 5:28 PMdata object
.Casey Brooks
04/04/2023, 5:30 PMtoString()
that is compeltely useless. I’m just now starting to make the updates to 1.8, but am having some Gradle issues that are slowing me down quite a bitrocketraman
04/04/2023, 5:30 PM[Object object]
🙂 Completely gone now.rocketraman
04/04/2023, 5:31 PMCasey Brooks
04/04/2023, 5:36 PMsigning
plugin, needed for publishing to MavenCentral, and something’s not playing nicely with it:
A problem was found with the configuration of task ':kudzu-core:signAndroidReleasePublication' (type 'Sign').
- Gradle detected a problem with the following location: '/Users/cbrooks/Documents/git/github.com/copperleaf/kudzu/kudzu-core/build/libs/kudzu-core-5.0.0-SNAPSHOT-javadoc.jar.asc'.
Reason: Task ':kudzu-core:publishAndroidDebugPublicationToMavenLocal' uses this output of task ':kudzu-core:signAndroidReleasePublication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Possible solutions:
1. Declare task ':kudzu-core:signAndroidReleasePublication' as an input of ':kudzu-core:publishAndroidDebugPublicationToMavenLocal'.
2. Declare an explicit dependency on ':kudzu-core:signAndroidReleasePublication' from ':kudzu-core:publishAndroidDebugPublicationToMavenLocal' using Task#dependsOn.
3. Declare an explicit dependency on ':kudzu-core:signAndroidReleasePublication' from ':kudzu-core:publishAndroidDebugPublicationToMavenLocal' using Task#mustRunAfter.
Casey Brooks
04/04/2023, 5:39 PMrocketraman
04/04/2023, 5:39 PMCasey Brooks
04/04/2023, 5:41 PMmustRunAfter
blocks, as suggested in the logs. I’m hoping there’s a cleaner solution though. I’m also taking the time to look into migrating the buildSrc
logic into an included buildrocketraman
04/04/2023, 5:42 PMtasks.named("publishAndroidDebugPublicationToMavenLocal") {
dependsOn("signAndroidReleasePublication")
}
is a bit cleaner as it expresses the dependency relationship and allowing Gradle to infer the run order, rather than directly trying to change the run order.rocketraman
04/04/2023, 5:43 PMrocketraman
04/04/2023, 5:49 PMCasey Brooks
04/04/2023, 5:49 PMCasey Brooks
04/04/2023, 5:51 PMcompileTestKotlinIosX64
accessing signIosX64Publication
. I suspect the signing plugin is doing something like replacing the archive files with signed ones, and maybe something like my plugin ordering or the way I’m declaring my convention plugins is causing the explicit connections to not be expressed for the Kotlin build tasksrocketraman
04/04/2023, 5:53 PMrocketraman
04/04/2023, 5:53 PMCasey Brooks
04/04/2023, 5:55 PMrocketraman
04/04/2023, 5:59 PMCasey Brooks
04/04/2023, 6:00 PMCasey Brooks
04/06/2023, 6:17 PM