LouisCAD / Splitties

A collection of hand-crafted extensions for your Kotlin projects.
https://splitties.louiscad.com
Apache License 2.0
2.53k stars 159 forks source link

Support for Jetpack Compose Previews #304

Open llleodeleon opened 1 year ago

llleodeleon commented 1 year ago

Currently I'm unable to preview composables that depend on Splitties appCtx

The render exception says:

java.lang.NullPointerException: getProcessName() must not be null   
 at splitties.init.AppCtxKt.getProcessName(AppCtx.kt:96)  
 at splitties.init.AppCtxKt.internalCtxUninitialized(AppCtx.kt:29)   
 at splitties.init.AppCtxKt.getAppCtx(AppCtx.kt:26)

   Is there a way to add support?