Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 485be3e

Browse files
authored
合并拉取请求 #1
将 `JBlocking` 相关命名调整为 `JBlock`
2 parents b4626bd + b87f1e1 commit 485be3e

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

.github/workflows/publish-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
RELEASE: true
1616
CI: true
1717
IS_CI: true
18-
SIMBOT_LOCAL: false
18+
IS_LOCAL: false
1919
GRADLE_OPTS: "-Dfile.encoding=UTF-8"
2020

2121
jobs:

.run/runConfigurations/PublishToLocal.run.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<ExternalSystemSettings>
44
<option name="env">
55
<map>
6-
<entry key="SIMBOT_LOCAL" value="true" />
6+
<entry key="IS_LOCAL" value="true" />
77
</map>
88
</option>
99
<option name="executionName" />

annotations/src/commonMain/kotlin/love/forte/suspendreversal/annotations/SuspendReversal.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ package love.forte.suspendreversal.annotations
77
@Target(AnnotationTarget.CLASS)
88
@Retention(AnnotationRetention.SOURCE)
99
public annotation class SuspendReversal(
10-
val jBlocking: Boolean = true,
11-
val jBlockingClassNamePrefix: String = "JBlocking",
12-
val jBlockingClassNameSuffix: String = "",
10+
val jBlock: Boolean = true,
11+
val jBlockClassNamePrefix: String = "JBlock",
12+
val jBlockClassNameSuffix: String = "",
1313
val jAsync: Boolean = true,
1414
val jAsyncClassNamePrefix: String = "JAsync",
1515
val jAsyncClassNameSuffix: String = "",

buildSrc/src/main/kotlin/P.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ object P : ProjectDetail() {
2020
override val homepage: String
2121
get() = HOMEPAGE
2222

23-
override val version: Version = with(version(0, 1, 0)) {
23+
override val version: Version = with(version(0, 2, 0)) {
2424
if (isSnapshot) this - Version.SNAPSHOT else this
2525
}
2626

buildSrc/src/main/kotlin/suspend-reversal-multiplatform-maven-publish.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ multiplatformConfigPublishing {
3636
snapshotRepository = SnapshotRepository
3737
gpg = Gpg.ofSystemPropOrNull()
3838

39-
if (systemProp("SIMBOT_LOCAL").toBoolean()) {
40-
logger.info("Is 'SIMBOT_LOCAL', mainHost set as null")
39+
if (systemProp("IS_LOCAL").toBoolean()) {
40+
logger.info("Is 'IS_LOCAL', mainHost set as null")
4141
mainHost = null
4242
}
4343

processor/src/main/kotlin/love/forte/suspendreversal/processor/ProcessJvm.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ internal fun resolveJvm(
2525
superClassName = superClassName,
2626
environment = environment,
2727
symbol = symbol,
28-
isEnabled = nearestAnnotation.jBlocking,
29-
classNamePrefix = nearestAnnotation.jBlockingClassNamePrefix,
30-
classNameSuffix = nearestAnnotation.jBlockingClassNameSuffix
28+
isEnabled = nearestAnnotation.jBlock,
29+
classNamePrefix = nearestAnnotation.jBlockClassNamePrefix,
30+
classNameSuffix = nearestAnnotation.jBlockClassNameSuffix
3131
)
3232

3333
val asyncTypeBuilder: TypeSpec.Builder? = generateReversalTypeSpecBuilder(

0 commit comments

Comments
 (0)