Skip to content

CodeAssist 3.18.2

Choose a tag to compare

@tyron12233 tyron12233 released this 13 Sep 23:02
· 1241 commits to main since this release

🚀 CodeAssist 3.18.2

COMPOSE PREVIEW

  • A lambda passed to a generic parameter no longer breaks the preview. rememberUpdatedState(onClick), mutableStateOf(callback) or a lambda stored in a list used to stop the render with "java.lang.Object is not an interface"; the value now travels through and comes back callable.
  • A non-local return inside a lambda handed to Canvas, Layout, a comparator or a LaunchedEffect body ends that lambda, as compiled code would, instead of failing the render.
  • Reading a property off a boxed value class works: color.alpha on a State<Color> value, LocalContentColor.current and defaulted parameters used to report "no readable property".
  • WindowInsets.navigationBars and the other inset accessors, which Compose declares on a companion object, render instead of reporting "no readable property".
  • buildList { add(x) } and other calls whose receiver type comes from a generic signature resolve.
  • runCatching and Result, toCharArray, toDouble/toFloat on a CharSequence, and the named arithmetic operators are interpreted.

KOTLIN

  • when (this) { is Circle -> radius() } now narrows this, in the editor and in the preview alike.
  • import androidx.compose.material.icons.filled.Add was reported unresolved because the import names an extension property with a capitalized name. Since 3.14 an unresolved import also refused every preview in the file, so the whole Material icon family blocked previews.
  • return@label returns from the lambda it names, not from the enclosing function.

DEPENDENCIES

  • A dependency that takes its scope from dependencyManagement keeps that scope. com.google.zxing:android-core used to pull a 2012 android.jar and seven legacy jars onto the classpath, where they shadowed the real framework and every androidx supertype failed with "Cannot access 'androidx.core.app.ComponentActivity'". A project that already resolved under the old rule re-resolves once.

PROJECTS STORE

  • Publishing a new version of a project you already listed goes to that listing instead of creating a duplicate, can change its title, summary, description, category and tags (a reviewer sees the change as was/now), and keeps the screenshots you already published unless you replace them.
  • "Your project is live" no longer fires for the previous version seconds after you submit a new one.
  • A refused or withdrawn submission can be deleted, which also frees its slot in the ten-listing quota.
  • Installing a project from the store no longer brings along the publisher's resolved-dependency files, which left every Compose symbol unresolved with no way to repair the project. Listings published before this fix are cleaned on install.

Full changelog: https://github.com/tyron12233/CodeAssist/releases/tag/v3.18.2