Skip to content

Commit

Permalink
Build Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
svok committed May 29, 2022
1 parent 24e40ab commit 95ce8ec
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies {
```
#### **`gradle.properties`**
```properties
kotlinCorVersion=0.3.+
kotlinCorVersion=0.3.1+
```

## Usage
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.crowdproj.kotlin.cor"
version = "0.3.0"
version = "0.3.1"

repositories {
mavenCentral()
Expand All @@ -24,6 +24,8 @@ kotlin {
sourceSets {
val coroutinesVersion: String by project

all { languageSettings.optIn("kotlin.RequiresOptIn") }

@Suppress("UNUSED_VARIABLE")
val commonMain by getting {
dependencies {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlinVersion=1.6.21

coroutinesVersion=1.6.2
coroutinesVersion=1.6.1-native-mt
# -native-mt
3 changes: 1 addition & 2 deletions src/commonTest/kotlin/CorBaseTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import com.crowdproj.kotlin.cor.handlers.chain
import com.crowdproj.kotlin.cor.handlers.parallel
import com.crowdproj.kotlin.cor.handlers.worker
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
import kotlin.test.assertEquals

@OptIn(ExperimentalCoroutinesApi::class)
class CorBaseTest {
@OptIn(ExperimentalCoroutinesApi::class)
@Test
fun createCor() = runTest {
val ctx = TestContext(some = 0)
Expand Down
4 changes: 3 additions & 1 deletion src/commonTest/kotlin/CorExceptionTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package com.crowdproj.kotlin.cor

import com.crowdproj.kotlin.cor.handlers.chain
import com.crowdproj.kotlin.cor.handlers.worker
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import kotlin.js.JsName
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals

@OptIn(ExperimentalCoroutinesApi::class)
class CorExceptionTest {

@Test
Expand Down Expand Up @@ -63,7 +65,7 @@ class CorExceptionTest {
throw e
}
}
except { e -> text = "${e.message}$testText2" ?: "" }
except { e -> text = "${e.message}$testText2" }
}
}.build()

Expand Down
2 changes: 2 additions & 0 deletions src/commonTest/kotlin/CorTest.kt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package com.crowdproj.kotlin.cor

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals

@OptIn(ExperimentalCoroutinesApi::class)
class CorTest {

@Test
Expand Down
2 changes: 2 additions & 0 deletions src/commonTest/kotlin/LoopCorBaseTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ package com.crowdproj.kotlin.cor
import com.crowdproj.kotlin.cor.handlers.loopUntil
import com.crowdproj.kotlin.cor.handlers.loopWhile
import com.crowdproj.kotlin.cor.handlers.worker
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
import kotlin.test.assertEquals

@OptIn(ExperimentalCoroutinesApi::class)
class LoopCorBaseTest {
@Test
fun loopUntil() = runTest {
Expand Down

0 comments on commit 95ce8ec

Please sign in to comment.