mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Update to KSP 1.0.1 and use new jvm modifiers resolver API (#1422)
* Update to KSP 1.0.1 and use new jvm modifiers resolver API
This allows us to fully support transient across compilation boundaries
* Copy in KSP-supported KCT for now
* Update CI refs
* Move up transient check to the right place
Wasn't actually looking at the added annotation later 🤧
* Try regular RC?
* Skip that matrix for now
This commit is contained in:
@@ -18,9 +18,9 @@ package com.squareup.moshi.kotlin.codegen.test.extra
|
||||
import com.squareup.moshi.Json
|
||||
|
||||
public abstract class AbstractClassInModuleA {
|
||||
// Ignored to ensure processor sees them across module boundaries.
|
||||
// @Transient doesn't work for this case because it's source-only and jvm modifiers aren't currently visible in KSP.
|
||||
|
||||
// Ignored/transient to ensure processor sees them across module boundaries.
|
||||
@Transient private lateinit var lateinitTransient: String
|
||||
@Transient private var regularTransient: String = "regularTransient"
|
||||
// Note that we target the field because otherwise it is stored on the synthetic holder method for
|
||||
// annotations, which isn't visible from kapt
|
||||
@field:Json(ignore = true) private lateinit var lateinitIgnored: String
|
||||
|
Reference in New Issue
Block a user