Commit 833dcb1 1 parent bb631e0 commit 833dcb1 Copy full SHA for 833dcb1
File tree 5 files changed +7
-13
lines changed
kace-compiler/src/main/java/com/kanyun/kace/compiler
5 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+ - kotlin-2.0.0
7
8
pull_request :
8
9
9
10
# Allows you to run this workflow manually from the Actions tab
@@ -24,11 +25,11 @@ jobs:
24
25
- name : Validate Gradle Wrapper
25
26
uses : gradle/wrapper-validation-action@v1
26
27
27
- - name : Set up JDK 8
28
+ - name : Set up JDK 11
28
29
uses : actions/setup-java@v3
29
30
with :
30
31
distribution : ' zulu'
31
- java-version : 8
32
+ java-version : 11
32
33
33
34
- name : Setup Gradle
34
35
39
40
- name : Publish To Local
40
41
run : ./gradlew publishToMavenLocal -PVERSION_NAME=0.0.0-SNAPSHOT
41
42
42
- - name : Set up JDK 11
43
- uses : actions/setup-java@v3
44
- with :
45
- distribution : ' zulu'
46
- java-version : 11
47
-
48
43
- name : Check spotless
49
44
run : ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache
50
45
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ jobs:
15
15
- name : Check out
16
16
uses : actions/checkout@v2
17
17
18
- - name : Set up JDK 8
18
+ - name : Set up JDK 11
19
19
uses : actions/setup-java@v2
20
20
with :
21
21
distribution : ' zulu'
22
- java-version : ' 8 '
22
+ java-version : ' 11 '
23
23
24
24
- name : Build & Publish Kace plugin to Maven Central
25
25
run : chmod +x ./publish.sh && ./publish.sh
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class KaceFirSupertypeGenerationExtension(
49
49
override fun computeAdditionalSupertypes (
50
50
classLikeDeclaration : FirClassLikeDeclaration ,
51
51
resolvedSupertypes : List <FirResolvedTypeRef >,
52
- typeResolver : TypeResolveService
52
+ typeResolver : TypeResolveService ,
53
53
): List <FirResolvedTypeRef > {
54
54
var shouldAddSuperType = false
55
55
OUTER @ for (superTypeRef in resolvedSupertypes) {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class KaceIrTransformer(private val context: IrPluginContext) : IrElementTransfo
77
77
// override fun <T> findViewByIdCached(owner, id) = ...
78
78
declaration.addOverride(
79
79
ANDROID_EXTENSIONS_FQNAME ,
80
- FIND_VIEW_BY_ID_CACHED_NAME
80
+ FIND_VIEW_BY_ID_CACHED_NAME ,
81
81
).apply {
82
82
val parameterT = addTypeParameter(" T" , context.typeOfView())
83
83
returnType = parameterT.defaultType.makeNullable()
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ import org.jetbrains.kotlin.ir.declarations.IrFunction
27
27
import org.jetbrains.kotlin.ir.declarations.IrSimpleFunction
28
28
import org.jetbrains.kotlin.ir.expressions.IrExpression
29
29
import org.jetbrains.kotlin.ir.expressions.impl.IrGetValueImpl
30
- import org.jetbrains.kotlin.ir.types.IrType
31
30
import org.jetbrains.kotlin.ir.types.classOrNull
32
31
import org.jetbrains.kotlin.ir.util.allOverridden
33
32
import org.jetbrains.kotlin.ir.util.copyTo
You can’t perform that action at this time.
0 commit comments