Skip to content

Commit ed9e3cd

Browse files
authored
Merge pull request #18 from ForteScarlet/default_exclude
feat: 默认的Transformers中的排除注解默认追加标记注解
2 parents de47095 + 47cba0b commit ed9e3cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

buildSrc/src/main/kotlin/IProject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object IProject {
2-
const val VERSION = "0.2.1"
2+
const val VERSION = "0.2.2"
33
const val GROUP = "love.forte.plugin.suspend-transform"
44
const val DESCRIPTION = "Generate platform-compatible functions for Kotlin suspend functions"
55

compiler/suspend-transform-plugin/src/main/kotlin/love/forte/plugin/suspendtrans/SuspendTransformConfiguration.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ open class SuspendTransformConfiguration {
230230
transformReturnTypeGeneric = false,
231231
originFunctionIncludeAnnotations = listOf(IncludeAnnotation(jvmSyntheticClassInfo)),
232232
copyAnnotationsToSyntheticFunction = true,
233-
copyAnnotationExcludes = listOf(jvmSyntheticClassInfo),
233+
copyAnnotationExcludes = listOf(jvmSyntheticClassInfo, jvmBlockingAnnotationInfo.classInfo),
234234
syntheticFunctionIncludeAnnotations = listOf(IncludeAnnotation(jvmApi4JAnnotationClassInfo))
235235
)
236236
//endregion
@@ -257,7 +257,7 @@ open class SuspendTransformConfiguration {
257257
transformReturnTypeGeneric = true,
258258
originFunctionIncludeAnnotations = listOf(IncludeAnnotation(jvmSyntheticClassInfo)),
259259
copyAnnotationsToSyntheticFunction = true,
260-
copyAnnotationExcludes = listOf(jvmSyntheticClassInfo),
260+
copyAnnotationExcludes = listOf(jvmSyntheticClassInfo, jvmAsyncAnnotationInfo.classInfo),
261261
syntheticFunctionIncludeAnnotations = listOf(IncludeAnnotation(jvmApi4JAnnotationClassInfo))
262262
)
263263
//endregion
@@ -287,7 +287,7 @@ open class SuspendTransformConfiguration {
287287
transformReturnTypeGeneric = true,
288288
originFunctionIncludeAnnotations = listOf(),
289289
copyAnnotationsToSyntheticFunction = true,
290-
copyAnnotationExcludes = listOf(),
290+
copyAnnotationExcludes = listOf(jsAsyncAnnotationInfo.classInfo),
291291
syntheticFunctionIncludeAnnotations = listOf(IncludeAnnotation(jsApi4JsAnnotationInfo))
292292
)
293293
//endregion

0 commit comments

Comments
 (0)